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

Version Path
coveragebook_components-0.14.0 app/components/coco/app/nav_drawer/nav_drawer.js
coveragebook_components-0.13.1 app/components/coco/app/nav_drawer/nav_drawer.js
coveragebook_components-0.13.0 app/components/coco/app/nav_drawer/nav_drawer.js