@mc-markets/ui 1.0.40 → 1.0.42
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/dist/index.js +4158 -4053
- package/dist/index.js.css +1 -1
- package/package.json +4 -4
- package/packages/styles/index.scss +12 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mc-markets/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.42",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "chenyu",
|
|
7
7
|
"description": "Vue 3 组件库,基于 Element Plus 的自定义组件",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"require": "./dist/index.js"
|
|
14
14
|
},
|
|
15
|
-
"./style": "./dist/
|
|
16
|
-
"./styles": "./dist/
|
|
17
|
-
"./dist/style.css": "./dist/
|
|
15
|
+
"./style": "./dist/index.js.css",
|
|
16
|
+
"./styles": "./dist/index.js.css",
|
|
17
|
+
"./dist/style.css": "./dist/index.js.css",
|
|
18
18
|
"./scss-variables": "./packages/styles/variables.scss",
|
|
19
19
|
"./styles/index": "./packages/styles/index.scss",
|
|
20
20
|
"./theme-config": "./packages/styles/theme-config.js",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
// 全局样式
|
|
19
|
+
// 全局样式 - 使用较低优先级,避免覆盖组件样式
|
|
20
20
|
|
|
21
|
-
// 下拉菜单样式 -
|
|
22
|
-
.el-select-dropdown {
|
|
21
|
+
// 下拉菜单样式 - 全局样式(仅在组件未定义时生效)
|
|
22
|
+
.el-select-dropdown:not(.m-select-dropdown) {
|
|
23
23
|
padding: 12px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.el-select-dropdown__list {
|
|
26
|
+
.el-select-dropdown__list:not(.m-select-dropdown__list) {
|
|
27
27
|
padding: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.el-select-dropdown__item {
|
|
30
|
+
.el-select-dropdown__item:not(.m-select-dropdown__item) {
|
|
31
31
|
padding: 0px 12px;
|
|
32
32
|
height: 36px;
|
|
33
33
|
line-height: 36px;
|
|
@@ -41,20 +41,22 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.el-select-dropdown__header {
|
|
44
|
+
.el-select-dropdown__header:not(.m-select-dropdown__header) {
|
|
45
45
|
border: none;
|
|
46
46
|
padding: 0;
|
|
47
47
|
padding-bottom: 4px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
.el-checkbox {
|
|
50
|
+
// Checkbox 样式 - 仅在组件未定义时生效
|
|
51
|
+
.el-checkbox:not(.m-checkbox) {
|
|
52
52
|
--el-checkbox-checked-icon-color: #000;
|
|
53
53
|
--el-checkbox-input-height: 20px;
|
|
54
54
|
--el-checkbox-input-width: 20px;
|
|
55
55
|
--el-checkbox-input-border: 2px solid var(--icon-tertiary);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.el-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
|
|
58
|
+
.el-checkbox:not(.m-checkbox) .el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
|
|
59
59
|
top: 7px;
|
|
60
|
-
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// 组件样式现在在各个组件文件中定义,确保样式模块化
|