import { CocoComponent } from "@assets/js/base/coco"; export default CocoComponent("appNavDrawer", () => { return { active: false, init() { this.$watch("drawerOpen", (open) => { if (open) { this.$refs.content.scrollTop = 0; setTimeout(() => { this.active = true; }, 200); } else { this.active = false; } }); }, close() { this.drawerOpen = false; }, }; });