refactor(frontend): use composition aoi

This commit is contained in:
syuilo 2023-04-23 08:13:12 +09:00
parent 62af89d433
commit 59dc9516d0
5 changed files with 76 additions and 105 deletions

View file

@ -65,7 +65,7 @@ const getBgColor = (el: HTMLElement) => {
}
};
let rootEl = $ref<HTMLElement>();
let rootEl = $shallowRef<HTMLElement>();
let bgSame = $ref(false);
let opened = $ref(props.defaultOpen);
let openedAtLeastOnce = $ref(props.defaultOpen);