+
@@ -36,6 +37,11 @@ export default {
mobile: this.device === 'mobile'
}
}
+ },
+ methods: {
+ handleClickOutside() {
+ this.$store.dispatch('closeSideBar', { withoutAnimation: false })
+ }
}
}
@@ -48,4 +54,13 @@ export default {
height: 100%;
width: 100%;
}
+ .drawer-bg {
+ background: #000;
+ opacity: 0.3;
+ width: 100%;
+ top: 0;
+ height: 100%;
+ position: absolute;
+ z-index: 999;
+ }
diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue
index 007e792d..d006d656 100644
--- a/src/views/layout/components/Sidebar/index.vue
+++ b/src/views/layout/components/Sidebar/index.vue
@@ -1,5 +1,5 @@
-
+
-
+