aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/MenuLayout.vue26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/components/MenuLayout.vue b/src/components/MenuLayout.vue
index f5db700..721a14d 100644
--- a/src/components/MenuLayout.vue
+++ b/src/components/MenuLayout.vue
@@ -9,8 +9,6 @@
:show-trigger="false"
:native-scrollbar="false"
:position="siderPosition"
- @collapse="isMenuCollapsed = true"
- @expand="isMenuCollapsed = false"
>
<slot name="sider" />
</n-layout-sider>
@@ -36,24 +34,24 @@ const siderPosition = computed(() => isSmallScreen.value ? 'absolute' : 'static'
<style lang="less" scoped>
.overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: #00000080;
- cursor: pointer;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: #00000080;
+ cursor: pointer;
}
.content {
- // background-color: #f1f5f9;
- ::v-deep(.n-layout-scroll-container) {
- padding: 26px;
- }
+ // background-color: #f1f5f9;
+ ::v-deep(.n-layout-scroll-container) {
+ padding: 26px;
+ }
}
.n-layout {
- height: 100vh;
+ height: 100vh;
}
</style> \ No newline at end of file