phphe / virtual-list

Vue virtual list. Also supports horizontal list, virtual table, React.

Home Page:https://virtual-list.phphe.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught RangeError: Maximum call stack size exceeded

minzdrav opened this issue · comments

Hello @phphe
Virtual list throw exception:
image

Please try to replace 1000 by something like 2000 or 3000 in App.vue.

export default defineComponent({
  components: { "v-list": vList },
  data() {
    return {
      items: new Array(3000).fill(1).map((v, i) => ({
        text: "Item " + i,
        lineHeight: 20 + (i % 20) + "px",
        width: 100 + (i % 30) + "px",
      })),
    };
  },
  mounted() {},
});
</script>

image
It's easy to fix. You shouldn't use positions inside positions.

commented

ok, I will try to fix

commented

fixed in 1.2.0

Thank you!