diff options
author | 2022-04-18 08:36:22 +0200 | |
---|---|---|
committer | 2022-04-18 08:40:07 +0200 | |
commit | 71f79a5bbfe0dd5451a435c0a55e8b77ee7d3848 (patch) | |
tree | 7210885186d49f07ad6c7a047547cfd1ad4aa7a8 /src/components | |
parent | 4112fa532e3d4be190d52bf3b11e0d4c3625a402 (diff) | |
download | it-tools-71f79a5bbfe0dd5451a435c0a55e8b77ee7d3848.tar.gz it-tools-71f79a5bbfe0dd5451a435c0a55e8b77ee7d3848.tar.zst it-tools-71f79a5bbfe0dd5451a435c0a55e8b77ee7d3848.zip |
fix(menu): menu auto closed on mobile
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/MenuLayout.vue | 26 |
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 |