migration: vue3 INSTANCE_SCOPED_SLOTS

This commit is contained in:
axolotle 2024-03-11 14:42:48 +01:00
parent 4b01c4e7c3
commit 20e80765a3

View file

@ -14,7 +14,7 @@ export default {
return { return {
busy: false, busy: false,
range: this.stacks, range: this.stacks,
childrenCount: this.$slots.default.length, childrenCount: this.$slots.default().length,
} }
}, },
@ -60,7 +60,7 @@ export default {
}, },
beforeUpdate() { beforeUpdate() {
const slots = this.$slots.default const slots = this.$slots.default()
if (this.childrenCount !== slots.length) { if (this.childrenCount !== slots.length) {
this.range = this.stacks this.range = this.stacks
this.childrenCount = slots.length this.childrenCount = slots.length
@ -75,7 +75,7 @@ export default {
props: { deck: true }, props: { deck: true },
ref: 'feed', ref: 'feed',
}, },
this.$slots.default.slice(0, this.range), this.$slots.default().slice(0, this.range),
) )
}, },