Răsfoiți Sursa

样式修改:系统样式优化;

chengbeibei 10 luni în urmă
părinte
comite
2e6d152806

+ 1 - 1
public/index.html

@@ -232,7 +232,7 @@
     }
     /* 滚动条优化 start */
     ::-webkit-scrollbar{
-      width:8px;
+      width:4px;
       height:8px;
     }
     ::-webkit-scrollbar-track{

+ 1 - 1
src/components/layouts/TabLayout.vue

@@ -18,7 +18,7 @@
         <span slot="tab" :pagekey="page.fullPath">{{ page.meta.title }}</span>
       </a-tab-pane>
     </a-tabs>
-    <div style="margin: 12px 12px 0;">
+    <div style="margin: 12px 12px 0; height: calc(100% - 85px); overflow-y: auto;">
       <!-- update-begin-author:taoyan date:20201221 for:此处删掉transition标签 不知道为什么加上后 页面路由切换的时候即1及菜单切到2及菜单的时候 两个菜单页面会同时出现300-500秒左右 -->
       <keep-alive v-if="multipage">
         <router-view v-if="reloadFlag"/>

+ 3 - 3
src/components/page/GlobalLayout.vue

@@ -23,13 +23,13 @@
 		</template>
 
 		<a-layout :class="[layoutMode, `content-width-${contentWidth}`]"
-			:style="{ paddingLeft: fixSiderbar && isDesktop() ? `${sidebarOpened ? 200 : 80}px` : '0' }">
+			:style="{ paddingLeft: fixSiderbar && isDesktop() ? `${sidebarOpened ? 228 : 80}px` : '0' }">
 			<!-- layout header -->
 			<global-header :mode="layoutMode" :menus="menus" :theme="navTheme" :collapsed="collapsed" :device="device"
 				@toggle="toggle" @updateMenuTitle="handleUpdateMenuTitle" />
 
 			<!-- layout content -->
-			<a-layout-content :style="{ height: '100%', paddingTop: fixedHeader ? '59px' : '0' }">
+			<a-layout-content :style="{ height: 'calc(100vh - '+fixedHeader ? '59px' : '0'+'px)', paddingTop: fixedHeader ? '59px' : '0', overflow: 'hidden' }">
 				<slot>
 					
 				</slot>
@@ -209,7 +209,7 @@
 <style lang="less">
 	body {
 		// 打开滚动条固定显示
-		overflow-y: scroll;
+		//overflow-y: scroll;
 
 		&.colorWeak {
 			filter: invert(80%);