@ftlab/one-vue3 0.3.4 → 0.3.6
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 +12 -1
- 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-77c20697.js → CheckMessageDialog-b14c785b.js} +30 -30
- package/dist/ftlOne.js +1 -1
- package/dist/{index-99103fbf.js → index-5e152029.js} +423 -421
- package/dist/style.css +1 -1
- package/dist/utils.js +273 -355
- package/function/index.ts +4 -4
- package/function/info.ts +17 -17
- package/function/permission.ts +17 -17
- package/global.d.ts +63 -0
- package/i18n/cn.json +22 -22
- package/i18n/en.json +22 -22
- package/i18n/fr.json +22 -22
- package/package.json +92 -91
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,7 +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.
|
|
10
|
+
## [v0.3.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.16...v0.3.6)
|
|
11
|
+
|
|
12
|
+
### Commits
|
|
13
|
+
|
|
14
|
+
- fix: store bug fix [`bb66736`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/bb6673665c1361ade8765af1e8f49c281d758313)
|
|
15
|
+
- feat: utils support js,add new entry [`5f71427`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/5f7142710f12f1fbd7d7b39d29596e85cc64675b)
|
|
16
|
+
- feat: FtlMultipleChoose params add [`9a577b9`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/9a577b902da49a20284feeb60a1078b5fa8eca2d)
|
|
17
|
+
- feat: 时间格式化函数添加时间格式参数 [`653601b`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/653601b3eb9090e1dceb1755b3f6b7a6a134caa3)
|
|
18
|
+
- feat: add type declare [`bd28cc0`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/bd28cc0ab3d91271b5f2af00c85d663b4a868f17)
|
|
19
|
+
- fix: import bug [`892d8dc`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/892d8dcfeebcfd7e643ccf5fc28533c423eafc46)
|
|
20
|
+
|
|
21
|
+
## [v0.2.16](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.4...v0.2.16) - 2024-08-02
|
|
11
22
|
|
|
12
23
|
### Commits
|
|
13
24
|
|
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
|
+
}
|