@ftlab/one-vue3 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +24 -24
- package/.prettierrc.cjs +17 -17
- package/CHANGELOG.md +4 -7
- package/README.md +61 -61
- package/assets/css/index.scss +25 -25
- package/assets/css/mixin.scss +142 -142
- package/assets/css/public.scss +175 -175
- package/dist/CheckMessageDialog-0d114bc1.cjs +1 -0
- package/dist/{CheckMessageDialog-cc32dd0e.js → CheckMessageDialog-9821daa9.js} +166 -167
- package/dist/ftlOne.cjs +1 -1
- package/dist/ftlOne.js +1 -1
- package/dist/ftlOne.umd.cjs +13 -13
- package/dist/{index-e5e2a9ce.cjs → index-18174960.cjs} +56 -56
- package/dist/{index-0c7e1f50.js → index-d06682a7.js} +14712 -14714
- package/dist/style.css +1 -1
- package/function/index.ts +4 -4
- package/function/info.ts +17 -17
- package/function/permission.ts +17 -17
- package/i18n/cn.json +16 -16
- package/i18n/en.json +16 -16
- package/i18n/fr.json +16 -16
- package/package.json +71 -71
- package/store/auth.js +63 -63
- package/store/index.js +4 -4
- package/store/lang.js +16 -16
- package/utils/date.ts +119 -119
- package/utils/storage.js +27 -27
- package/dist/CheckMessageDialog-0db54f3d.cjs +0 -1
package/.eslintrc.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
es2021: true,
|
|
6
|
-
node: true
|
|
7
|
-
},
|
|
8
|
-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-essential'],
|
|
9
|
-
parserOptions: {
|
|
10
|
-
ecmaVersion: 'latest',
|
|
11
|
-
parser: '@typescript-eslint/parser',
|
|
12
|
-
sourceType: 'module'
|
|
13
|
-
},
|
|
14
|
-
plugins: ['@typescript-eslint', 'vue'],
|
|
15
|
-
rules: {
|
|
16
|
-
'no-var': 'error', // 禁止使用 var
|
|
17
|
-
'no-mixed-spaces-and-tabs': 'error', // 不能空格与tab混用
|
|
18
|
-
quotes: [2, 'single'], // 使用单引号
|
|
19
|
-
'vue/multi-word-component-names': 'off', // 驼峰警告
|
|
20
|
-
'@typescript-eslint/no-explicit-any': 'off', // 使用any类型警告
|
|
21
|
-
'@typescript-eslint/no-unused-vars': 'off', // 关闭检测未使用的变量,交由tsconfig.json中noUnusedLocals决定
|
|
22
|
-
'no-undef': 0 // 不能有未定义的变量
|
|
23
|
-
}
|
|
24
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
es2021: true,
|
|
6
|
+
node: true
|
|
7
|
+
},
|
|
8
|
+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-essential'],
|
|
9
|
+
parserOptions: {
|
|
10
|
+
ecmaVersion: 'latest',
|
|
11
|
+
parser: '@typescript-eslint/parser',
|
|
12
|
+
sourceType: 'module'
|
|
13
|
+
},
|
|
14
|
+
plugins: ['@typescript-eslint', 'vue'],
|
|
15
|
+
rules: {
|
|
16
|
+
'no-var': 'error', // 禁止使用 var
|
|
17
|
+
'no-mixed-spaces-and-tabs': 'error', // 不能空格与tab混用
|
|
18
|
+
quotes: [2, 'single'], // 使用单引号
|
|
19
|
+
'vue/multi-word-component-names': 'off', // 驼峰警告
|
|
20
|
+
'@typescript-eslint/no-explicit-any': 'off', // 使用any类型警告
|
|
21
|
+
'@typescript-eslint/no-unused-vars': 'off', // 关闭检测未使用的变量,交由tsconfig.json中noUnusedLocals决定
|
|
22
|
+
'no-undef': 0 // 不能有未定义的变量
|
|
23
|
+
}
|
|
24
|
+
};
|
package/.prettierrc.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
printWidth: 120, // 单行输出(不折行)的(最大)长度
|
|
3
|
-
tabWidth: 2, // 每个缩进级别的空格数
|
|
4
|
-
tabs: false, // 使用制表符 (tab) 缩进行而不是空格 (space)。
|
|
5
|
-
semi: true, // 是否在语句末尾打印分号
|
|
6
|
-
singleQuote: true, // 是否使用单引号
|
|
7
|
-
quoteProps: "as-needed", // 仅在需要时在对象属性周围添加引号
|
|
8
|
-
jsxSingleQuote: false, // jsx 不使用单引号,而使用双引号
|
|
9
|
-
trailingComma: "none", // 去除对象最末尾元素跟随的逗号
|
|
10
|
-
bracketSpacing: true, // 是否在对象属性添加空格
|
|
11
|
-
jsxBracketSameLine: true, // 将 > 多行 JSX 元素放在最后一行的末尾,而不是单独放在下一行(不适用于自闭元素),默认false,这里选择>不另起一行
|
|
12
|
-
arrowParens: "always", // 箭头函数,只有一个参数的时候,也需要括号
|
|
13
|
-
proseWrap: "always", // 当超出print width(上面有这个参数)时就折行
|
|
14
|
-
htmlWhitespaceSensitivity: "ignore", // 指定 HTML 文件的全局空白区域敏感度, "ignore" - 空格被认为是不敏感的
|
|
15
|
-
vueIndentScriptAndStyle: false, // 在VUE文件中不要缩进脚本和样式标记
|
|
16
|
-
stylelintIntegration: true,
|
|
17
|
-
endOfLine: "auto",
|
|
1
|
+
module.exports = {
|
|
2
|
+
printWidth: 120, // 单行输出(不折行)的(最大)长度
|
|
3
|
+
tabWidth: 2, // 每个缩进级别的空格数
|
|
4
|
+
tabs: false, // 使用制表符 (tab) 缩进行而不是空格 (space)。
|
|
5
|
+
semi: true, // 是否在语句末尾打印分号
|
|
6
|
+
singleQuote: true, // 是否使用单引号
|
|
7
|
+
quoteProps: "as-needed", // 仅在需要时在对象属性周围添加引号
|
|
8
|
+
jsxSingleQuote: false, // jsx 不使用单引号,而使用双引号
|
|
9
|
+
trailingComma: "none", // 去除对象最末尾元素跟随的逗号
|
|
10
|
+
bracketSpacing: true, // 是否在对象属性添加空格
|
|
11
|
+
jsxBracketSameLine: true, // 将 > 多行 JSX 元素放在最后一行的末尾,而不是单独放在下一行(不适用于自闭元素),默认false,这里选择>不另起一行
|
|
12
|
+
arrowParens: "always", // 箭头函数,只有一个参数的时候,也需要括号
|
|
13
|
+
proseWrap: "always", // 当超出print width(上面有这个参数)时就折行
|
|
14
|
+
htmlWhitespaceSensitivity: "ignore", // 指定 HTML 文件的全局空白区域敏感度, "ignore" - 空格被认为是不敏感的
|
|
15
|
+
vueIndentScriptAndStyle: false, // 在VUE文件中不要缩进脚本和样式标记
|
|
16
|
+
stylelintIntegration: true,
|
|
17
|
+
endOfLine: "auto",
|
|
18
18
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -7,16 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
## [v0.2.
|
|
10
|
+
## [v0.2.14](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.14)
|
|
11
11
|
|
|
12
12
|
### Commits
|
|
13
13
|
|
|
14
14
|
- feat: add date methods [`c41c7a2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c41c7a26509d85073c815f87ed3bb03062654985)
|
|
15
15
|
- fix: build bug fix [`d49527d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d49527d29060ddd1a040a366ca4808e827b5f4df)
|
|
16
16
|
- feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
|
|
17
|
+
- feat: remove element-plus origin style [`a0c4fa1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/a0c4fa1b195c3ee570a093c103ea28a3fbb64ac1)
|
|
17
18
|
- hotfix: emit changeLanguage [`98f7a12`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/98f7a12b06c16af4aedf4f1bf89442dcf727694c)
|
|
18
19
|
- feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
|
|
19
20
|
- fix: fix collapse style error [`54e9525`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/54e9525a99b216a9f7bb1b29ec578a768b49cb93)
|
|
21
|
+
- feat: add click event [`6a63a8a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6a63a8ac7c5ca710c6d91765c573af53df439bf4)
|
|
20
22
|
- charge storage to js [`1d1368d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d1368ddb5d1ce8ecbc5754530b46f705146013f)
|
|
21
23
|
- fix: remove type declare [`d611d3a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d611d3ab302a4426e96f1c1e4e7ae940e427c9a9)
|
|
22
24
|
- chore: charge ts to js [`e2feead`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/e2feeadc54c45ddab43a8947d38cb1decc76d230)
|
|
@@ -34,16 +36,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
34
36
|
|
|
35
37
|
- feat: detail change [`79e1942`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/79e1942cf40561940eb6de31a17da0432aa2bf75)
|
|
36
38
|
|
|
37
|
-
## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.
|
|
39
|
+
## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.2.0) - 2023-11-28
|
|
38
40
|
|
|
39
41
|
### Commits
|
|
40
42
|
|
|
41
43
|
- feat: ftlPasswordDialog add [`c7910c6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c7910c6e0c911fcd8d3a279602c3d40420f76e50)
|
|
42
|
-
|
|
43
|
-
## [v0.1.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.1.6) - 2023-09-12
|
|
44
|
-
|
|
45
|
-
### Commits
|
|
46
|
-
|
|
47
44
|
- feat: add message center [`ec3bcf5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ec3bcf5e744cb0606cb6d10af0200b7dec39604b)
|
|
48
45
|
|
|
49
46
|
## [v0.1.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.4...v0.1.5) - 2023-08-30
|
package/README.md
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# one-vue3
|
|
2
|
-
|
|
3
|
-
### 如何使用
|
|
4
|
-
***
|
|
5
|
-
在项目中的main.ts中:
|
|
6
|
-
```vue
|
|
7
|
-
import { createApp } from 'vue';
|
|
8
|
-
import App from './App.vue';
|
|
9
|
-
import FtlOne from '@ftlab/one-vue3';
|
|
10
|
-
import '@ftlab/one-vue3/dist/style.css';
|
|
11
|
-
import '@ftlab/one-vue3/assets/fontAwesome/css/font-awesome.css';
|
|
12
|
-
|
|
13
|
-
const app=createApp(App);
|
|
14
|
-
app.use(FtlOne); // 注册全局组件
|
|
15
|
-
```
|
|
16
|
-
### 侧边栏主题色配置
|
|
17
|
-
***
|
|
18
|
-
在项目中新建一个scss文件,填写如下内容,在全局中引入
|
|
19
|
-
```sass
|
|
20
|
-
@forward 'node_modules/@ftlab/one-vue3/assets/css/index.scss' with (
|
|
21
|
-
$color: #fff, /* 侧边栏菜单字体颜色 */
|
|
22
|
-
$--color-header: #2e45ad, /* 侧边栏菜单交互背景色 */
|
|
23
|
-
$--color-text: #0026d5, /* 侧边栏二级子菜单选中字体颜色 */
|
|
24
|
-
$bg: #00265d, /* 侧边栏菜单背景色 */
|
|
25
|
-
$content-bg: #94a5c1 /* 侧边栏菜单二级子菜单背景色 */
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
### 提供的全局组件
|
|
30
|
-
***
|
|
31
|
-
|
|
32
|
-
#### FtlNavbar
|
|
33
|
-
|
|
34
|
-
顶部导航栏
|
|
35
|
-
|
|
36
|
-
| 属性 | 说明 | 类型 | 默认值 |
|
|
37
|
-
|:----------------:|:---------:|:--------:|:----------------------------:|
|
|
38
|
-
| sidebar | 是否可以收起侧边栏 | boolean | true |
|
|
39
|
-
| isShowBreadcrumb | 是否展示面包屑 | boolean | true |
|
|
40
|
-
| isShowScreenfull | 是否可以全屏展示 | boolean | true |
|
|
41
|
-
| langCodeList | 语言下拉框选项 | string[] | 'en', 'cn', 'fr', 'es', 'or' |
|
|
42
|
-
| logOutText | 退出按钮文本 | string? | 退出 |
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
#### FtlSidebar
|
|
46
|
-
|
|
47
|
-
侧边栏
|
|
48
|
-
|
|
49
|
-
| 属性 | 说明 | 类型 | 默认值 |
|
|
50
|
-
|:----------------:|:-------:|:-----------------:|:----:|
|
|
51
|
-
| collapse | 是否展开侧边栏 | boolean | true |
|
|
52
|
-
| sideBarParams | 侧边栏配置 | SidebarParamsType | {} |
|
|
53
|
-
|
|
54
|
-
#### FtlEntry
|
|
55
|
-
|
|
56
|
-
下拉框(提供项目间跳转的能力)
|
|
57
|
-
|
|
58
|
-
| 属性 | 说明 | 类型 | 默认值 |
|
|
59
|
-
|:-------------:|:------:|:------:|:---------:|
|
|
60
|
-
| witdh | 下拉框宽度 | number | 240 |
|
|
61
|
-
| authBaseUrl | 权限请求地址 | string | gateway地址 |
|
|
1
|
+
# one-vue3
|
|
2
|
+
|
|
3
|
+
### 如何使用
|
|
4
|
+
***
|
|
5
|
+
在项目中的main.ts中:
|
|
6
|
+
```vue
|
|
7
|
+
import { createApp } from 'vue';
|
|
8
|
+
import App from './App.vue';
|
|
9
|
+
import FtlOne from '@ftlab/one-vue3';
|
|
10
|
+
import '@ftlab/one-vue3/dist/style.css';
|
|
11
|
+
import '@ftlab/one-vue3/assets/fontAwesome/css/font-awesome.css';
|
|
12
|
+
|
|
13
|
+
const app=createApp(App);
|
|
14
|
+
app.use(FtlOne); // 注册全局组件
|
|
15
|
+
```
|
|
16
|
+
### 侧边栏主题色配置
|
|
17
|
+
***
|
|
18
|
+
在项目中新建一个scss文件,填写如下内容,在全局中引入
|
|
19
|
+
```sass
|
|
20
|
+
@forward 'node_modules/@ftlab/one-vue3/assets/css/index.scss' with (
|
|
21
|
+
$color: #fff, /* 侧边栏菜单字体颜色 */
|
|
22
|
+
$--color-header: #2e45ad, /* 侧边栏菜单交互背景色 */
|
|
23
|
+
$--color-text: #0026d5, /* 侧边栏二级子菜单选中字体颜色 */
|
|
24
|
+
$bg: #00265d, /* 侧边栏菜单背景色 */
|
|
25
|
+
$content-bg: #94a5c1 /* 侧边栏菜单二级子菜单背景色 */
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
### 提供的全局组件
|
|
30
|
+
***
|
|
31
|
+
|
|
32
|
+
#### FtlNavbar
|
|
33
|
+
|
|
34
|
+
顶部导航栏
|
|
35
|
+
|
|
36
|
+
| 属性 | 说明 | 类型 | 默认值 |
|
|
37
|
+
|:----------------:|:---------:|:--------:|:----------------------------:|
|
|
38
|
+
| sidebar | 是否可以收起侧边栏 | boolean | true |
|
|
39
|
+
| isShowBreadcrumb | 是否展示面包屑 | boolean | true |
|
|
40
|
+
| isShowScreenfull | 是否可以全屏展示 | boolean | true |
|
|
41
|
+
| langCodeList | 语言下拉框选项 | string[] | 'en', 'cn', 'fr', 'es', 'or' |
|
|
42
|
+
| logOutText | 退出按钮文本 | string? | 退出 |
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#### FtlSidebar
|
|
46
|
+
|
|
47
|
+
侧边栏
|
|
48
|
+
|
|
49
|
+
| 属性 | 说明 | 类型 | 默认值 |
|
|
50
|
+
|:----------------:|:-------:|:-----------------:|:----:|
|
|
51
|
+
| collapse | 是否展开侧边栏 | boolean | true |
|
|
52
|
+
| sideBarParams | 侧边栏配置 | SidebarParamsType | {} |
|
|
53
|
+
|
|
54
|
+
#### FtlEntry
|
|
55
|
+
|
|
56
|
+
下拉框(提供项目间跳转的能力)
|
|
57
|
+
|
|
58
|
+
| 属性 | 说明 | 类型 | 默认值 |
|
|
59
|
+
|:-------------:|:------:|:------:|:---------:|
|
|
60
|
+
| witdh | 下拉框宽度 | number | 240 |
|
|
61
|
+
| authBaseUrl | 权限请求地址 | string | gateway地址 |
|
package/assets/css/index.scss
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
@import './public.scss';
|
|
2
|
-
@import './mixin.scss';
|
|
3
|
-
|
|
4
|
-
$color: #fff !default;
|
|
5
|
-
$--color-header: #4f83b2 !default;
|
|
6
|
-
$--color-text: #74bdff !default;
|
|
7
|
-
$bg: #2b3b49 !default;
|
|
8
|
-
$content-bg: #78848e !default;
|
|
9
|
-
|
|
10
|
-
.sidebar-container {
|
|
11
|
-
@include sidebar-container($bg, $color, $--color-header, $content-bg, $--color-text);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.el-menu--vertical {
|
|
15
|
-
@include el-menu--vertical($bg, $--color-header, $--color-text);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.level-bar-toggle-button {
|
|
19
|
-
@include toggle-button($--color-header);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
::-webkit-scrollbar-thumb {
|
|
23
|
-
background-color: $--color-header;
|
|
24
|
-
border-radius: 5px;
|
|
25
|
-
}
|
|
1
|
+
@import './public.scss';
|
|
2
|
+
@import './mixin.scss';
|
|
3
|
+
|
|
4
|
+
$color: #fff !default;
|
|
5
|
+
$--color-header: #4f83b2 !default;
|
|
6
|
+
$--color-text: #74bdff !default;
|
|
7
|
+
$bg: #2b3b49 !default;
|
|
8
|
+
$content-bg: #78848e !default;
|
|
9
|
+
|
|
10
|
+
.sidebar-container {
|
|
11
|
+
@include sidebar-container($bg, $color, $--color-header, $content-bg, $--color-text);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.el-menu--vertical {
|
|
15
|
+
@include el-menu--vertical($bg, $--color-header, $--color-text);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.level-bar-toggle-button {
|
|
19
|
+
@include toggle-button($--color-header);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
::-webkit-scrollbar-thumb {
|
|
23
|
+
background-color: $--color-header;
|
|
24
|
+
border-radius: 5px;
|
|
25
|
+
}
|
package/assets/css/mixin.scss
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
@mixin toggle-button($--color-header) {
|
|
2
|
-
height: 35px;
|
|
3
|
-
font-size: 18px;
|
|
4
|
-
margin-left: 10px;
|
|
5
|
-
color: #fff;
|
|
6
|
-
border-radius: 5px;
|
|
7
|
-
background-color: $--color-header;
|
|
8
|
-
padding: 0 10px;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin sidebar-container($bg, $color, $--color-header, $content-bg, $--color-text) {
|
|
16
|
-
background-color: $bg;
|
|
17
|
-
.sidebar-container-header {
|
|
18
|
-
color: $color;
|
|
19
|
-
padding: 10px 0;
|
|
20
|
-
border-bottom: 2px solid $--color-header;
|
|
21
|
-
.pic-box {
|
|
22
|
-
width: 46px;
|
|
23
|
-
height: 46px;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
.logo {
|
|
26
|
-
width: 46px;
|
|
27
|
-
height: 46px;
|
|
28
|
-
filter: drop-shadow(120px 0px #fff);
|
|
29
|
-
transform: translateX(-120px);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
.ftl-pic-box {
|
|
33
|
-
height: 46px;
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
.logo {
|
|
38
|
-
width: 46px;
|
|
39
|
-
height: 30px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.el-menu-vertical-demo {
|
|
44
|
-
padding: 10px;
|
|
45
|
-
}
|
|
46
|
-
.el-menu {
|
|
47
|
-
background-color: $bg;
|
|
48
|
-
border: none;
|
|
49
|
-
.custom-menu-item {
|
|
50
|
-
height: 38px;
|
|
51
|
-
line-height: 38px;
|
|
52
|
-
color: #fff !important;
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
border-radius: 10px;
|
|
55
|
-
&:focus,
|
|
56
|
-
&:hover,
|
|
57
|
-
&.is-active {
|
|
58
|
-
background-color: $--color-header !important;
|
|
59
|
-
}
|
|
60
|
-
i {
|
|
61
|
-
color: #fff;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.el-sub-menu {
|
|
65
|
-
color: #fff !important;
|
|
66
|
-
margin-bottom: 10px;
|
|
67
|
-
&:focus,
|
|
68
|
-
&:hover,
|
|
69
|
-
&.is-active {
|
|
70
|
-
& > .el-sub-menu__title {
|
|
71
|
-
background-color: $--color-header !important;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.el-sub-menu__title {
|
|
75
|
-
height: 38px;
|
|
76
|
-
line-height: 38px;
|
|
77
|
-
border-radius: 10px;
|
|
78
|
-
color: #fff !important;
|
|
79
|
-
}
|
|
80
|
-
&.is-opened {
|
|
81
|
-
background: $--color-header;
|
|
82
|
-
border-radius: 10px;
|
|
83
|
-
.el-menu {
|
|
84
|
-
background-color: $content-bg !important;
|
|
85
|
-
border-bottom-left-radius: 10px !important;
|
|
86
|
-
border-bottom-right-radius: 10px !important;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
.el-menu-item {
|
|
90
|
-
height: 38px;
|
|
91
|
-
line-height: 38px;
|
|
92
|
-
background-color: transparent !important;
|
|
93
|
-
color: #fff !important;
|
|
94
|
-
padding: 0 55px !important;
|
|
95
|
-
&:focus,
|
|
96
|
-
&:hover,
|
|
97
|
-
&.is-active {
|
|
98
|
-
color: $--color-text !important;
|
|
99
|
-
i {
|
|
100
|
-
color: $--color-text !important;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
&:last-child {
|
|
104
|
-
margin-bottom: 0;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@mixin el-menu--vertical($bg, $--color-header, $--color-text) {
|
|
112
|
-
.el-tooltip__trigger {
|
|
113
|
-
padding: 0 !important;
|
|
114
|
-
display: flex;
|
|
115
|
-
justify-content: center;
|
|
116
|
-
align-items: center;
|
|
117
|
-
i {
|
|
118
|
-
margin-right: 0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.el-menu {
|
|
122
|
-
background: $bg !important;
|
|
123
|
-
.el-menu-item {
|
|
124
|
-
color: #fff !important;
|
|
125
|
-
&:focus,
|
|
126
|
-
&:hover {
|
|
127
|
-
background: none !important;
|
|
128
|
-
color: $--color-text !important;
|
|
129
|
-
i {
|
|
130
|
-
color: $--color-text !important;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
i {
|
|
134
|
-
color: #fff;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.el-popper.is-pure {
|
|
141
|
-
border: none;
|
|
142
|
-
}
|
|
1
|
+
@mixin toggle-button($--color-header) {
|
|
2
|
+
height: 35px;
|
|
3
|
+
font-size: 18px;
|
|
4
|
+
margin-left: 10px;
|
|
5
|
+
color: #fff;
|
|
6
|
+
border-radius: 5px;
|
|
7
|
+
background-color: $--color-header;
|
|
8
|
+
padding: 0 10px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin sidebar-container($bg, $color, $--color-header, $content-bg, $--color-text) {
|
|
16
|
+
background-color: $bg;
|
|
17
|
+
.sidebar-container-header {
|
|
18
|
+
color: $color;
|
|
19
|
+
padding: 10px 0;
|
|
20
|
+
border-bottom: 2px solid $--color-header;
|
|
21
|
+
.pic-box {
|
|
22
|
+
width: 46px;
|
|
23
|
+
height: 46px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
.logo {
|
|
26
|
+
width: 46px;
|
|
27
|
+
height: 46px;
|
|
28
|
+
filter: drop-shadow(120px 0px #fff);
|
|
29
|
+
transform: translateX(-120px);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.ftl-pic-box {
|
|
33
|
+
height: 46px;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
.logo {
|
|
38
|
+
width: 46px;
|
|
39
|
+
height: 30px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.el-menu-vertical-demo {
|
|
44
|
+
padding: 10px;
|
|
45
|
+
}
|
|
46
|
+
.el-menu {
|
|
47
|
+
background-color: $bg;
|
|
48
|
+
border: none;
|
|
49
|
+
.custom-menu-item {
|
|
50
|
+
height: 38px;
|
|
51
|
+
line-height: 38px;
|
|
52
|
+
color: #fff !important;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
border-radius: 10px;
|
|
55
|
+
&:focus,
|
|
56
|
+
&:hover,
|
|
57
|
+
&.is-active {
|
|
58
|
+
background-color: $--color-header !important;
|
|
59
|
+
}
|
|
60
|
+
i {
|
|
61
|
+
color: #fff;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.el-sub-menu {
|
|
65
|
+
color: #fff !important;
|
|
66
|
+
margin-bottom: 10px;
|
|
67
|
+
&:focus,
|
|
68
|
+
&:hover,
|
|
69
|
+
&.is-active {
|
|
70
|
+
& > .el-sub-menu__title {
|
|
71
|
+
background-color: $--color-header !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.el-sub-menu__title {
|
|
75
|
+
height: 38px;
|
|
76
|
+
line-height: 38px;
|
|
77
|
+
border-radius: 10px;
|
|
78
|
+
color: #fff !important;
|
|
79
|
+
}
|
|
80
|
+
&.is-opened {
|
|
81
|
+
background: $--color-header;
|
|
82
|
+
border-radius: 10px;
|
|
83
|
+
.el-menu {
|
|
84
|
+
background-color: $content-bg !important;
|
|
85
|
+
border-bottom-left-radius: 10px !important;
|
|
86
|
+
border-bottom-right-radius: 10px !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.el-menu-item {
|
|
90
|
+
height: 38px;
|
|
91
|
+
line-height: 38px;
|
|
92
|
+
background-color: transparent !important;
|
|
93
|
+
color: #fff !important;
|
|
94
|
+
padding: 0 55px !important;
|
|
95
|
+
&:focus,
|
|
96
|
+
&:hover,
|
|
97
|
+
&.is-active {
|
|
98
|
+
color: $--color-text !important;
|
|
99
|
+
i {
|
|
100
|
+
color: $--color-text !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&:last-child {
|
|
104
|
+
margin-bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@mixin el-menu--vertical($bg, $--color-header, $--color-text) {
|
|
112
|
+
.el-tooltip__trigger {
|
|
113
|
+
padding: 0 !important;
|
|
114
|
+
display: flex;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
align-items: center;
|
|
117
|
+
i {
|
|
118
|
+
margin-right: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
.el-menu {
|
|
122
|
+
background: $bg !important;
|
|
123
|
+
.el-menu-item {
|
|
124
|
+
color: #fff !important;
|
|
125
|
+
&:focus,
|
|
126
|
+
&:hover {
|
|
127
|
+
background: none !important;
|
|
128
|
+
color: $--color-text !important;
|
|
129
|
+
i {
|
|
130
|
+
color: $--color-text !important;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
i {
|
|
134
|
+
color: #fff;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.el-popper.is-pure {
|
|
141
|
+
border: none;
|
|
142
|
+
}
|