mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
migration: vue3 INSTANCE_SCOPED_SLOTS
This commit is contained in:
parent
4b01c4e7c3
commit
20e80765a3
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue