@lingxiteam/theme-utils 0.2.8 → 0.2.10

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 (64) hide show
  1. package/README.md +6 -0
  2. package/dist/config/Button.d.ts +6 -0
  3. package/dist/config/Button.js +8 -2
  4. package/dist/config/Card.d.ts +0 -1
  5. package/dist/config/Card.js +0 -1
  6. package/dist/config/Checkbox.d.ts +5 -0
  7. package/dist/config/Checkbox.js +7 -2
  8. package/dist/config/CheckboxGroup.d.ts +5 -0
  9. package/dist/config/CheckboxGroup.js +7 -2
  10. package/dist/config/Collapse.d.ts +4 -0
  11. package/dist/config/Collapse.js +6 -2
  12. package/dist/config/DatePicker.d.ts +4 -0
  13. package/dist/config/DatePicker.js +5 -1
  14. package/dist/config/Form.d.ts +5 -0
  15. package/dist/config/Form.js +9 -4
  16. package/dist/config/Icon.d.ts +4 -0
  17. package/dist/config/Icon.js +5 -1
  18. package/dist/config/Link.d.ts +6 -0
  19. package/dist/config/Link.js +8 -2
  20. package/dist/config/Radio.d.ts +4 -0
  21. package/dist/config/Radio.js +5 -1
  22. package/dist/config/RangePicker.d.ts +4 -0
  23. package/dist/config/RangePicker.js +5 -1
  24. package/dist/config/StdUpload.d.ts +5 -0
  25. package/dist/config/StdUpload.js +7 -2
  26. package/dist/config/Switch.d.ts +4 -0
  27. package/dist/config/Switch.js +5 -1
  28. package/dist/config/Table.d.ts +6 -0
  29. package/dist/config/Table.js +8 -2
  30. package/dist/config/Tabs.d.ts +4 -0
  31. package/dist/config/Tabs.js +5 -1
  32. package/dist/config/Text.d.ts +4 -0
  33. package/dist/config/Text.js +5 -1
  34. package/dist/config/TimePicker.d.ts +4 -0
  35. package/dist/config/TimePicker.js +5 -1
  36. package/dist/config/Tree.d.ts +7 -0
  37. package/dist/config/Tree.js +10 -3
  38. package/dist/h5config/Accordion.d.ts +4 -0
  39. package/dist/h5config/Accordion.js +5 -1
  40. package/dist/h5config/Button.d.ts +4 -0
  41. package/dist/h5config/Button.js +5 -1
  42. package/dist/h5config/Card.d.ts +4 -0
  43. package/dist/h5config/Card.js +5 -1
  44. package/dist/h5config/DCheckbox.d.ts +5 -0
  45. package/dist/h5config/DCheckbox.js +7 -2
  46. package/dist/h5config/DformFile.d.ts +4 -0
  47. package/dist/h5config/DformFile.js +5 -1
  48. package/dist/h5config/DformRadio.d.ts +5 -0
  49. package/dist/h5config/DformRadio.js +7 -2
  50. package/dist/h5config/DformSwitch.d.ts +4 -0
  51. package/dist/h5config/DformSwitch.js +5 -1
  52. package/dist/h5config/FilterItems.d.ts +4 -0
  53. package/dist/h5config/FilterItems.js +5 -1
  54. package/dist/h5config/Link.d.ts +4 -0
  55. package/dist/h5config/Link.js +6 -2
  56. package/dist/h5config/SearchView.d.ts +4 -0
  57. package/dist/h5config/SearchView.js +5 -1
  58. package/dist/h5config/StaticTabs.d.ts +5 -0
  59. package/dist/h5config/StaticTabs.js +7 -2
  60. package/dist/lx-mobile.d.ts +12 -0
  61. package/dist/lx-mobile.js +12 -0
  62. package/dist/lx.d.ts +16 -0
  63. package/dist/lx.js +16 -0
  64. package/package.json +1 -1
