@ftlab/one-vue3 0.2.5 → 0.2.7

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 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,110 +1,112 @@
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.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.4)
11
-
12
- ### Commits
13
-
14
- - feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
15
- - feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
16
- - fix: fix collapse style error [`54e9525`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/54e9525a99b216a9f7bb1b29ec578a768b49cb93)
17
-
18
- ## [v0.2.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.1...v0.2.2) - 2023-12-04
19
-
20
- ### Commits
21
-
22
- - fix: scroll bug fix [`2cd68f6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2cd68f6c534af2cd8b8069180d3ad20c1a9d223a)
23
-
24
- ## [v0.2.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.0...v0.2.1) - 2023-11-28
25
-
26
- ### Commits
27
-
28
- - feat: detail change [`79e1942`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/79e1942cf40561940eb6de31a17da0432aa2bf75)
29
-
30
- ## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.2.0) - 2023-11-28
31
-
32
- ### Commits
33
-
34
- - feat: ftlPasswordDialog add [`c7910c6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c7910c6e0c911fcd8d3a279602c3d40420f76e50)
35
- - feat: add message center [`ec3bcf5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ec3bcf5e744cb0606cb6d10af0200b7dec39604b)
36
-
37
- ## [v0.1.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.4...v0.1.5) - 2023-08-30
38
-
39
- ### Commits
40
-
41
- - feat: detail change [`75529d3`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/75529d3f95c457851eb39e0ae4dc67ada5380d49)
42
-
43
- ## [v0.1.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.3...v0.1.4) - 2023-08-11
44
-
45
- ### Commits
46
-
47
- - feat: detail add [`7a5d7b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7a5d7b719facc65bb81c75b2f9f25a04820fb674)
48
-
49
- ## [v0.1.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.2...v0.1.3) - 2023-08-10
50
-
51
- ### Commits
52
-
53
- - feat: detail feat [`72c432d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/72c432d0b98e222d65de842433a3d44d39ab9249)
54
-
55
- ## [v0.1.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.1...v0.1.2) - 2023-08-09
56
-
57
- ### Commits
58
-
59
- - feat: build to es2015 [`ef0cf82`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ef0cf829dd80a2b0044622e162609cbb5be05960)
60
- - doc:refactor README.md [`6b266e7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6b266e7c39be7b8a18bdaf7127fba89c6249dcd5)
61
-
62
- ## [v0.1.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.0...v0.1.1) - 2023-07-07
63
-
64
- ### Commits
65
-
66
- - feat: theme color var add [`60ab46c`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/60ab46c30e17c7e72796e20c3eb66c71a359b7a9)
67
-
68
- ## [v0.1.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.7...v0.1.0) - 2023-07-05
69
-
70
- ### Commits
71
-
72
- - feat: 0.1.0 [`20f34b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/20f34b7c45139ae50bc15a5b37bb8b206b0d6e88)
73
-
74
- ## [v0.0.7](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.6...v0.0.7) - 2023-07-05
75
-
76
- ### Commits
77
-
78
- - feat: vite build external element-plus [`1415398`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1415398585f7184eb1a7b5fd9db41337e6d011e3)
79
-
80
- ## [v0.0.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.5...v0.0.6) - 2023-07-05
81
-
82
- ### Commits
83
-
84
- - feat: vite build external pinia [`2525081`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2525081c259f7875d19fd3c86fe5eac2f903bc1d)
85
-
86
- ## [v0.0.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.4...v0.0.5) - 2023-07-05
87
-
88
- ### Commits
89
-
90
- - fix: pinia bug fix [`7701ea2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7701ea21231b549791f0f2ec23eab2f8544a39f0)
91
-
92
- ## [v0.0.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.3...v0.0.4) - 2023-07-04
93
-
94
- ### Commits
95
-
96
- - fix: style fix [`930b480`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/930b480c34ef7b0f743590aacab4125674a77d38)
97
-
98
- ## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3) - 2023-07-04
99
-
100
- ### Commits
101
-
102
- - feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
103
- - feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
104
-
105
- ## v0.0.2 - 2023-06-30
106
-
107
- ### Commits
108
-
109
- - feat: project init [`8924bba`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/8924bbad81f97fa7130f9bf571920509acd2474e)
110
- - Initial commit [`1d50e56`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d50e561512abf2733a397ebf5f29109a3584953)
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.7](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.7)
11
+
12
+ ### Commits
13
+
14
+ - feat: add date methods [`c41c7a2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c41c7a26509d85073c815f87ed3bb03062654985)
15
+ - feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
16
+ - feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
17
+ - fix: fix collapse style error [`54e9525`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/54e9525a99b216a9f7bb1b29ec578a768b49cb93)
18
+ - fix: remove type declare [`d611d3a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d611d3ab302a4426e96f1c1e4e7ae940e427c9a9)
19
+
20
+ ## [v0.2.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.1...v0.2.2) - 2023-12-04
21
+
22
+ ### Commits
23
+
24
+ - fix: scroll bug fix [`2cd68f6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2cd68f6c534af2cd8b8069180d3ad20c1a9d223a)
25
+
26
+ ## [v0.2.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.0...v0.2.1) - 2023-11-28
27
+
28
+ ### Commits
29
+
30
+ - feat: detail change [`79e1942`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/79e1942cf40561940eb6de31a17da0432aa2bf75)
31
+
32
+ ## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.2.0) - 2023-11-28
33
+
34
+ ### Commits
35
+
36
+ - feat: ftlPasswordDialog add [`c7910c6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c7910c6e0c911fcd8d3a279602c3d40420f76e50)
37
+ - feat: add message center [`ec3bcf5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ec3bcf5e744cb0606cb6d10af0200b7dec39604b)
38
+
39
+ ## [v0.1.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.4...v0.1.5) - 2023-08-30
40
+
41
+ ### Commits
42
+
43
+ - feat: detail change [`75529d3`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/75529d3f95c457851eb39e0ae4dc67ada5380d49)
44
+
45
+ ## [v0.1.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.3...v0.1.4) - 2023-08-11
46
+
47
+ ### Commits
48
+
49
+ - feat: detail add [`7a5d7b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7a5d7b719facc65bb81c75b2f9f25a04820fb674)
50
+
51
+ ## [v0.1.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.2...v0.1.3) - 2023-08-10
52
+
53
+ ### Commits
54
+
55
+ - feat: detail feat [`72c432d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/72c432d0b98e222d65de842433a3d44d39ab9249)
56
+
57
+ ## [v0.1.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.1...v0.1.2) - 2023-08-09
58
+
59
+ ### Commits
60
+
61
+ - feat: build to es2015 [`ef0cf82`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ef0cf829dd80a2b0044622e162609cbb5be05960)
62
+ - doc:refactor README.md [`6b266e7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6b266e7c39be7b8a18bdaf7127fba89c6249dcd5)
63
+
64
+ ## [v0.1.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.0...v0.1.1) - 2023-07-07
65
+
66
+ ### Commits
67
+
68
+ - feat: theme color var add [`60ab46c`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/60ab46c30e17c7e72796e20c3eb66c71a359b7a9)
69
+
70
+ ## [v0.1.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.7...v0.1.0) - 2023-07-05
71
+
72
+ ### Commits
73
+
74
+ - feat: 0.1.0 [`20f34b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/20f34b7c45139ae50bc15a5b37bb8b206b0d6e88)
75
+
76
+ ## [v0.0.7](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.6...v0.0.7) - 2023-07-05
77
+
78
+ ### Commits
79
+
80
+ - feat: vite build external element-plus [`1415398`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1415398585f7184eb1a7b5fd9db41337e6d011e3)
81
+
82
+ ## [v0.0.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.5...v0.0.6) - 2023-07-05
83
+
84
+ ### Commits
85
+
86
+ - feat: vite build external pinia [`2525081`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2525081c259f7875d19fd3c86fe5eac2f903bc1d)
87
+
88
+ ## [v0.0.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.4...v0.0.5) - 2023-07-05
89
+
90
+ ### Commits
91
+
92
+ - fix: pinia bug fix [`7701ea2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7701ea21231b549791f0f2ec23eab2f8544a39f0)
93
+
94
+ ## [v0.0.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.3...v0.0.4) - 2023-07-04
95
+
96
+ ### Commits
97
+
98
+ - fix: style fix [`930b480`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/930b480c34ef7b0f743590aacab4125674a77d38)
99
+
100
+ ## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3) - 2023-07-04
101
+
102
+ ### Commits
103
+
104
+ - feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
105
+ - feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
106
+
107
+ ## v0.0.2 - 2023-06-30
108
+
109
+ ### Commits
110
+
111
+ - feat: project init [`8924bba`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/8924bbad81f97fa7130f9bf571920509acd2474e)
112
+ - 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地址 |
@@ -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
+ }