This commit is contained in:
Vanessa 2022-05-28 22:43:27 +08:00
parent 410251677c
commit 4837f35487
5 changed files with 23 additions and 18 deletions

View file

@ -45,7 +45,7 @@ export class MobileOutline {
}
});
this.element.firstElementChild.querySelector('[data-type="collapse"]').addEventListener(getEventName(), () => {
this.tree.collapseAll(true);
this.tree.collapseAll();
});
const expandElement = this.element.firstElementChild.querySelector('[data-type="expand"]');
expandElement.addEventListener(getEventName(), () => {