feat: 移动端兼容优化
This commit is contained in:
@@ -752,14 +752,17 @@ function toggleSidebar() {
|
||||
.aside-container {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
top: var(--header-container-default-height, 64px);
|
||||
bottom: 0;
|
||||
z-index: 1000;
|
||||
width: 280px !important;
|
||||
max-width: 80vw;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
|
||||
background: #fff;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
||||
&.aside-collapsed {
|
||||
transform: translateX(-100%);
|
||||
@@ -773,6 +776,7 @@ function toggleSidebar() {
|
||||
|
||||
.aside-wrapper {
|
||||
width: 280px !important;
|
||||
max-width: 80vw;
|
||||
|
||||
.aside-collapsed & {
|
||||
width: 100px !important;
|
||||
@@ -782,7 +786,7 @@ function toggleSidebar() {
|
||||
// 移动端遮罩层
|
||||
.aside-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
top: var(--header-container-default-height, 64px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
|
||||
@@ -195,6 +195,8 @@ function toggleMobileMenu() {
|
||||
direction="rtl"
|
||||
:size="280"
|
||||
:close-on-click-modal="true"
|
||||
:lock-scroll="true"
|
||||
:modal-class="'mobile-drawer-modal'"
|
||||
class="mobile-drawer"
|
||||
>
|
||||
<template #header>
|
||||
|
||||
Reference in New Issue
Block a user