@lingxiteam/theme-utils 0.2.15 → 0.3.0
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/config/Button.d.ts +6 -0
- package/dist/config/Button.js +10 -4
- package/dist/config/Card.d.ts +4 -0
- package/dist/config/Card.js +7 -3
- package/dist/config/Checkbox.d.ts +2 -0
- package/dist/config/Checkbox.js +4 -2
- package/dist/config/CheckboxGroup.d.ts +2 -0
- package/dist/config/CheckboxGroup.js +4 -2
- package/dist/config/Collapse.d.ts +6 -0
- package/dist/config/Collapse.js +10 -4
- package/dist/config/Container.d.ts +6 -0
- package/dist/config/Container.js +8 -2
- package/dist/config/DatePicker.d.ts +13 -11
- package/dist/config/DatePicker.js +15 -13
- package/dist/config/Description.d.ts +8 -0
- package/dist/config/Description.js +11 -3
- package/dist/config/Form.d.ts +7 -0
- package/dist/config/Form.js +11 -4
- package/dist/config/Radio.d.ts +2 -0
- package/dist/config/Radio.js +4 -2
- package/dist/config/Table.d.ts +8 -0
- package/dist/config/Table.js +13 -5
- package/dist/config/Tabs.d.ts +33 -43
- package/dist/config/Tabs.js +657 -25
- package/dist/config/Tree.d.ts +7 -0
- package/dist/config/Tree.js +12 -5
- package/dist/lx-mobile.js +16 -13
- package/package.json +1 -1
package/dist/config/Tree.d.ts
CHANGED
|
@@ -5,16 +5,19 @@ export declare const Tree: {
|
|
|
5
5
|
type: string;
|
|
6
6
|
label: string;
|
|
7
7
|
groupsName: string;
|
|
8
|
+
followTheme: string;
|
|
8
9
|
};
|
|
9
10
|
borderRadius: {
|
|
10
11
|
type: string;
|
|
11
12
|
label: string;
|
|
12
13
|
groupsName: string;
|
|
14
|
+
followTheme: string;
|
|
13
15
|
};
|
|
14
16
|
textColor: {
|
|
15
17
|
type: string;
|
|
16
18
|
label: string;
|
|
17
19
|
groupsName: string;
|
|
20
|
+
followTheme: string;
|
|
18
21
|
};
|
|
19
22
|
fontSize: {
|
|
20
23
|
type: string;
|
|
@@ -31,6 +34,7 @@ export declare const Tree: {
|
|
|
31
34
|
type: string;
|
|
32
35
|
label: string;
|
|
33
36
|
groupsName: string;
|
|
37
|
+
followTheme: string;
|
|
34
38
|
};
|
|
35
39
|
treeFontSize: {
|
|
36
40
|
type: string;
|
|
@@ -73,6 +77,9 @@ export declare const Tree: {
|
|
|
73
77
|
followThemes: {
|
|
74
78
|
'@primary-color': string[];
|
|
75
79
|
'@font-size-base': string[];
|
|
80
|
+
'@text-color': string[];
|
|
81
|
+
'@border-color-base': string[];
|
|
82
|
+
'@border-radius-base': string[];
|
|
76
83
|
};
|
|
77
84
|
tpl: string;
|
|
78
85
|
components: {
|
package/dist/config/Tree.js
CHANGED
|
@@ -4,17 +4,20 @@ export var Tree = {
|
|
|
4
4
|
borderColor: {
|
|
5
5
|
type: 'color',
|
|
6
6
|
label: '边框颜色',
|
|
7
|
-
groupsName: '搜索框样式'
|
|
7
|
+
groupsName: '搜索框样式',
|
|
8
|
+
followTheme: '@border-color-base'
|
|
8
9
|
},
|
|
9
10
|
borderRadius: {
|
|
10
11
|
type: 'px',
|
|
11
12
|
label: '边框圆角',
|
|
12
|
-
groupsName: '搜索框样式'
|
|
13
|
+
groupsName: '搜索框样式',
|
|
14
|
+
followTheme: '@border-radius-base'
|
|
13
15
|
},
|
|
14
16
|
textColor: {
|
|
15
17
|
type: 'color',
|
|
16
18
|
label: '文本颜色',
|
|
17
|
-
groupsName: '搜索框样式'
|
|
19
|
+
groupsName: '搜索框样式',
|
|
20
|
+
followTheme: '@text-color'
|
|
18
21
|
},
|
|
19
22
|
fontSize: {
|
|
20
23
|
type: 'px',
|
|
@@ -31,7 +34,8 @@ export var Tree = {
|
|
|
31
34
|
treeTextColor: {
|
|
32
35
|
type: 'color',
|
|
33
36
|
label: '文本颜色',
|
|
34
|
-
groupsName: '树样式'
|
|
37
|
+
groupsName: '树样式',
|
|
38
|
+
followTheme: '@text-color'
|
|
35
39
|
},
|
|
36
40
|
treeFontSize: {
|
|
37
41
|
type: 'px',
|
|
@@ -74,7 +78,10 @@ export var Tree = {
|
|
|
74
78
|
}],
|
|
75
79
|
followThemes: {
|
|
76
80
|
'@primary-color': ['treeIconColor'],
|
|
77
|
-
'@font-size-base': ['fontSize', 'treeFontSize']
|
|
81
|
+
'@font-size-base': ['fontSize', 'treeFontSize'],
|
|
82
|
+
'@text-color': ['textColor', 'treeTextColor'],
|
|
83
|
+
'@border-color-base': ['borderColor'],
|
|
84
|
+
'@border-radius-base': ['borderRadius']
|
|
78
85
|
},
|
|
79
86
|
tpl: ".ued-tree-wrap .ued-tree-search .pcfactory-input{\n color: textColor;\n border-color: borderColor;\n font-size: fontSize;\n border-bottom-left-radius: borderRadius;\n border-top-left-radius: borderRadius;\n }\n .ued-tree-wrap .pcfactory-input-search>.pcfactory-input-group>.pcfactory-input-group-addon:last-child .pcfactory-input-search-button{\n height: calc(1.5715* fontSize + 10px);\n border-color: borderColor;\n border-bottom-right-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n .ued-tree .ued-tree-tit{\n color: treeTextColor;\n font-size: treeFontSize;\n }\n .ued-tree.pcfactory-tree .pcfactory-tree-treenode .pcfactory-tree-node-content-wrapper.pcfactory-tree-node-selected{\n background-color: treeBgColor\n }\n .ued-tree.pcfactory-tree .pcfactory-tree-treenode span.pcfactory-tree-switcher{\n color: treeIconColor;\n }\n .ued-tree-wrap .pcfactory-tree-show-line .pcfactory-tree-indent-unit:before{\n border-color: treeLineColor;\n }\n .ued-tree-wrap .pcfactory-tree-switcher-leaf-line:before{\n border-color: treeLineColor;\n }\n .ued-tree-wrap .pcfactory-tree-switcher-leaf-line:after{\n border-color: treeLineColor;\n\n }\n .ued-tree.pcfactory-tree .pcfactory-tree-treenode .pcfactory-tree-node-content-wrapper .pcfactory-tree-iconEle .ued-icon.fill-primary{\n fill: treeIconColor;\n color: treeIconColor;\n }\n .ued-tree-wrap .pcfactory-input-search>.pcfactory-input-group>.pcfactory-input-group-addon:last-child .pcfactory-input-search-button{\n width: btnWidth;\n }\n .ued-tree-wrap .pcfactory-input-search>.pcfactory-input-group>.pcfactory-input-group-addon:last-child .pcfactory-input-search-button .anticon svg{\n width: fontSize;\n height: fontSize;\n }",
|
|
80
87
|
components: [{
|
package/dist/lx-mobile.js
CHANGED
|
@@ -105,19 +105,22 @@ export function px2rem(obj) {
|
|
|
105
105
|
for (var key in obj) {
|
|
106
106
|
if (obj.hasOwnProperty(key)) {
|
|
107
107
|
var value = obj[key];
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
108
|
+
if (value) {
|
|
109
|
+
var _value;
|
|
110
|
+
var values = (_value = value) === null || _value === void 0 ? void 0 : _value.split(' ');
|
|
111
|
+
if (values.length > 0) {
|
|
112
|
+
var remValues = values.map(function (val) {
|
|
113
|
+
if (val.includes('px')) {
|
|
114
|
+
var parsedValue = parseFloat(val);
|
|
115
|
+
return "".concat(parsedValue / 50, "rem");
|
|
116
|
+
}
|
|
117
|
+
return val;
|
|
118
|
+
});
|
|
119
|
+
value = remValues.join(' ');
|
|
120
|
+
} else if (value.includes('px')) {
|
|
121
|
+
var parsedValue = parseFloat(value);
|
|
122
|
+
value = "".concat(parsedValue / 50, "rem");
|
|
123
|
+
}
|
|
121
124
|
}
|
|
122
125
|
remObj[key] = value;
|
|
123
126
|
}
|