diff --git a/src/App.vue b/src/App.vue
index e437adf..09f9956 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -25,13 +25,6 @@
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
}
- html,
- body {
- height: 100%;
- }
- body{
- background: #f6f8f9;
- }
.el-pager li:focus {
border: none;
}
@@ -43,8 +36,4 @@
border: none!important;
outline: none!important;
}
- * {
- margin: 0;
- padding: 0;
- }
diff --git a/src/components/Table/PropTable/index.vue b/src/components/Table/PropTable/index.vue
new file mode 100644
index 0000000..c53e217
--- /dev/null
+++ b/src/components/Table/PropTable/index.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/u-Hamburger/index.vue b/src/components/u-Hamburger/index.vue
index 9a89e3a..562edfb 100644
--- a/src/components/u-Hamburger/index.vue
+++ b/src/components/u-Hamburger/index.vue
@@ -1,6 +1,6 @@
-
+
.m-container-layout {
- padding: 20px;
- box-sizing: border-box;
width: 100%;
height: 100%;
+ display: flex;
+ padding: 20px;
+ box-sizing: border-box;
.m-container-layout-inner {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
background: white;
padding: 20px;
width: 100%;
box-sizing: border-box;
- min-height: 100%;
}
}
diff --git a/src/layout/Header/index.vue b/src/layout/Header/index.vue
index 6cb5770..f683d9a 100644
--- a/src/layout/Header/index.vue
+++ b/src/layout/Header/index.vue
@@ -131,8 +131,9 @@
cursor: pointer;
}
.header {
- height: 60px;
+ height: 50px;
width: 100%;
+ border-bottom: 1px solid #eee;
display: flex;
align-items: center;
padding: 0 10px;
diff --git a/src/layout/Main/index.vue b/src/layout/Main/index.vue
index 2afae56..196e933 100644
--- a/src/layout/Main/index.vue
+++ b/src/layout/Main/index.vue
@@ -1,5 +1,5 @@
-
diff --git a/src/router/index.ts b/src/router/index.ts
index 096e645..c1bf461 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -8,7 +8,6 @@ interface extendRoute {
// 引入组件
//
-import permissionRouter from './modules/permission'
import tableRouter from './modules/table'
import dataScreenRouter from './modules/dataScreen'
import errorRouter from './modules/error'
@@ -110,9 +109,7 @@ export const asyncRoutes = [
dataScreenRouter,
chartsRouter,
tableRouter,
-
chatRouter,
- // componentsRouter,
othersRouter,
nestedRouter,
excelRouter,
@@ -121,8 +118,6 @@ export const asyncRoutes = [
externalLink,
clipboardTable,
systemRouter,
- permissionRouter,
-
{
path: '/:pathMatch(.*)',
redirect: '/error/404'
diff --git a/src/router/modules/permission.ts b/src/router/modules/permission.ts
deleted file mode 100644
index f0eb210..0000000
--- a/src/router/modules/permission.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/** When your routing table is too long, you can split it into small modules**/
-
-import Layout from "@/layout/index.vue";
-
-const permissionRouter = {
- path: '/permission',
- component: Layout,
- redirect: 'noRedirect',
- name: 'permission',
- alwaysShow: true, // 总是显示根目录
- meta: {
- title: '权限测试页',
- icon: 'trend-charts', roles:['other']
- },
- children: [
- {
- path: 'page',
- component: () => import('@/views/permission/page.vue'),
- name: 'page',
- meta: { title: '页面权限', icon: 'trend-charts', roles:['other'] }
- },
- ]
-}
-
-export default permissionRouter
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 855cdd8..6435eec 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -12,6 +12,12 @@ const systemRouter = {
icon: 'ElementPlus'
},
children: [
+ {
+ path: 'page',
+ component: () => import('@/views/system/page.vue'),
+ name: 'page',
+ meta: { title: '页面权限', icon: 'trend-charts', roles:['other'] }
+ },
{
path: 'user',
component: () => import('@/views/system/user.vue'),
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index b9218ff..cef3cdd 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -35,6 +35,13 @@ export const useUserStore = defineStore({
resolve(this.roles)
} )
},
+ // 获取用户信息 ,如实际应用中 可以通过token通过请求接口在这里获取用户信息
+ getInfo(roles) {
+ return new Promise((resolve, reject) =>{
+ this.roles = roles
+ resolve(roles)
+ } )
+ },
// 退出
logout() {
return new Promise((resolve, reject) => {
diff --git a/src/styles/common.scss b/src/styles/common.scss
index dd90a11..223479d 100644
--- a/src/styles/common.scss
+++ b/src/styles/common.scss
@@ -1,3 +1,18 @@
+html,
+body {
+ height: 100%;
+ width: 100%;
+ overflow: visible;
+ overflow-x: hidden;
+ margin: 0;
+ padding: 0;
+}
+
+
+body{
+ background: #f6f8f9;
+}
+
/* 常用 flex */
.flex-center {
@@ -15,9 +30,42 @@
align-items: center;
}
-
+/* 移动端的时候由于屏幕变小隐藏头部导航栏 */
@media screen and ( max-width: 540px ) {
.app-breadcrumb{
display: none!important;
}
}
+
+
+/** 设置滚动条 **/
+::-webkit-scrollbar {
+ width: 7px;
+ height: 8px;
+}
+
+
+::-webkit-scrollbar-track {
+ background-color: rgb(0 0 0 / 5%);
+}
+
+::-webkit-scrollbar-thumb {
+ // background: rgba(0, 0, 0, 0.6);
+ background-color: rgb(144 147 153 / 30%);
+ // background-color: rgba(144, 147, 153, 0.3);
+ border-radius: 2px;
+ box-shadow: inset 0 0 6px rgb(0 0 0 / 20%);
+}
+
+
+/* nprogress样式 */
+#nprogress .bar {
+ background: $primaryColor !important;
+}
+#nprogress .spinner-icon {
+ border-top-color: $primaryColor !important;
+ border-left-color: $primaryColor !important;
+}
+#nprogress .peg {
+ box-shadow: 0 0 10px $primaryColor, 0 0 5px $primaryColor !important;
+}
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 082c378..20b2e8c 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -1,6 +1,6 @@
-@import "./common.scss";
@import './variables.scss';
@import './sidebar.scss';
@import './transition.scss';
+@import "./common.scss";
diff --git a/src/styles/transition.scss b/src/styles/transition.scss
index 896f436..836eacf 100644
--- a/src/styles/transition.scss
+++ b/src/styles/transition.scss
@@ -40,15 +40,30 @@
-// 面包屑动画
-.breadcrumb-enter-active {
- transition: all 0.25s;
+// 面包屑动画 方案1
+//.breadcrumb-enter-active {
+// transition: all 0.25s;
+//}
+//.breadcrumb-enter-from,
+//.breadcrumb-leave-active {
+// opacity: 0;
+// transform: translateX(30px) skewX(-50deg);
+//}
+/* 面包屑动画 方案2 */
+.breadcrumb-enter-active,
+.breadcrumb-leave-active {
+ transition: all 0.2s ease;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
opacity: 0;
- transform: translateX(30px) skewX(-50deg);
+ transform: translateX(10px);
}
+.breadcrumb-leave-active {
+ position: absolute;
+ z-index: -1;
+}
+
.fade-transform-leave-active,
.fade-transform-enter-active {
diff --git a/src/views/charts/migration.vue b/src/views/charts/migration.vue
index c8050d2..20d9c36 100644
--- a/src/views/charts/migration.vue
+++ b/src/views/charts/migration.vue
@@ -11,12 +11,12 @@
diff --git a/src/views/table/comprehensive.vue b/src/views/table/comprehensive.vue
index 03f0ee7..d8527c7 100644
--- a/src/views/table/comprehensive.vue
+++ b/src/views/table/comprehensive.vue
@@ -1,21 +1,21 @@
-
-
+
@@ -28,16 +28,16 @@
删除
-
+
@@ -63,12 +63,13 @@