@lingxiteam/theme-utils 0.2.16 → 0.3.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.
Files changed (55) hide show
  1. package/dist/config/Button.d.ts +6 -0
  2. package/dist/config/Button.js +10 -4
  3. package/dist/config/Card.d.ts +4 -0
  4. package/dist/config/Card.js +7 -3
  5. package/dist/config/Cascader.d.ts +16 -16
  6. package/dist/config/Cascader.js +16 -16
  7. package/dist/config/Checkbox.d.ts +2 -0
  8. package/dist/config/Checkbox.js +4 -2
  9. package/dist/config/CheckboxGroup.d.ts +2 -0
  10. package/dist/config/CheckboxGroup.js +4 -2
  11. package/dist/config/Collapse.d.ts +6 -0
  12. package/dist/config/Collapse.js +10 -4
  13. package/dist/config/Container.d.ts +6 -0
  14. package/dist/config/Container.js +8 -2
  15. package/dist/config/DatePicker.d.ts +13 -11
  16. package/dist/config/DatePicker.js +15 -13
  17. package/dist/config/Description.d.ts +8 -0
  18. package/dist/config/Description.js +11 -3
  19. package/dist/config/Form.d.ts +7 -0
  20. package/dist/config/Form.js +11 -4
  21. package/dist/config/Radio.d.ts +2 -0
  22. package/dist/config/Radio.js +4 -2
  23. package/dist/config/RangePicker.d.ts +19 -16
  24. package/dist/config/RangePicker.js +21 -18
  25. package/dist/config/StdUpload.d.ts +25 -22
  26. package/dist/config/StdUpload.js +26 -23
  27. package/dist/config/Table.d.ts +8 -0
  28. package/dist/config/Table.js +13 -5
  29. package/dist/config/Tabs.d.ts +3 -0
  30. package/dist/config/Tabs.js +7 -4
  31. package/dist/config/TimePicker.d.ts +13 -11
  32. package/dist/config/TimePicker.js +14 -12
  33. package/dist/config/Tree.d.ts +7 -0
  34. package/dist/config/Tree.js +12 -5
  35. package/dist/config/TreeSelect.d.ts +16 -16
  36. package/dist/config/TreeSelect.js +16 -16
  37. package/dist/h5config/Accordion.d.ts +1 -1
  38. package/dist/h5config/Accordion.js +2 -2
  39. package/dist/h5config/Button.d.ts +1 -1
  40. package/dist/h5config/Button.js +2 -2
  41. package/dist/h5config/Card.d.ts +1 -1
  42. package/dist/h5config/Card.js +2 -2
  43. package/dist/h5config/DCheckbox.d.ts +1 -1
  44. package/dist/h5config/DCheckbox.js +3 -3
  45. package/dist/h5config/DformFile.d.ts +1 -1
  46. package/dist/h5config/DformFile.js +2 -2
  47. package/dist/h5config/DformRadio.d.ts +1 -1
  48. package/dist/h5config/DformRadio.js +3 -3
  49. package/dist/h5config/DformSwitch.d.ts +1 -1
  50. package/dist/h5config/DformSwitch.js +2 -2
  51. package/dist/h5config/StaticTabs.d.ts +1 -1
  52. package/dist/h5config/StaticTabs.js +3 -3
  53. package/dist/lx-mobile.d.ts +1 -1
  54. package/dist/lx-mobile.js +17 -14
  55. package/package.json +1 -1
