Sha256: 3776e7b97aa83616494f8a7f26417e32a3c8982bd8111ff4c1b62a3dc8c051a1
Contents?: true
Size: 465 Bytes
Versions: 16
Compression:
Stored size: 465 Bytes
Contents
import { CocoComponent } from "@js/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
16 entries across 16 versions & 1 rubygems