Переход на Vue 3
This commit is contained in:
@@ -326,7 +326,7 @@ class ContentsPage {
|
|||||||
const expanded = !item.expanded;
|
const expanded = !item.expanded;
|
||||||
|
|
||||||
if (!expanded) {
|
if (!expanded) {
|
||||||
const subitems = this.$refs[`subitem${key}`][0];
|
const subitems = this.$refs[`subitem${key}`];
|
||||||
subitems.style.height = '0';
|
subitems.style.height = '0';
|
||||||
await utils.sleep(200);
|
await utils.sleep(200);
|
||||||
}
|
}
|
||||||
@@ -335,7 +335,7 @@ class ContentsPage {
|
|||||||
|
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
await this.$nextTick();
|
await this.$nextTick();
|
||||||
const subitems = this.$refs[`subitem${key}`][0];
|
const subitems = this.$refs[`subitem${key}`];
|
||||||
subitems.style.height = subitems.scrollHeight + 'px';
|
subitems.style.height = subitems.scrollHeight + 'px';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user