@@ -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: [{
@@ -2,6 +2,22 @@ export declare const TreeSelect: {
2
2
  type: string;
3
3
  hasPrefixClass: boolean;
4
4
  variable: {
5
+ iconFontSize: {
6
+ type: string;
7
+ label: string;
8
+ groupsName: string;
9
+ desc: string;
10
+ };
11
+ iconColor: {
12
+ type: string;
13
+ label: string;
14
+ groupsName: string;
15
+ };
16
+ iconTop: {
17
+ type: string;
18
+ label: string;
19
+ groupsName: string;
20
+ };
5
21
  labelTextColor: {
6
22
  type: string;
7
23
  label: string;
@@ -58,22 +74,6 @@ export declare const TreeSelect: {
58
74
  canEdit: boolean;
59
75
  extendsKey: string;
60
76
  };
61
- iconFontSize: {
62
- type: string;
63
- label: string;
64
- groupsName: string;
65
- desc: string;
66
- };
67
- iconColor: {
68
- type: string;
69
- label: string;
70
- groupsName: string;
71
- };
72
- iconTop: {
73
- type: string;
74
- label: string;
75
- groupsName: string;
76
- };
77
77
  };
78
78
  groupsName: string;
79
79
  icon: string;
@@ -2,6 +2,22 @@ export var TreeSelect = {
2
2
  type: 'TreeSelect',
3
3
  hasPrefixClass: true,
4
4
  variable: {
5
+ iconFontSize: {
6
+ type: 'px',
7
+ label: '下拉图标尺寸',
8
+ groupsName: '文字',
9
+ desc: '请根据实际【文本尺寸】调整,不宜与【文本尺寸】大小差异过大'
10
+ },
11
+ iconColor: {
12
+ type: 'color',
13
+ label: '下拉图标颜色',
14
+ groupsName: '文字'
15
+ },
16
+ iconTop: {
17
+ type: 'px',
18
+ label: '下拉图标距离顶部',
19
+ groupsName: '文字'
20
+ },
5
21
  labelTextColor: {
6
22
  type: 'color',
7
23
  label: '标题文本颜色',
@@ -57,22 +73,6 @@ export var TreeSelect = {
57
73
  desc: '继承自表单,此处不可编辑',
58
74
  canEdit: false,
59
75
  extendsKey: 'Form'
60
- },
61
- iconFontSize: {
62
- type: 'px',
63
- label: '下拉图标尺寸',
64
- groupsName: '文字',
65
- desc: '请根据实际【文本尺寸】调整,不宜与【文本尺寸】大小差异过大'
66
- },
67
- iconColor: {
68
- type: 'color',
69
- label: '下拉图标颜色',
70
- groupsName: '文字'
71
- },
72
- iconTop: {
73
- type: 'px',
74
- label: '下拉图标距离顶部',
75
- groupsName: '文字'
76
76
  }
77
77
  },
78
78
  groupsName: '数据录入',
@@ -92,7 +92,7 @@ export declare const Accordion: {
92
92
  borderRadius: string;
93
93
  }[];
94
94
  followThemes: {
95
- '@primary-color': string[];
95
+ '@brand-primary': string[];
96
96
  };
97
97
  tpl: string;
98
98
  components: ({
@@ -52,7 +52,7 @@ export var Accordion = {
52
52
  type: 'color',
53
53
  label: '装饰条颜色',
54
54
  groupsName: '标题',
55
- followTheme: '@primary-color'
55
+ followTheme: '@brand-primary'
56
56
  },
57
57
  // lineColor: {
58
58
  // type: 'color',
@@ -116,7 +116,7 @@ export var Accordion = {
116
116
  borderRadius: '4px'
117
117
  }],
118
118
  followThemes: {
119
- '@primary-color': ['titleColor']
119
+ '@brand-primary': ['titleColor']
120
120
  },
121
121
  tpl: ".lcdp-accordion {\n .lcdp-accordion-header{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n background: backgroundColor;\n > div {\n margin-left: tagMargin !important;\n }\n }\n .lcdp-accordion-header-icon-left{\n background: titleColor;\n }\n .lcdp-accordion-header-default-icon{\n height: tagSize;\n background: titleColor;\n margin-right: -4px;\n }\n .adm-collapse-arrow svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .adm-list-item-content-main{\n background: bodyBgColor;\n }\n .adm-collapse{\n border-radius: borderRadius;\n border-color: borderColor !important;\n }\n }\n ",
122
122
  components: [{
@@ -57,7 +57,7 @@ export declare const Button: {
57
57
  marginValue: string;
58
58
  }[];
59
59
  followThemes: {
60
- '@primary-color': string[];
60
+ '@brand-primary': string[];
61
61
  };
62
62
  tpl: string;
63
63
  components: ({
@@ -20,7 +20,7 @@ export var Button = {
20
20
  type: 'color',
21
21
  label: '主题颜色',
22
22
  groupsName: '颜色',
23
- followTheme: '@primary-color'
23
+ followTheme: '@brand-primary'
24
24
  },
25
25
  borderColor: {
26
26
  type: 'color',
@@ -57,7 +57,7 @@ export var Button = {
57
57
  marginValue: '0px'
58
58
  }],
59
59
  followThemes: {
60
- '@primary-color': ['backgroundColor']
60
+ '@brand-primary': ['backgroundColor']
61
61
  },
62
62
  tpl: "\n .adm-button{\n --border-color: borderColor;\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n border-radius: borderRadius;\n padding: paddingValue;\n margin: marginValue;\n }\n .adm-button.adm-button-large{\n font-size: fontSize;\n padding: paddingValue;\n margin: marginValue;\n }\n .adm-button:not(.adm-button-default){\n color: #fff;\n }\n .adm-button-primary{\n --color: backgroundColor;\n }\n .lcdp-button-type-link{\n color: backgroundColor;\n }\n ",
63
63
  components: [{
@@ -114,7 +114,7 @@ export declare const Card: {
114
114
  borderRadius: string;
115
115
  }[];
116
116
  followThemes: {
117
- '@primary-color': string[];
117
+ '@brand-primary': string[];
118
118
  };
119
119
  tpl: string;
120
120
  components: ({
@@ -60,7 +60,7 @@ export var Card = {
60
60
  type: 'color',
61
61
  label: '装饰条颜色',
62
62
  groupsName: '标题',
63
- followTheme: '@primary-color'
63
+ followTheme: '@brand-primary'
64
64
  },
65
65
  lineColor: {
66
66
  type: 'color',
@@ -135,7 +135,7 @@ export var Card = {
135
135
  borderRadius: '4px'
136
136
  }],
137
137
  followThemes: {
138
- '@primary-color': ['titleColor']
138
+ '@brand-primary': ['titleColor']
139
139
  },
140
140
  tpl: ".lcdp-h5-card {\n border-radius: borderRadius;\n border: 1PX solid borderColor;\n\n .adm-card-header:not(:last-child){\n border-color: lineColor !important;\n }\n .adm-card-header{\n border-color: lineColor !important;\n background: backgroundColor;\n }\n .adm-card-body{\n background: bodyBgColor;\n }\n\n .adm-card-header-title .lcdp-h5-card-title{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n line-height: lineHeight;\n }\n\n .lcdp-h5-card-hStyle{\n background: titleColor;\n margin-right: tagMargin;\n position: static;\n width: tagSize;\n }\n .lcdp-h5-card-vStyle{\n height: tagSize;\n background: titleColor;\n margin-right: tagMargin;\n }\n .lcdp-h5-card-icon{\n width: tagSize;\n height: tagSize;\n margin-right: tagMargin;\n margin-top: -1px;\n display: grid;\n }\n .lcdp-h5-card-icon svg{\n color: titleColor;\n width: tagSize;\n height: tagSize;\n }\n .lcdp-h5-card-extra-icon{\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-h5-card-extra-icon svg{\n color: arrowColor;\n width: arrowSize;\n height: arrowSize;\n }\n .lcdp-card-footer-draw-box-border{\n border-color: bodyLineColor;\n background: footBgColor;\n }\n }\n \n ",
141
141
  components: [{
@@ -126,7 +126,7 @@ export declare const DCheckbox: {
126
126
  itemBgColor: string;
127
127
  }[];
128
128
  followThemes: {
129
- '@primary-color': string[];
129
+ '@brand-primary': string[];
130
130
  };
131
131
  tpl: string;
132
132
  components: {
@@ -5,13 +5,13 @@ export var DCheckbox = {
5
5
  type: 'color',
6
6
  label: '选中背景颜色',
7
7
  groupsName: '背景颜色',
8
- followTheme: '@primary-color'
8
+ followTheme: '@brand-primary'
9
9
  },
10
10
  selectBorderRadius: {
11
11
  type: 'color',
12
12
  label: '选中边框颜色',
13
13
  groupsName: '边框',
14
- followTheme: '@primary-color'
14
+ followTheme: '@brand-primary'
15
15
  },
16
16
  itemBgColor: {
17
17
  type: 'color',
@@ -168,7 +168,7 @@ export var DCheckbox = {
168
168
  itemBgColor: 'rgba(0,0,0,0)'
169
169
  }],
170
170
  followThemes: {
171
- '@primary-color': ['selectBorderRadius', 'selectBgColor']
171
+ '@brand-primary': ['selectBorderRadius', 'selectBgColor']
172
172
  },
173
173
  tpl: "\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-botton{\n background-color: itemBgColor;\n border-color: itemBorderRadius;\n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-botton-selectAll-circular{\n background-color: itemBgColor;\n border-color: itemBorderRadius;\n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-botton-selectAll-square{\n background-color: itemBgColor;\n border-color: itemBorderRadius;\n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-botton-checked{\n background-color: selectBgColor;\n border-color: selectBorderRadius;\n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-botton-selectAll-checked{\n background-color: selectBgColor;\n border-color: selectBorderRadius;\n }\n .lingxiteam-dform-check-box .lingxiteam-dform-box-content .lingxiteam-dform-box-wrapper .lingxiteam-dform-box-botton-selectAll-half-checked{\n background-color: selectBgColor;\n border-color: selectBorderRadius;\n }",
174
174
  components: [{
@@ -64,7 +64,7 @@ export declare const DformFile: {
64
64
  btnBorderRadius: string;
65
65
  }[];
66
66
  followThemes: {
67
- '@primary-color': string[];
67
+ '@brand-primary': string[];
68
68
  };
69
69
  tpl: string;
70
70
  components: {
@@ -11,7 +11,7 @@ export var DformFile = {
11
11
  type: 'color',
12
12
  label: '上传按钮标题颜色',
13
13
  groupsName: '背景颜色',
14
- followTheme: '@primary-color'
14
+ followTheme: '@brand-primary'
15
15
  },
16
16
  btnBorderRadius: {
17
17
  type: 'px',
@@ -82,7 +82,7 @@ export var DformFile = {
82
82
  btnBorderRadius: '100px'
83
83
  }],
84
84
  followThemes: {
85
- '@primary-color': ['btnIconColor']
85
+ '@brand-primary': ['btnIconColor']
86
86
  },
87
87
  tpl: ".lcdp-form-item {\n .lingxiteam-dform-file-extra-btn{\n border-radius: btnBorderRadius;\n background: btnBgColor;\n > span {\n color: btnIconColor;\n }\n }\n }",
88
88
  components: [{
@@ -126,7 +126,7 @@ export declare const DformRadio: {
126
126
  itemBgColor: string;
127
127
  }[];
128
128
  followThemes: {
129
- '@primary-color': string[];
129
+ '@brand-primary': string[];
130
130
  };
131
131
  tpl: string;
132
132
  components: {
@@ -5,13 +5,13 @@ export var DformRadio = {
5
5
  type: 'color',
6
6
  label: '选中背景颜色',
7
7
  groupsName: '背景颜色',
8
- followTheme: '@primary-color'
8
+ followTheme: '@brand-primary'
9
9
  },
10
10
  selectBorderRadius: {
11
11
  type: 'color',
12
12
  label: '选中边框颜色',
13
13
  groupsName: '边框',
14
- followTheme: '@primary-color'
14
+ followTheme: '@brand-primary'
15
15
  },
16
16
  itemBgColor: {
17
17
  type: 'color',
@@ -168,7 +168,7 @@ export var DformRadio = {
168
168
  itemBgColor: 'rgba(0,0,0,0)'
169
169
  }],
170
170
  followThemes: {
171
- '@primary-color': ['selectBorderRadius', 'selectBgColor']
171
+ '@brand-primary': ['selectBorderRadius', 'selectBgColor']
172
172
  },
173
173
  tpl: "\n .lingxiteam-dform-radio-button{\n background-color: itemBgColor;\n border-color: itemBorderRadius;\n }\n .lingxiteam-dform-radio-checked{\n border-color: selectBorderRadius;\n }\n .lingxiteam-dform-radio-inner-button{\n background-color: selectBgColor;\n }\n ",
174
174
  components: [{
@@ -66,7 +66,7 @@ export declare const DformSwitch: {
66
66
  closeColor: string;
67
67
  }[];
68
68
  followThemes: {
69
- '@primary-color': string[];
69
+ '@brand-primary': string[];
70
70
  };
71
71
  tpl: string;
72
72
  components: {
@@ -6,7 +6,7 @@ export var DformSwitch = {
6
6
  type: 'color',
7
7
  label: '开启颜色',
8
8
  groupsName: '文字',
9
- followTheme: '@primary-color'
9
+ followTheme: '@brand-primary'
10
10
  },
11
11
  closeColor: {
12
12
  type: 'color',
@@ -84,7 +84,7 @@ export var DformSwitch = {
84
84
  closeColor: '#ddd'
85
85
  }],
86
86
  followThemes: {
87
- '@primary-color': ['openColor']
87
+ '@brand-primary': ['openColor']
88
88
  },
89
89
  tpl: ".lcdp-form-item {\n .adm-switch.adm-switch-checked .adm-switch-checkbox{\n background: openColor;\n }\n .lingxiteam-dform-switch .adm-switch-checkbox{\n background: closeColor;\n }\n .lingxiteam-dform-switch .adm-switch-checkbox::before{\n background: closeColor;\n }\n }\n ",
90
90
  components: [{
@@ -73,7 +73,7 @@ export declare const StaticTabs: {
73
73
  bodyBgColor: string;
74
74
  }[];
75
75
  followThemes: {
76
- '@primary-color': string[];
76
+ '@brand-primary': string[];
77
77
  };
78
78
  tpl: string;
79
79
  components: {
@@ -17,7 +17,7 @@ export var StaticTabs = {
17
17
  type: 'color',
18
18
  label: '选项背景颜色',
19
19
  groupsName: '选项',
20
- followTheme: '@primary-color'
20
+ followTheme: '@brand-primary'
21
21
  },
22
22
  selectBorderRadius: {
23
23
  type: 'px',
@@ -28,7 +28,7 @@ export var StaticTabs = {
28
28
  type: 'color',
29
29
  label: '选中项文本颜色',
30
30
  groupsName: '选中项',
31
- followTheme: '@primary-color'
31
+ followTheme: '@brand-primary'
32
32
  },
33
33
  selectFontWeight: {
34
34
  type: 'select',
@@ -127,7 +127,7 @@ export var StaticTabs = {
127
127
  }],
128
128
 
129
129
  followThemes: {
130
- '@primary-color': ['backgroundColor', 'selectTextColor']
130
+ '@brand-primary': ['backgroundColor', 'selectTextColor']
131
131
  },
132
132
  tpl: ".use-app-statictabs {\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active{\n background: selectBgColor;\n color: selectTextColor;\n position: relative;\n border-top-left-radius: selectBorderRadius;\n border-top-right-radius: selectBorderRadius;\n transform: perspective(200px) rotateX(25deg);\n transform-origin: top center;\n font-weight: selectFontWeight;\n }\n .am-tabs-default-bar-bottom .am-tabs-default-bar-content, .am-tabs-default-bar-top .am-tabs-default-bar-content{\n background: backgroundColor;\n }\n .am-tabs-bottom, .am-tabs-top{\n border-radius: selectBorderRadius;\n }\n .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::before, .am-tabs-default-bar-content .am-tabs-default-bar-tab-active::after{\n background: radial-gradient(0.24rem at 0.3rem 0, transparent 0.3rem, selectBgColor 0.23rem);\n }\n .am-tabs-default-bar-tab{\n color: textColor;\n font-weight: fontWeight;\n font-size: fontSize;\n }\n .am-tabs-pane-wrap {\n background-color: bodyBgColor;\n }\n }\n",
133
133
  components: [{
@@ -1,5 +1,5 @@
1
1
  export declare const THEME_KEYS_MOBILE_TITLE: {
2
- '@primary-color': string;
2
+ '@brand-primary': string;
3
3
  '@border-color-base': string;
4
4
  '@font-size-base': string;
5
5
  '@color-text-base': string;
package/dist/lx-mobile.js CHANGED
@@ -33,7 +33,7 @@ import { ALink } from "./h5config/Link";
33
33
  import { Card } from "./h5config/Card";
34
34
  import { Accordion } from "./h5config/Accordion";
35
35
  export var THEME_KEYS_MOBILE_TITLE = {
36
- '@primary-color': '主题色',
36
+ '@brand-primary': '主题色',
37
37
  '@border-color-base': '边框色',
38
38
  '@font-size-base': '主字号',
39
39
  '@color-text-base': '主文本色',
@@ -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
- var values = value.split(' ');
109
- if (values.length > 0) {
110
- var remValues = values.map(function (val) {
111
- if (val.includes('px')) {
112
- var parsedValue = parseFloat(val);
113
- return "".concat(parsedValue / 50, "rem");
114
- }
115
- return val;
116
- });
117
- value = remValues.join(' ');
118
- } else if (value.includes('px')) {
119
- var parsedValue = parseFloat(value);
120
- value = "".concat(parsedValue / 50, "rem");
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/theme-utils",
3
- "version": "0.2.16",
3
+ "version": "0.3.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",