Sha256: 9951f9cac8bf7012e9ca46febb1053a21dd6ccd3af81942461f5f1ba38c9fe10
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
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; }, }; });
Version data entries
3 entries across 3 versions & 1 rubygems