package/README.md CHANGED
@@ -103,6 +103,8 @@ insertLink('12312', 'http://xxx.css', true);
103
103
  canEdit: false,
104
104
  // 编辑从什么地方支撑这个属性
105
105
  extendsKey: 'Form',
106
+ // 表示这个字段跟随全局主题变量
107
+ followTheme: '@font-size-base',
106
108
  },
107
109
  },
108
110
  groupsName: '分组名称',
@@ -114,6 +116,10 @@ insertLink('12312', 'http://xxx.css', true);
114
116
  fontSize: '14px',
115
117
  },
116
118
  ],
119
+ // 是否跟随主题的开关,存在表示当前为跟随
120
+ followThemes: {
121
+ '@font-size-base': ['fontSize'],
122
+ },
117
123
  // 根据上面的配置项和下面的模版解析得到最终挂在的 css
118
124
  tpl: '.hh { font-size: fontSize}',
119
125
  // 如果它被别人继承,并且自己需要自定义样式,如父级自定义样式为 .aa.list{ .item { } } 子级的自定义样式为 .aa.item { }
@@ -16,11 +16,13 @@ export declare const Button: {
16
16
  label: string;
17
17
  groupsName: string;
18
18
  desc: string;
19
+ followTheme: string;
19
20
  };
20
21
  backgroundColor: {
21
22
  type: string;
22
23
  label: string;
23
24
  groupsName: string;
25
+ followTheme: string;
24
26
  };
