提交 919bedcc 编写于 作者: H haoxr

fix(layout): 窄屏模式下点击空白关闭菜单栏


Former-commit-id: 990a3472
上级 dcda69dd
......@@ -10,7 +10,6 @@ import { useSettingsStore } from '@/store/modules/settings';
const { width } = useWindowSize();
/**
* 响应式布局容器固定宽度
*
......@@ -60,6 +59,7 @@ function handleOutsideClick() {
<!-- 手机设备 && 侧边栏 → 显示遮罩层 -->
<div
v-if="classObj.mobile && classObj.openSidebar"
class="drawer-bg"
@click="handleOutsideClick"
></div>
......@@ -84,7 +84,7 @@ function handleOutsideClick() {
<style lang="scss" scoped>
.app-wrapper {
&:after {
&:after {
content: '';
display: table;
clear: both;
......@@ -99,15 +99,6 @@ function handleOutsideClick() {
top: 0;
}
}
.drawer-bg {
background: #000;
opacity: 0.3;
width: 100%;
top: 0;
height: 100%;
position: absolute;
z-index: 999;
}
.fixed-header {
position: fixed;
......@@ -123,4 +114,14 @@ function handleOutsideClick() {
.mobile .fixed-header {
width: 100%;
}
.drawer-bg {
background: #000;
opacity: 0.3;
width: 100%;
top: 0;
height: 100%;
position: absolute;
z-index: 999;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册