-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ pmenu.meta.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
diff --git a/snowy-admin-web/src/layout/pattern/classical.vue b/snowy-admin-web/src/layout/pattern/classical.vue
new file mode 100644
index 00000000..7ea53f3b
--- /dev/null
+++ b/snowy-admin-web/src/layout/pattern/classical.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/snowy-admin-web/src/layout/pattern/doublerow.vue b/snowy-admin-web/src/layout/pattern/doublerow.vue
new file mode 100644
index 00000000..32da0a14
--- /dev/null
+++ b/snowy-admin-web/src/layout/pattern/doublerow.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
{{ pMenu.meta.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/snowy-admin-web/src/router/scrollBehavior.js b/snowy-admin-web/src/router/scrollBehavior.js
index f7d65bf6..040f60bb 100644
--- a/snowy-admin-web/src/router/scrollBehavior.js
+++ b/snowy-admin-web/src/router/scrollBehavior.js
@@ -12,7 +12,7 @@ import { nextTick } from 'vue'
import { viewTagsStore } from '@/store'
export function beforeEach(to, from) {
- const adminMain = document.querySelector('#adminui-main')
+ const adminMain = document.querySelector('#admin-ui-main')
if (!adminMain) {
return false
}
@@ -24,7 +24,7 @@ export function beforeEach(to, from) {
}
export function afterEach(to) {
- const adminMain = document.querySelector('#adminui-main')
+ const adminMain = document.querySelector('#admin-ui-main')
if (!adminMain) {
return false
}
diff --git a/snowy-admin-web/src/store/global.js b/snowy-admin-web/src/store/global.js
index f90940fa..000549b9 100644
--- a/snowy-admin-web/src/store/global.js
+++ b/snowy-admin-web/src/store/global.js
@@ -34,7 +34,7 @@ export const globalStore = defineStore({
id: 'global',
state: () => ({
// 移动端布局
- ismobile: false,
+ isMobile: false,
// 布局
layout: getCacheConfig('SNOWY_LAYOUT'),
// 菜单是否折叠 toggle
@@ -46,9 +46,9 @@ export const globalStore = defineStore({
// 是否展示面包屑
breadcrumbOpen: getCacheConfig('SNOWY_BREADCRUMD_OPEN'),
// 顶栏是否应用主题色
- topHanderThemeColorOpen: getCacheConfig('SNOWY_TOP_HANDER_THEME_COLOR_OPEN'),
+ topHeaderThemeColorOpen: getCacheConfig('SNOWY_TOP_HEADER_THEME_COLOR_OPEN'),
// 顶栏主题色通栏
- topHanderThemeColorSpread: getCacheConfig('SNOWY_TOP_HANDER_THEME_COLOR_SPREAD'),
+ topHeaderThemeColorSpread: getCacheConfig('SNOWY_TOP_HEADER_THEME_COLOR_SPREAD'),
// 模块坞
moduleUnfoldOpen: getCacheConfig('SNOWY_MODULE_UNFOLD_OPEN'),
// 主题
@@ -60,12 +60,14 @@ export const globalStore = defineStore({
// 用户信息
userInfo: toolDataGet('USER_INFO') || {},
// 系统配置
- sysBaseConfig: toolDataGet('SNOWY_SYS_BASE_CONFIG') || config.SYS_BASE_CONFIG
+ sysBaseConfig: toolDataGet('SNOWY_SYS_BASE_CONFIG') || config.SYS_BASE_CONFIG,
+ // 默认应用
+ module: getCacheConfig('SNOWY_MENU_MODULE_ID')
}),
getters: {},
actions: {
- setIsmobile(key) {
- this.ismobile = key
+ setIsMobile(key) {
+ this.isMobile = key
},
setLayout(key) {
this.layout = key
@@ -95,6 +97,9 @@ export const globalStore = defineStore({
},
setSysBaseConfig(key) {
this.sysBaseConfig = key
+ },
+ setModule(key) {
+ this.module = key
}
}
})
diff --git a/snowy-admin-web/src/style/index.less b/snowy-admin-web/src/style/index.less
index 2d3cdf73..a936141f 100644
--- a/snowy-admin-web/src/style/index.less
+++ b/snowy-admin-web/src/style/index.less
@@ -33,20 +33,20 @@ a, button, input, textarea {
}
/* 大布局样式 */
-.aminui {
+.admin-ui {
overflow: hidden;
- height: 100vh;
+ height: 100%;
display: flex;
flex-flow: column;
}
-.aminui-wrapper {
+.admin-ui-wrapper {
display: flex;
flex: 1;
overflow: auto;
}
-.adminui-main {
+.admin-ui-main {
display: flex;
flex-direction: column;
height: 100%;
@@ -222,16 +222,16 @@ a, button, input, textarea {
}
/* 面包屑 */
-.adminui-topbar {
+.admin-ui-topbar {
padding-left: 15px
}
-.adminui-topbar .left-panel {
+.admin-ui-topbar .left-panel {
display: flex;
align-items: center;
}
-.adminui-topbar .right-panel {
+.admin-ui-topbar .right-panel {
display: flex;
align-items: center;
}
@@ -363,7 +363,7 @@ a, button, input, textarea {
}
/*页面最大化*/
-.aminui.main-maximize {
+.admin-ui.main-maximize {
.main-maximize-exit {
display: block;
}
@@ -436,9 +436,10 @@ a, button, input, textarea {
// 滚动条,需要哪里,加哪个class
body,
+.ant-scrolling-effect,
.ant-drawer-wrapper-body,
.ant-drawer-body,
-.aminui,
+.admin-ui,
.ant-modal-wrap,
.ant-transfer-list-content,
.ant-card,
@@ -460,7 +461,7 @@ body,
.gen-preview-content,
.ant-menu,
-.adminui-main{
+.admin-ui-main{
&::-webkit-scrollbar {
/*滚动条整体样式*/
width : 0px; /*高宽分别对应横竖滚动条的尺寸*/
diff --git a/snowy-admin-web/src/style/media.less b/snowy-admin-web/src/style/media.less
index 052a027c..258682c4 100644
--- a/snowy-admin-web/src/style/media.less
+++ b/snowy-admin-web/src/style/media.less
@@ -26,7 +26,7 @@
margin-left: 0px !important;
}
- .adminui-main {
+ .admin-ui-main {
> .el-container {
display: block;
height: auto;
@@ -84,43 +84,43 @@
}
}
- .adminui-main > .el-container > *:first-child:not(.el-aside):not(.el-header) {
+ .admin-ui-main > .el-container > *:first-child:not(.el-aside):not(.el-header) {
border: 0;
margin-top: 0;
}
- .adminui-main > .el-container > *:first-child:not(.el-aside):not(.el-header) + .el-aside {
+ .admin-ui-main > .el-container > *:first-child:not(.el-aside):not(.el-header) + .el-aside {
margin-top: 0;
}
- .adminui-main > .el-container > .el-aside {
+ .admin-ui-main > .el-container > .el-aside {
border-bottom: 1px solid #ebeef5 !important;
}
- .adminui-main > .el-container > .el-container {
+ .admin-ui-main > .el-container > .el-container {
border-top: 1px solid #ebeef5;
border-bottom: 1px solid #ebeef5;
margin-top: 15px;
}
- .adminui-main > .el-container > .el-header {
+ .admin-ui-main > .el-container > .el-header {
@extend . headerPublic;
border-bottom: 1px solid #ebeef5;
}
- .adminui-main > .el-container > .el-main {
+ .admin-ui-main > .el-container > .el-main {
border-top: 1px solid #ebeef5;
border-bottom: 1px solid #ebeef5;
margin-top: 15px;
}
- .adminui-main > .el-container > .el-main + .el-aside {
+ .admin-ui-main > .el-container > .el-main + .el-aside {
border-left: 0 !important;
border-top: 1px solid #ebeef5;
margin-top: 15px;
}
- .adminui-main > .el-container > .el-container > .el-header {
+ .admin-ui-main > .el-container > .el-container > .el-header {
@extend . headerPublic
}
}