@ftlab/one-vue3 0.3.7 → 0.3.8-1
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 +38 -11
- 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/components.d.ts +0 -1
- package/dist/{CheckMessageDialog-ccf0ae47.js → CheckMessageDialog-0f85dbee.js} +39 -41
- package/dist/ftlOne.js +9 -11
- package/dist/{index-90369685.js → index-2284be94.js} +3004 -3004
- package/dist/store.js +98 -7
- package/dist/style.css +1 -1
- package/dist/vuex.esm-bundler-2a047356.js +770 -0
- package/function/index.ts +4 -4
- package/function/info.ts +17 -17
- package/function/permission.ts +17 -17
- package/global.d.ts +63 -63
- package/i18n/cn.json +22 -22
- package/i18n/en.json +22 -22
- package/i18n/fr.json +22 -22
- package/package.json +94 -93
- package/store/app.ts +24 -0
- package/store/auth.ts +87 -0
- package/store/index.ts +10 -0
- package/dist/lang-f10931f3.js +0 -60
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,32 +7,59 @@ 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.3.
|
|
10
|
+
## [v0.3.8-1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.3.8-0...v0.3.8-1)
|
|
11
|
+
|
|
12
|
+
### Commits
|
|
13
|
+
|
|
14
|
+
- feat: npmignore change [`3862394`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/3862394016994f369c01f5573b6c6a8402098173)
|
|
15
|
+
|
|
16
|
+
## [v0.3.8-0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.3.6...v0.3.8-0) - 2025-06-04
|
|
17
|
+
|
|
18
|
+
### Commits
|
|
19
|
+
|
|
20
|
+
- feat: change pinia to vuex [`b331296`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/b331296cdf634441ef4137556abf395dd1abd84c)
|
|
21
|
+
- feat: detail change [`53b99a1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/53b99a1abd8c5a28fa48764e255e78e57d4a2767)
|
|
22
|
+
- hotfix: 修复打包后函数和预构建冲突的问题 [`f4b1fca`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/f4b1fca04c83424a0918f1d7a271e6ebf3e5e4ff)
|
|
23
|
+
|
|
24
|
+
## [v0.3.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.16...v0.3.6) - 2025-03-13
|
|
25
|
+
|
|
26
|
+
### Commits
|
|
27
|
+
|
|
28
|
+
- fix: store bug fix [`bb66736`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/bb6673665c1361ade8765af1e8f49c281d758313)
|
|
29
|
+
- feat: utils support js,add new entry [`5f71427`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/5f7142710f12f1fbd7d7b39d29596e85cc64675b)
|
|
30
|
+
- feat: FtlMultipleChoose params add [`9a577b9`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/9a577b902da49a20284feeb60a1078b5fa8eca2d)
|
|
31
|
+
- feat: 时间格式化函数添加时间格式参数 [`653601b`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/653601b3eb9090e1dceb1755b3f6b7a6a134caa3)
|
|
32
|
+
- feat: add type declare [`bd28cc0`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/bd28cc0ab3d91271b5f2af00c85d663b4a868f17)
|
|
33
|
+
- fix: import bug [`892d8dc`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/892d8dcfeebcfd7e643ccf5fc28533c423eafc46)
|
|
34
|
+
|
|
35
|
+
## [v0.2.16](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.4...v0.2.16) - 2024-08-02
|
|
11
36
|
|
|
12
37
|
### Commits
|
|
13
38
|
|
|
14
39
|
- feat: add date methods [`c41c7a2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c41c7a26509d85073c815f87ed3bb03062654985)
|
|
15
40
|
- feat: multipleChoose component add [`34a1d4d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34a1d4dba5979031fb1387a77619843f8c82dc81)
|
|
16
41
|
- fix: build bug fix [`d49527d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d49527d29060ddd1a040a366ca4808e827b5f4df)
|
|
17
|
-
- feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
|
|
18
|
-
- fix: store bug fix [`bb66736`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/bb6673665c1361ade8765af1e8f49c281d758313)
|
|
19
|
-
- feat: utils support js,add new entry [`5f71427`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/5f7142710f12f1fbd7d7b39d29596e85cc64675b)
|
|
20
42
|
- feat: remove element-plus origin style [`a0c4fa1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/a0c4fa1b195c3ee570a093c103ea28a3fbb64ac1)
|
|
21
43
|
- hotfix: emit changeLanguage [`98f7a12`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/98f7a12b06c16af4aedf4f1bf89442dcf727694c)
|
|
22
|
-
- feat: detail change [`53b99a1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/53b99a1abd8c5a28fa48764e255e78e57d4a2767)
|
|
23
|
-
- feat: FtlMultipleChoose params add [`9a577b9`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/9a577b902da49a20284feeb60a1078b5fa8eca2d)
|
|
24
|
-
- feat: 时间格式化函数添加时间格式参数 [`653601b`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/653601b3eb9090e1dceb1755b3f6b7a6a134caa3)
|
|
25
|
-
- feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
|
|
26
44
|
- fix: fix collapse style error [`54e9525`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/54e9525a99b216a9f7bb1b29ec578a768b49cb93)
|
|
27
|
-
- feat: add type declare [`bd28cc0`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/bd28cc0ab3d91271b5f2af00c85d663b4a868f17)
|
|
28
45
|
- feat: remove click event [`1cd1e54`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1cd1e54da9c03fc4ea4a0f3480b33b302d7cf02d)
|
|
29
46
|
- feat: add click event [`6a63a8a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6a63a8ac7c5ca710c6d91765c573af53df439bf4)
|
|
30
47
|
- charge storage to js [`1d1368d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d1368ddb5d1ce8ecbc5754530b46f705146013f)
|
|
31
48
|
- fix: remove type declare [`d611d3a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d611d3ab302a4426e96f1c1e4e7ae940e427c9a9)
|
|
32
49
|
- chore: charge ts to js [`e2feead`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/e2feeadc54c45ddab43a8947d38cb1decc76d230)
|
|
33
|
-
- fix: import bug [`892d8dc`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/892d8dcfeebcfd7e643ccf5fc28533c423eafc46)
|
|
34
50
|
- fix: winter time tz bug [`3f984ee`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/3f984eebce6e6409084439fd0342bbaf883693c1)
|
|
35
|
-
|
|
51
|
+
|
|
52
|
+
## [v0.2.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.3...v0.2.4) - 2024-01-10
|
|
53
|
+
|
|
54
|
+
### Commits
|
|
55
|
+
|
|
56
|
+
- feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
|
|
57
|
+
|
|
58
|
+
## [v0.2.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.3) - 2023-12-11
|
|
59
|
+
|
|
60
|
+
### Commits
|
|
61
|
+
|
|
62
|
+
- feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
|
|
36
63
|
|
|
37
64
|
## [v0.2.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.1...v0.2.2) - 2023-12-04
|
|
38
65
|
|
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
|
+
}
|