phphe / virtual-list

Vue virtual list. Also supports horizontal list, virtual table, React.
https://virtual-list.phphe.com/
17 stars 2 forks source link

Uncaught RangeError: Maximum call stack size exceeded #2

Closed minzdrav closed 1 year ago

minzdrav commented 1 year ago

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>
minzdrav commented 1 year ago

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

phphe commented 1 year ago

ok, I will try to fix

phphe commented 1 year ago

fixed in 1.2.0

minzdrav commented 1 year ago

Thank you!