Переход на Vue 3

This commit is contained in:
Book Pauk
2021-11-01 18:23:58 +07:00
parent 1a8f241aad
commit 3d4d7e0342

View File

@@ -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';
} }
} }