@ftlab/one-vue3 0.2.15 → 0.2.16
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 +131 -120
- 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-02eaec8b.js → CheckMessageDialog-407326a5.js} +167 -166
- package/dist/CheckMessageDialog-b44c5c90.cjs +1 -0
- package/dist/ftlOne.cjs +1 -1
- package/dist/ftlOne.js +12 -11
- package/dist/ftlOne.umd.cjs +57 -56
- package/dist/index-419f4041.cjs +57 -0
- package/dist/{index-84a34c8e.js → index-5e51e1ba.js} +15112 -14711
- 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 +22 -16
- package/i18n/en.json +22 -16
- package/i18n/fr.json +22 -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/utils/utils.ts +10 -0
- package/dist/CheckMessageDialog-701c6b43.cjs +0 -1
- package/dist/index-59a74951.cjs +0 -56
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
|
@@ -1,120 +1,131 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
|
-
|
|
10
|
-
## [v0.2.
|
|
11
|
-
|
|
12
|
-
### Commits
|
|
13
|
-
|
|
14
|
-
- feat: add date methods [`c41c7a2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c41c7a26509d85073c815f87ed3bb03062654985)
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- feat: remove element-plus origin style [`a0c4fa1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/a0c4fa1b195c3ee570a093c103ea28a3fbb64ac1)
|
|
18
|
-
- hotfix: emit changeLanguage [`98f7a12`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/98f7a12b06c16af4aedf4f1bf89442dcf727694c)
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
- feat:
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
|
+
|
|
10
|
+
## [v0.2.16](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.4...v0.2.16)
|
|
11
|
+
|
|
12
|
+
### Commits
|
|
13
|
+
|
|
14
|
+
- feat: add date methods [`c41c7a2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c41c7a26509d85073c815f87ed3bb03062654985)
|
|
15
|
+
- feat: multipleChoose component add [`34a1d4d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34a1d4dba5979031fb1387a77619843f8c82dc81)
|
|
16
|
+
- fix: build bug fix [`d49527d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d49527d29060ddd1a040a366ca4808e827b5f4df)
|
|
17
|
+
- feat: remove element-plus origin style [`a0c4fa1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/a0c4fa1b195c3ee570a093c103ea28a3fbb64ac1)
|
|
18
|
+
- hotfix: emit changeLanguage [`98f7a12`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/98f7a12b06c16af4aedf4f1bf89442dcf727694c)
|
|
19
|
+
- fix: fix collapse style error [`54e9525`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/54e9525a99b216a9f7bb1b29ec578a768b49cb93)
|
|
20
|
+
- feat: remove click event [`1cd1e54`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1cd1e54da9c03fc4ea4a0f3480b33b302d7cf02d)
|
|
21
|
+
- feat: add click event [`6a63a8a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6a63a8ac7c5ca710c6d91765c573af53df439bf4)
|
|
22
|
+
- charge storage to js [`1d1368d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d1368ddb5d1ce8ecbc5754530b46f705146013f)
|
|
23
|
+
- fix: remove type declare [`d611d3a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d611d3ab302a4426e96f1c1e4e7ae940e427c9a9)
|
|
24
|
+
- chore: charge ts to js [`e2feead`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/e2feeadc54c45ddab43a8947d38cb1decc76d230)
|
|
25
|
+
- fix: winter time tz bug [`3f984ee`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/3f984eebce6e6409084439fd0342bbaf883693c1)
|
|
26
|
+
|
|
27
|
+
## [v0.2.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.3...v0.2.4) - 2024-01-10
|
|
28
|
+
|
|
29
|
+
### Commits
|
|
30
|
+
|
|
31
|
+
- feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
|
|
32
|
+
|
|
33
|
+
## [v0.2.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.3) - 2023-12-11
|
|
34
|
+
|
|
35
|
+
### Commits
|
|
36
|
+
|
|
37
|
+
- feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
|
|
38
|
+
|
|
39
|
+
## [v0.2.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.1...v0.2.2) - 2023-12-04
|
|
40
|
+
|
|
41
|
+
### Commits
|
|
42
|
+
|
|
43
|
+
- fix: scroll bug fix [`2cd68f6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2cd68f6c534af2cd8b8069180d3ad20c1a9d223a)
|
|
44
|
+
|
|
45
|
+
## [v0.2.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.0...v0.2.1) - 2023-11-28
|
|
46
|
+
|
|
47
|
+
### Commits
|
|
48
|
+
|
|
49
|
+
- feat: detail change [`79e1942`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/79e1942cf40561940eb6de31a17da0432aa2bf75)
|
|
50
|
+
|
|
51
|
+
## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.2.0) - 2023-11-28
|
|
52
|
+
|
|
53
|
+
### Commits
|
|
54
|
+
|
|
55
|
+
- feat: ftlPasswordDialog add [`c7910c6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c7910c6e0c911fcd8d3a279602c3d40420f76e50)
|
|
56
|
+
- feat: add message center [`ec3bcf5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ec3bcf5e744cb0606cb6d10af0200b7dec39604b)
|
|
57
|
+
|
|
58
|
+
## [v0.1.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.4...v0.1.5) - 2023-08-30
|
|
59
|
+
|
|
60
|
+
### Commits
|
|
61
|
+
|
|
62
|
+
- feat: detail change [`75529d3`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/75529d3f95c457851eb39e0ae4dc67ada5380d49)
|
|
63
|
+
|
|
64
|
+
## [v0.1.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.3...v0.1.4) - 2023-08-11
|
|
65
|
+
|
|
66
|
+
### Commits
|
|
67
|
+
|
|
68
|
+
- feat: detail add [`7a5d7b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7a5d7b719facc65bb81c75b2f9f25a04820fb674)
|
|
69
|
+
|
|
70
|
+
## [v0.1.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.2...v0.1.3) - 2023-08-10
|
|
71
|
+
|
|
72
|
+
### Commits
|
|
73
|
+
|
|
74
|
+
- feat: detail feat [`72c432d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/72c432d0b98e222d65de842433a3d44d39ab9249)
|
|
75
|
+
|
|
76
|
+
## [v0.1.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.1...v0.1.2) - 2023-08-09
|
|
77
|
+
|
|
78
|
+
### Commits
|
|
79
|
+
|
|
80
|
+
- feat: build to es2015 [`ef0cf82`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ef0cf829dd80a2b0044622e162609cbb5be05960)
|
|
81
|
+
- doc:refactor README.md [`6b266e7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6b266e7c39be7b8a18bdaf7127fba89c6249dcd5)
|
|
82
|
+
|
|
83
|
+
## [v0.1.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.0...v0.1.1) - 2023-07-07
|
|
84
|
+
|
|
85
|
+
### Commits
|
|
86
|
+
|
|
87
|
+
- feat: theme color var add [`60ab46c`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/60ab46c30e17c7e72796e20c3eb66c71a359b7a9)
|
|
88
|
+
|
|
89
|
+
## [v0.1.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.7...v0.1.0) - 2023-07-05
|
|
90
|
+
|
|
91
|
+
### Commits
|
|
92
|
+
|
|
93
|
+
- feat: 0.1.0 [`20f34b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/20f34b7c45139ae50bc15a5b37bb8b206b0d6e88)
|
|
94
|
+
|
|
95
|
+
## [v0.0.7](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.6...v0.0.7) - 2023-07-05
|
|
96
|
+
|
|
97
|
+
### Commits
|
|
98
|
+
|
|
99
|
+
- feat: vite build external element-plus [`1415398`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1415398585f7184eb1a7b5fd9db41337e6d011e3)
|
|
100
|
+
|
|
101
|
+
## [v0.0.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.5...v0.0.6) - 2023-07-05
|
|
102
|
+
|
|
103
|
+
### Commits
|
|
104
|
+
|
|
105
|
+
- feat: vite build external pinia [`2525081`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2525081c259f7875d19fd3c86fe5eac2f903bc1d)
|
|
106
|
+
|
|
107
|
+
## [v0.0.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.4...v0.0.5) - 2023-07-05
|
|
108
|
+
|
|
109
|
+
### Commits
|
|
110
|
+
|
|
111
|
+
- fix: pinia bug fix [`7701ea2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7701ea21231b549791f0f2ec23eab2f8544a39f0)
|
|
112
|
+
|
|
113
|
+
## [v0.0.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.3...v0.0.4) - 2023-07-04
|
|
114
|
+
|
|
115
|
+
### Commits
|
|
116
|
+
|
|
117
|
+
- fix: style fix [`930b480`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/930b480c34ef7b0f743590aacab4125674a77d38)
|
|
118
|
+
|
|
119
|
+
## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3) - 2023-07-04
|
|
120
|
+
|
|
121
|
+
### Commits
|
|
122
|
+
|
|
123
|
+
- feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
|
|
124
|
+
- feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
|
|
125
|
+
|
|
126
|
+
## v0.0.2 - 2023-06-30
|
|
127
|
+
|
|
128
|
+
### Commits
|
|
129
|
+
|
|
130
|
+
- feat: project init [`8924bba`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/8924bbad81f97fa7130f9bf571920509acd2474e)
|
|
131
|
+
- Initial commit [`1d50e56`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d50e561512abf2733a397ebf5f29109a3584953)
|
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
|
+
}
|