@zl-ui-kit/components 0.14.0 → 0.14.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/README.md +3 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -412,8 +412,8 @@ import 'element-plus/dist/index.css'
|
|
|
412
412
|
import '@zl-ui-kit/theme/themes.css' // 5 套内置主题全量;只要默认一套可换成 '@zl-ui-kit/theme/light'
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
-
引入即得到默认主题(内置 `light`):主色 `#
|
|
416
|
-
`#
|
|
415
|
+
引入即得到默认主题(内置 `light`):主色 `#3056D3`、hover `--el-color-primary-light-3`
|
|
416
|
+
`#6e89e0`、按下 `--el-color-primary-dark-2` `#2645a9`、控件圆角 `--el-border-radius-base` `4px`。
|
|
417
417
|
业务组件(`--zl-*`)与 Element Plus 控件(`--el-*`)由同一套变量驱动,不会出现两套皮肤。
|
|
418
418
|
|
|
419
419
|
**要覆盖默认主题(切内置主题 / 自定义主色与圆角):**
|
|
@@ -1526,7 +1526,7 @@ import 'element-plus/dist/index.css'
|
|
|
1526
1526
|
import '@zl-ui-kit/theme/themes.css' // 一行都不用多写:组件与 Element Plus 控件已是同一套色
|
|
1527
1527
|
```
|
|
1528
1528
|
|
|
1529
|
-
开箱即得(`light` 基线实测值):主色 `#
|
|
1529
|
+
开箱即得(`light` 基线实测值):主色 `#3056D3`、hover `#6e89e0`、按下 `#2645a9`、控件圆角 `4px`;
|
|
1530
1530
|
`setTheme('dark')` 就切到内置 dark,一共 5 套可选。持久化一行 `enableThemePersistence()`,组件内响应式 `useTheme()`。
|
|
1531
1531
|
|
|
1532
1532
|
**② 覆盖默认主题** —— 按「要改多少」选层,**并且收敛到宿主侧的一个文件**(库源码一行都不动):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/components",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ZL UI 业务组件库(Element Plus 体系,Zl 前缀)——首批:Icon/AutoTooltip/Tag/CornerTag/Text/Title/Copy/Empty/Pagination/DictTag",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"file-type": "^20.4.1",
|
|
40
40
|
"dt-sql-parser": "^4.3.1",
|
|
41
41
|
"sql-formatter": "^15.4.2",
|
|
42
|
-
"@zl-ui-kit/composables": "0.14.
|
|
43
|
-
"@zl-ui-kit/
|
|
44
|
-
"@zl-ui-kit/
|
|
42
|
+
"@zl-ui-kit/composables": "0.14.1",
|
|
43
|
+
"@zl-ui-kit/icons": "0.14.1",
|
|
44
|
+
"@zl-ui-kit/utils": "0.14.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@vueuse/core": "^12.3.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"@vue-office/pdf": "^2.0.10",
|
|
99
99
|
"@vue-office/pptx": "1.0.1",
|
|
100
100
|
"echarts": "^5.6.0",
|
|
101
|
-
"@
|
|
101
|
+
"@jichuang/tsconfig": "1.0.0",
|
|
102
|
+
"@zl-ui-kit/theme": "0.14.1",
|
|
102
103
|
"@jichuang/vite-config": "1.0.0",
|
|
103
|
-
"@jichuang/eslint-config": "1.0.0"
|
|
104
|
-
"@jichuang/tsconfig": "1.0.0"
|
|
104
|
+
"@jichuang/eslint-config": "1.0.0"
|
|
105
105
|
},
|
|
106
106
|
"repository": {
|
|
107
107
|
"type": "git",
|