25
27
  borderColor: {
26
28
  type: string;
@@ -55,6 +57,10 @@ export declare const Button: {
55
57
  paddingValue: string;
56
58
  marginValue: string;
57
59
  }[];
60
+ followThemes: {
61
+ '@primary-color': string[];
62
+ '@font-size-base': string[];
63
+ };
58
64
  tpl: string;
59
65
  components: {
60
66
  id: string;
@@ -15,12 +15,14 @@ export var Button = {
15
15
  type: 'px',
16
16
  label: '文本尺寸',
17
17
  groupsName: '文字',
18
- desc: '按钮高度不会随着文字大小变化,因为按钮有4种大小规格'
18
+ desc: '按钮高度不会随着文字大小变化,因为按钮有4种大小规格',
19
+ followTheme: '@font-size-base'
19
20
  },
20
21
  backgroundColor: {
21
22
  type: 'color',
22
23
  label: '背景颜色',
23
- groupsName: '背景颜色'
24
+ groupsName: '背景颜色',
25
+ followTheme: '@primary-color'
24
26
  },
25
27
  borderColor: {
26
28
  type: 'color',
@@ -55,6 +57,10 @@ export var Button = {
55
57
  paddingValue: '4px 24px 4px 24px',
56
58
  marginValue: '0px'
57
59
  }],
60
+ followThemes: {
61
+ '@primary-color': ['backgroundColor'],
62
+ '@font-size-base': ['fontSize']
63
+ },
58
64
  tpl: "\n.ued-button-wrap.pcfactory-btn {\n line-height: lineHeight;\n font-size: fontSize;\n padding: paddingValue;\n margin: marginValue;\n }\n.ued-button-wrap.pcfactory-btn-primary {\n background-color: backgroundColor;\n border-color: borderColor;\n border-radius: borderRadius;\n }\n.ued-button-wrap.pcfactory-btn-default {\n color: textColor;\n border-color: borderColor;\n border-radius: borderRadius;\n }\n.ued-button-wrap.pcfactory-btn-dashed {\n color: textColor;\n border-color: borderColor;\n border-radius: borderRadius;\n }\n.ued-button-wrap.pcfactory-btn.pcfactory-btn-dashed:hover {\n border-color: backgroundColor;\n color: backgroundColor;\n }\n.ued-button-wrap.pcfactory-btn.pcfactory-btn-default:hover {\n border-color: backgroundColor;\n color: backgroundColor;\n }\n.ued-button-wrap.pcfactory-btn-text {\n color: textColor;\n }\n.ued-button-wrap.pcfactory-btn-link {\n color: backgroundColor;\n }\n ",
59
65
  components: [{
60
66
  id: 'Button_1229334',
@@ -82,7 +82,6 @@ export declare const Card: {
82
82
  icon: string;
83
83
  title: string;
84
84
  defaultValue: {
85
- fontSize: string;
86
85
  backgroundColor: string;
87
86
  titleColor: string;
88
87
  tagSize: string;
@@ -100,7 +100,6 @@ export var Card = {
100
100
  icon: 'icon-ico-comp-card',
101
101
  title: '卡片',
102
102
  defaultValue: [{
103
- fontSize: '14px',
104
103
  backgroundColor: '#fff',
105
104
  titleColor: '#0085D0',
106
105
  tagSize: '16px',
@@ -61,11 +61,13 @@ export declare const Checkbox: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  radioSeBgColor: {
66
67
  type: string;
67
68
  label: string;
68
69
  groupsName: string;
70
+ followTheme: string;
69
71
  };
70
72
  };
71
73
  groupsName: string;
@@ -78,6 +80,9 @@ export declare const Checkbox: {
78
80
  radioSeBorderColor: string;
79
81
  radioSeBgColor: string;
80
82
  }[];
83
+ followThemes: {
84
+ '@primary-color': string[];
85
+ };
81
86
  tpl: string;
82
87
  components: {
83
88
  id: string;
@@ -60,12 +60,14 @@ export var Checkbox = {
60
60
  radioSeBorderColor: {
61
61
  type: 'color',
62
62
  label: '选中边框颜色',
63
- groupsName: '边框'
63
+ groupsName: '边框',
64
+ followTheme: '@primary-color'
64
65
  },
65
66
  radioSeBgColor: {
66
67
  type: 'color',
67
68
  label: '选中背景颜色',
68
- groupsName: '边框'
69
+ groupsName: '边框',
70
+ followTheme: '@primary-color'
69
71
  }
70
72
  },
71
73
  groupsName: '数据录入',
@@ -78,6 +80,9 @@ export var Checkbox = {
78
80
  radioSeBorderColor: '#47e',
79
81
  radioSeBgColor: '#47e'
80
82
  }],
83
+ followThemes: {
84
+ '@primary-color': ['radioSeBgColor', 'radioSeBorderColor']
85
+ },
81
86
  tpl: ".ued-checkbox-wrap{\n .pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n.pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox], .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }\n }",
82
87
  components: [{
83
88
  id: 'Form_180373',
@@ -61,11 +61,13 @@ export declare const CheckboxGroup: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  radioSeBgColor: {
66
67
  type: string;
67
68
  label: string;
68
69
  groupsName: string;
70
+ followTheme: string;
69
71
  };
70
72
  };
71
73
  groupsName: string;
@@ -78,6 +80,9 @@ export declare const CheckboxGroup: {
78
80
  radioSeBorderColor: string;
79
81
  radioSeBgColor: string;
80
82
  }[];
83
+ followThemes: {
84
+ '@primary-color': string[];
85
+ };
81
86
  tpl: string;
82
87
  components: {
83
88
  id: string;
@@ -60,12 +60,14 @@ export var CheckboxGroup = {
60
60
  radioSeBorderColor: {
61
61
  type: 'color',
62
62
  label: '选中边框颜色',
63
- groupsName: '边框'
63
+ groupsName: '边框',
64
+ followTheme: '@primary-color'
64
65
  },
65
66
  radioSeBgColor: {
66
67
  type: 'color',
67
68
  label: '选中背景颜色',
68
- groupsName: '边框'
69
+ groupsName: '边框',
70
+ followTheme: '@primary-color'
69
71
  }
70
72
  },
71
73
  groupsName: '数据录入',
@@ -78,6 +80,9 @@ export var CheckboxGroup = {
78
80
  radioSeBorderColor: '#47e',
79
81
  radioSeBgColor: '#47e'
80
82
  }],
83
+ followThemes: {
84
+ '@primary-color': ['radioSeBorderColor', 'radioSeBgColor']
85
+ },
81
86
  tpl: ".ued-checkboxgroup-wrap {\n .pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n .pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }\n }",
82
87
  components: [{
83
88
  id: 'Form_180373',
@@ -61,6 +61,7 @@ export declare const Collapse: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  borderColor: {
66
67
  type: string;
@@ -97,6 +98,9 @@ export declare const Collapse: {
97
98
  borderRadius: string;
98
99
  bodyColor: string;
99
100
  }[];
101
+ followThemes: {
102
+ '@font-size-base': string[];
103
+ };
100
104
  tpl: string;
101
105
  components: {
102
106
  id: string;
@@ -78,7 +78,8 @@ export var Collapse = {
78
78
  arrowSize: {
79
79
  type: 'px',
80
80
  label: '后缀图标尺寸',
81
- groupsName: '布局'
81
+ groupsName: '布局',
82
+ followTheme: '@font-size-base'
82
83
  },
83
84
  borderColor: {
84
85
  type: 'color',
@@ -115,7 +116,10 @@ export var Collapse = {
115
116
  borderRadius: '2px',
116
117
  bodyColor: '#fff'
117
118
  }],
118
- tpl: ".ued-collapse-wrap .ued-collapse-panel-header-icon-auto span, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i{\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-collapse-wrap .ued-collapse-panel-header-icon-auto span svg, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i svg{\n width: tagSize;\n height: tagSize;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow span{\n color: arrowColor;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow span svg{\n width: arrowSize;\n height: arrowSize;\n}\n.ued-collapse-wrap .pcfactory-collapse{\n border-color: borderColor;\n border-radius: borderRadius;\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item{\n border-color: borderColor;\n\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content{\n border-color: lineColor;\n}\n.ued-collapse-wrap .pcfactory-collapse>div:last-child{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .pcfactory-collapse-header{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse .pcfactory-collapse-item-active:last-child {\n .pcfactory-collapse-header{\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse-item:last-child>.pcfactory-collapse-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .ued-collapse-pane-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>div:first-child {\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n .pcfactory-collapse-header{\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content>.pcfactory-collapse-content-box .ued-collapse-pane-content{\n background-color: bodyColor;\n}",
119
+ followThemes: {
120
+ '@font-size-base': ['arrowSize']
121
+ },
122
+ tpl: ".ued-collapse-wrap .ued-collapse-panel-header-icon-auto span, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i{\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-collapse-wrap .ued-collapse-panel-header-icon-auto span svg, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i svg{\n width: tagSize;\n height: tagSize;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow {\n color: arrowColor;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow svg{\n width: arrowSize;\n height: arrowSize;\n}\n.ued-collapse-wrap .pcfactory-collapse{\n border-color: borderColor;\n border-radius: borderRadius;\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item{\n border-color: borderColor;\n\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content{\n border-color: lineColor;\n}\n.ued-collapse-wrap .pcfactory-collapse>div:last-child{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .pcfactory-collapse-header{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse .pcfactory-collapse-item-active:last-child {\n .pcfactory-collapse-header{\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse-item:last-child>.pcfactory-collapse-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .ued-collapse-pane-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>div:first-child {\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n .pcfactory-collapse-header{\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content>.pcfactory-collapse-content-box .ued-collapse-pane-content{\n background-color: bodyColor;\n}",
119
123
  components: [{
120
124
  id: 'Collapse_746665',
121
125
  label: '折叠面板',
@@ -62,6 +62,7 @@ export declare const DatePicker: {
62
62
  type: string;
63
63
  label: string;
64
64
  groupsName: string;
65
+ followTheme: string;
65
66
  };
66
67
  iconColor: {
67
68
  type: string;
@@ -76,6 +77,9 @@ export declare const DatePicker: {
76
77
  iconFontSize: string;
77
78
  iconColor: string;
78
79
  }[];
80
+ followThemes: {
81
+ '@font-size-base': string[];
82
+ };
79
83
  tpl: string;
80
84
  components: {
81
85
  id: string;
@@ -61,7 +61,8 @@ export var DatePicker = {
61
61
  iconFontSize: {
62
62
  type: 'px',
63
63
  label: '日期图标尺寸',
64
- groupsName: '文字'
64
+ groupsName: '文字',
65
+ followTheme: '@font-size-base'
65
66
  },
66
67
  iconColor: {
67
68
  type: 'color',
@@ -76,6 +77,9 @@ export var DatePicker = {
76
77
  iconFontSize: '14px',
77
78
  iconColor: '#0085D0'
78
79
  }],
80
+ followThemes: {
81
+ '@font-size-base': ['iconFontSize']
82
+ },
79
83
  tpl: ".ued-datePicker-wrap {\n .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n }",
80
84
  components: [{
81
85
  id: 'Form_180373',
@@ -24,6 +24,7 @@ export declare const Form: {
24
24
  label: string;
25
25
  groupsName: string;
26
26
  desc: string;
27
+ followTheme: string;
27
28
  };
28
29
  textColor: {
29
30
  type: string;
@@ -36,6 +37,7 @@ export declare const Form: {
36
37
  label: string;
37
38
  groupsName: string;
38
39
  desc: string;
40
+ followTheme: string;
39
41
  };
40
42
  itemBorderColor: {
41
43
  type: string;
@@ -63,6 +65,9 @@ export declare const Form: {
63
65
  itemBorderColor: string;
64
66
  itemBorderRadius: string;
65
67
  }[];
68
+ followThemes: {
69
+ '@font-size-base': string[];
70
+ };
66
71
  itemCustomTpl: string;
67
72
  tpl: string;
68
73
  components: ({
@@ -39,7 +39,8 @@ export var Form = {
39
39
  type: 'px',
40
40
  label: '标题文本尺寸',
41
41
  groupsName: '文字',
42
- desc: '对所有[数据录入]类型组件生效'
42
+ desc: '对所有[数据录入]类型组件生效',
43
+ followTheme: '@font-size-base'
43
44
  },
44
45
  textColor: {
45
46
  type: 'color',
@@ -51,7 +52,8 @@ export var Form = {
51
52
  type: 'px',
52
53
  label: '文本尺寸',
53
54
  groupsName: '文字',
54
- desc: '对所有[数据录入]类型组件生效'
55
+ desc: '对所有[数据录入]类型组件生效',
56
+ followTheme: '@font-size-base'
55
57
  },
56
58
  itemBorderColor: {
57
59
  type: 'color',
@@ -79,6 +81,9 @@ export var Form = {
79
81
  itemBorderColor: '#E5E5EA',
80
82
  itemBorderRadius: '2px'
81
83
  }],
84
+ followThemes: {
85
+ '@font-size-base': ['labelFontSize', 'fontSize']
86
+ },
82
87
  // 标签是 form 表单里面才有的,单独拉数据录入组件是没有标签的。
83
88
  // 为了 tpl 干净,不在下列添加注释,顺序是输入框、多行输入框、数字输入、验证码、单选组、复选组、下拉单选、下拉复选、日期选择、时间选择、开关、文件上传、滑动输入条、评星
84
89
  // 密码输入框、输入框的颜色和字号也在.pcfactory-input 边框在 .pcfactory-input-affix-wrapper
@@ -726,8 +731,8 @@ export var Form = {
726
731
  props: {
727
732
  name: '滑动输入条',
728
733
  range: false,
729
- defaultValue: 0,
730
- basicStatus: 1,
734
+ defaultValue: 50,
735
+ basicStatus: 4,
731
736
  labelCol: 8,
732
737
  wrapperCol: 16,
733
738
  included: true,
@@ -5,6 +5,7 @@ export declare const Icon: {
5
5
  type: string;
6
6
  label: string;
7
7
  groupsName: string;
8
+ followTheme: string;
8
9
  };
9
10
  };
10
11
  groupsName: string;
@@ -13,6 +14,9 @@ export declare const Icon: {
13
14
  defaultValue: {
14
15
  iconSize: string;
15
16
  }[];
17
+ followThemes: {
18
+ '@font-size-base': string[];
19
+ };
16
20
  tpl: string;
17
21
  components: {
18
22
  id: string;
@@ -4,7 +4,8 @@ export var Icon = {
4
4
  iconSize: {
5
5
  type: 'px',
6
6
  label: '尺寸',
7
- groupsName: '文字'
7
+ groupsName: '文字',
8
+ followTheme: '@font-size-base'
8
9
  }
9
10
  },
10
11
  groupsName: '通用',
@@ -13,6 +14,9 @@ export var Icon = {
13
14
  defaultValue: [{
14
15
  iconSize: '14px'
15
16
  }],
17
+ followThemes: {
18
+ '@font-size-base': ['iconSize']
19
+ },
16
20
  tpl: ".ued-icon svg {\n width: iconSize;\n height: iconSize;\n }",
17
21
  components: [{
18
22
  id: 'Icon_913145',
@@ -5,11 +5,13 @@ export declare const Link: {
5
5
  type: string;
6
6
  label: string;
7
7
  groupsName: string;
8
+ followTheme: string;
8
9
  };
9
10
  fontSize: {
10
11
  type: string;
11
12
  label: string;
12
13
  groupsName: string;
14
+ followTheme: string;
13
15
  };
14
16
  };
15
17
  groupsName: string;
@@ -20,6 +22,10 @@ export declare const Link: {
20
22
  lineHeight: string;
21
23
  fontSize: string;
22
24
  }[];
25
+ followThemes: {
26
+ '@font-size-base': string[];
27
+ '@link-color': string[];
28
+ };
23
29
  tpl: string;
24
30
  components: ({
25
31
  id: string;
@@ -4,14 +4,16 @@ export var Link = {
4
4
  textColor: {
5
5
  type: 'color',
6
6
  label: '文本颜色',
7
- groupsName: '文字'
7
+ groupsName: '文字',
8
+ followTheme: '@link-color'
8
9
  },
9
10
  // TODO: 行高默认写死
10
11
  // lineHeight: { type: 'px', label: '文本行高', groupsName: '文字' },
11
12
  fontSize: {
12
13
  type: 'px',
13
14
  label: '文本尺寸',
14
- groupsName: '文字'
15
+ groupsName: '文字',
16
+ followTheme: '@font-size-base'
15
17
  }
16
18
  },
17
19
  groupsName: '通用',
@@ -22,6 +24,10 @@ export var Link = {
22
24
  lineHeight: '22px',
23
25
  fontSize: '14px'
24
26
  }],
27
+ followThemes: {
28
+ '@font-size-base': ['fontSize'],
29
+ '@link-color': ['textColor']
30
+ },
25
31
  tpl: ".ued-link {\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n }\n .ued-link:hover {\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n opacity: 0.6;\n }",
26
32
  components: [{
27
33
  id: 'Link_610976',
@@ -61,6 +61,7 @@ export declare const Radio: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  radioSeBgColor: {
66
67
  type: string;
@@ -78,6 +79,9 @@ export declare const Radio: {
78
79
  radioSeBorderColor: string;
79
80
  radioSeBgColor: string;
80
81
  }[];
82
+ followThemes: {
83
+ '@primary-color': string[];
84
+ };
81
85
  tpl: string;
82
86
  components: {
83
87
  id: string;
@@ -60,7 +60,8 @@ export var Radio = {
60
60
  radioSeBorderColor: {
61
61
  type: 'color',
62
62
  label: '选中边框颜色',
63
- groupsName: '边框'
63
+ groupsName: '边框',
64
+ followTheme: '@primary-color'
64
65
  },
65
66
  radioSeBgColor: {
66
67
  type: 'color',
@@ -78,6 +79,9 @@ export var Radio = {
78
79
  radioSeBorderColor: '#47e',
79
80
  radioSeBgColor: '#fff'
80
81
  }],
82
+ followThemes: {
83
+ '@primary-color': ['radioSeBorderColor']
84
+ },
81
85
  tpl: ".ued-radio-wrap {\n .pcfactory-radio-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-radio-input:focus+.pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-radio-wrapper:hover .pcfactory-radio{\n border-color: radioSeBorderColor;\n}\n .pcfactory-radio:hover .pcfactory-radio-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner:after{\n background: radioSeBorderColor;\n margin-left:0px;\n margin-top:0px;\n top:-1px;\n left:-1px;\n border-radius: radioSize;\n width: radioSize;\n height: radioSize;\n }\n}",
82
86
  components: [{
83
87
  id: 'Form_180373',
@@ -62,6 +62,7 @@ export declare const RangePicker: {
62
62
  type: string;
63
63
  label: string;
64
64
  groupsName: string;
65
+ followTheme: string;
65
66
  };
66
67
  iconColor: {
67
68
  type: string;
@@ -82,6 +83,9 @@ export declare const RangePicker: {
82
83
  iconColor: string;
83
84
  lineColor: string;
84
85
  }[];
86
+ followThemes: {
87
+ '@font-size-base': string[];
88
+ };
85
89
  tpl: string;
86
90
  components: {
87
91
  id: string;
@@ -61,7 +61,8 @@ export var RangePicker = {
61
61
  iconFontSize: {
62
62
  type: 'px',
63
63
  label: '时间图标尺寸',
64
- groupsName: '文字'
64
+ groupsName: '文字',
65
+ followTheme: '@font-size-base'
65
66
  },
66
67
  iconColor: {
67
68
  type: 'color',
@@ -82,6 +83,9 @@ export var RangePicker = {
82
83
  iconColor: '#0085D0',
83
84
  lineColor: '#1c242e'
84
85
  }],
86
+ followThemes: {
87
+ '@font-size-base': ['iconFontSize']
88
+ },
85
89
  tpl: ".ued-datePicker-wrap {\n .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-range-separator{\n color: lineColor;\n }\n }",
86
90
  components: [{
87
91
  id: 'Form_180373',
@@ -51,6 +51,7 @@ export declare const StdUpload: {
51
51
  type: string;
52
52
  label: string;
53
53
  groupsName: string;
54
+ followTheme: string;
54
55
  };
55
56
  listIconColor: {
56
57
  type: string;
@@ -61,6 +62,7 @@ export declare const StdUpload: {
61
62
  type: string;
62
63
  label: string;
63
64
  groupsName: string;
65
+ followTheme: string;
64
66
  };
65
67
  };
66
68
  groupsName: string;
@@ -72,6 +74,9 @@ export declare const StdUpload: {
72
74
  listIconColor: string;
73
75
  lisIconSize: string;
74
76
  }[];
77
+ followThemes: {
78
+ '@font-size-base': string[];
79
+ };
75
80
  tpl: string;
76
81
  components: {
77
82
  id: string;
@@ -50,7 +50,8 @@ export var StdUpload = {
50
50
  listFontSize: {
51
51
  type: 'px',
52
52
  label: '列表文本字号',
53
- groupsName: '文字'
53
+ groupsName: '文字',
54
+ followTheme: '@font-size-base'
54
55
  },
55
56
  listIconColor: {
56
57
  type: 'color',
@@ -60,7 +61,8 @@ export var StdUpload = {
60
61
  lisIconSize: {
61
62
  type: 'px',
62
63
  label: '列表图标字号',
63
- groupsName: '文字'
64
+ groupsName: '文字',
65
+ followTheme: '@font-size-base'
64
66
  }
65
67
  },
66
68
  groupsName: '数据录入',
@@ -72,6 +74,9 @@ export var StdUpload = {
72
74
  listIconColor: 'rgba(0,0,0,.45)',
73
75
  lisIconSize: '14px'
74
76
  }],
77
+ followThemes: {
78
+ '@font-size-base': ['listFontSize', 'lisIconSize']
79
+ },
75
80
  tpl: ".ued-stdupload-wrap {\n \n .ued-stdUpload-item-info a {\n color: listTextColor;\n font-size: listFontSize;\n }\n .ued-stdUpload-item-info:hover a{\n color: listTextColor;\n font-size: listFontSize;\n }\n .ued-stdUpload-item-icon .anticon-loading .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }\n .ued-stdUpload-item-icon .anticon{\n color: listIconColor;\n > svg{\n width: lisIconSize;\n height: lisIconSize;\n }\n }\n .ued-stdUpload-item-error .ued-stdUpload-item-icon .anticon-loading .anticon{\n color: #ff7474;\n }\n .ued-stdUpload-item-error .ued-stdUpload-item-icon .anticon{\n color: #ff7474;\n }\n }\n ",
76
81
  components: [{
77
82
  id: 'Form_180373',
@@ -29,6 +29,7 @@ export declare const Switch: {
29
29
  type: string;
30
30
  label: string;
31
31
  groupsName: string;
32
+ followTheme: string;
32
33
  };
33
34
  closeColor: {
34
35
  type: string;
@@ -43,6 +44,9 @@ export declare const Switch: {
43
44
  openColor: string;
44
45
  closeColor: string;
45
46
  }[];
47
+ followThemes: {
48
+ '@primary-color': string[];
49
+ };
46
50
  tpl: string;
47
51
  components: {
48
52
  id: string;
@@ -28,7 +28,8 @@ export var Switch = {
28
28
  openColor: {
29
29
  type: 'color',
30
30
  label: '开启颜色',
31
- groupsName: '文字'
31
+ groupsName: '文字',
32
+ followTheme: '@primary-color'
32
33
  },
33
34
  closeColor: {
34
35
  type: 'color',
@@ -43,6 +44,9 @@ export var Switch = {
43
44
  openColor: '#47e',
44
45
  closeColor: 'rgba(28,36,46,.25)'
45
46
  }],
47
+ followThemes: {
48
+ '@primary-color': ['openColor']
49
+ },
46
50
  tpl: ".pcfactory-switch {\n background-color: closeColor;\n }\n .pcfactory-switch-checked {\n background-color: openColor;\n }",
47
51
  components: [{
48
52
  id: 'Form_180373',
@@ -41,6 +41,7 @@ export declare const Table: {
41
41
  type: string;
42
42
  label: string;
43
43
  groupsName: string;
44
+ followTheme: string;
44
45
  };
45
46
  selectPaginationBorder: {
46
47
  type: string;
@@ -56,6 +57,7 @@ export declare const Table: {
56
57
  type: string;
57
58
  label: string;
58
59
  groupsName: string;
60
+ followTheme: string;
59
61
  };
60
62
  tbBorderColor: {
61
63
  type: string;
@@ -173,6 +175,10 @@ export declare const Table: {
173
175
  bodyTextAlign: string;
174
176
  zebraBgColor: string;
175
177
  }[];
178
+ followThemes: {
179
+ '@primary-color': string[];
180
+ '@font-size-base': string[];
181
+ };
176
182
  tpl: string;
177
183
  components: ({
178
184
  id: string;