@lingxiteam/theme-utils 0.2.8 → 0.2.9

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 (45) hide show
  1. package/dist/config/Button.d.ts +6 -0
  2. package/dist/config/Button.js +8 -2
  3. package/dist/config/Card.d.ts +0 -1
  4. package/dist/config/Card.js +0 -1
  5. package/dist/config/Checkbox.d.ts +5 -0
  6. package/dist/config/Checkbox.js +7 -2
  7. package/dist/config/CheckboxGroup.d.ts +5 -0
  8. package/dist/config/CheckboxGroup.js +7 -2
  9. package/dist/config/Collapse.d.ts +4 -0
  10. package/dist/config/Collapse.js +6 -2
  11. package/dist/config/DatePicker.d.ts +4 -0
  12. package/dist/config/DatePicker.js +5 -1
  13. package/dist/config/Form.d.ts +5 -0
  14. package/dist/config/Form.js +7 -2
  15. package/dist/config/Icon.d.ts +4 -0
  16. package/dist/config/Icon.js +5 -1
  17. package/dist/config/Link.d.ts +6 -0
  18. package/dist/config/Link.js +8 -2
  19. package/dist/config/Radio.d.ts +4 -0
  20. package/dist/config/Radio.js +5 -1
  21. package/dist/config/RangePicker.d.ts +4 -0
  22. package/dist/config/RangePicker.js +5 -1
  23. package/dist/config/StdUpload.d.ts +5 -0
  24. package/dist/config/StdUpload.js +7 -2
  25. package/dist/config/Switch.d.ts +4 -0
  26. package/dist/config/Switch.js +5 -1
  27. package/dist/config/Table.d.ts +6 -0
  28. package/dist/config/Table.js +8 -2
  29. package/dist/config/Tabs.d.ts +4 -0
  30. package/dist/config/Tabs.js +5 -1
  31. package/dist/config/Text.d.ts +4 -0
  32. package/dist/config/Text.js +5 -1
  33. package/dist/config/TimePicker.d.ts +4 -0
  34. package/dist/config/TimePicker.js +5 -1
  35. package/dist/config/Tree.d.ts +7 -0
  36. package/dist/config/Tree.js +10 -3
  37. package/dist/h5config/Accordion.d.ts +4 -0
  38. package/dist/h5config/Accordion.js +5 -1
  39. package/dist/h5config/Card.d.ts +4 -0
  40. package/dist/h5config/Card.js +5 -1
  41. package/dist/h5config/FilterItems.d.ts +4 -0
  42. package/dist/h5config/FilterItems.js +5 -1
  43. package/dist/h5config/SearchView.d.ts +4 -0
  44. package/dist/h5config/SearchView.js +5 -1
  45. package/package.json +1 -1
@@ -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
@@ -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;
@@ -58,7 +58,8 @@ export var Table = {
58
58
  selectPaginationColor: {
59
59
  type: 'color',
60
60
  label: '选中项背景颜色',
61
- groupsName: '表格分页'
61
+ groupsName: '表格分页',
62
+ followTheme: '@primary-color'
62
63
  },
63
64
  selectPaginationBorder: {
64
65
  type: 'color',
@@ -74,7 +75,8 @@ export var Table = {
74
75
  tbFontSize: {
75
76
  type: 'px',
76
77
  label: '表格文本尺寸',
77
- groupsName: '基础'
78
+ groupsName: '基础',
79
+ followTheme: '@font-size-base'
78
80
  },
79
81
  tbBorderColor: {
80
82
  type: 'color',
@@ -240,6 +242,10 @@ export var Table = {
240
242
  bodyTextAlign: 'left',
241
243
  zebraBgColor: '#fbfbfb'
242
244
  }],
245
+ followThemes: {
246
+ '@primary-color': ['selectPaginationColor'],
247
+ '@font-size-base': ['tbFontSize']
248
+ },
243
249
  tpl: "\n .ued-table-wrap {\n .pcfactory-table{\n font-size: tbFontSize;\n border-radius: tbBorderRadius;\n }\n .pcfactory-table-container{\n border-top-left-radius: tbBorderRadius;\n border-top-right-radius: tbBorderRadius;\n }\n .pcfactory-table-tbody{\n background: bodyBgColor;\n }\n }\n .ued-table-wrap .ued-table .pcfactory-table table .pcfactory-table-thead th {\n background: headBgColor;\n padding: headPadding;\n color: headTextColor;\n font-weight: headFontWeight;\n text-align: headTextAlign;\n }\n .ued-table-wrap .ued-table .pcfactory-table-thead>tr:first-child>th:first-child{\n border-top-left-radius: tbBorderRadius;\n }\n .ued-table-wrap .ued-table .pcfactory-table-thead>tr:first-child>th:last-child{\n border-top-right-radius: tbBorderRadius;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-body>table>tbody>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-body>table>tfoot>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-body>table>tfoot>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-content>table>tbody>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-content>table>tfoot>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-content>table>tfoot>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-content>table>thead>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-header>table>tbody>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-header>table>tfoot>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-header>table>tfoot>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-header>table>thead>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-summary>table>tbody>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-summary>table>tfoot>tr>td{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-summary>table>tfoot>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-summary>table>thead>tr>th{\n border-color: tbBorderColor;\n }\n .pcfactory-table.pcfactory-table-bordered>.pcfactory-table-container>.pcfactory-table-content>table>thead>tr>th{\n border-bottom: headLineSize solid headLineColor;\n }\n .ued-table-filters .ued-table .pcfactory-table-thead>tr>th{\n border-bottom: headLineSize solid headLineColor;\n }\n .ued-table-wrap .ued-table .pcfactory-table-thead>tr>th{\n border-bottom: headLineSize solid headLineColor;\n }\n .ued-table-filters .ued-table .pcfactory-table-tbody>tr>td{\n border-color: tbBorderColor;\n padding: bodyPadding;\n color: bodyTextColor;\n font-weight: bodyFontWeight;\n text-align: bodyTextAlign;\n }\n .ued-table-wrap .ued-table .pcfactory-table-tbody>tr>td{\n border-color: tbBorderColor;\n padding: bodyPadding;\n color: bodyTextColor;\n font-weight: bodyFontWeight;\n text-align: bodyTextAlign;\n }\n .ued-table-filters .ued-table .pcfactory-table-bordered{\n border-color: tbBorderColor;\n }\n .ued-table-wrap .ued-table .pcfactory-table-bordered{\n border-color: tbBorderColor;\n }\n .ued-table-filters .ued-table-page .pcfactory-pagination-item-active{\n background: selectPaginationColor;\n }\n .ued-table-wrap .ued-table-page .pcfactory-pagination-item-active{\n background: selectPaginationColor;\n }\n .ued-table-page .pcfactory-pagination-item{\n border-radius: selectPaginationRadius;\n border-color: selectPaginationBorder;\n }\n .ued-table-page .pcfactory-pagination-item-link{\n border-radius: selectPaginationRadius;\n border-color: selectPaginationBorder;\n }\n .ued-table-page .pcfactory-pagination-options .pcfactory-select .pcfactory-select-selector{\n border-radius: selectPaginationRadius;\n border-color: selectPaginationBorder;\n }\n .ued-table-page .pcfactory-pagination-options .pcfactory-pagination-options-quick-jumper input{\n border-radius: selectPaginationRadius;\n border-color: selectPaginationBorder;\n }\n .ued-table-filters .ued-table-zebra-stripe .pcfactory-table-row:nth-child(2n){\n background: zebraBgColor;\n }\n .ued-table-wrap .ued-table-zebra-stripe .pcfactory-table-row:nth-child(2n){\n background: zebraBgColor;\n }",
244
250
  components: [{
245
251
  id: 'Table_2740384',
@@ -15,6 +15,7 @@ export declare const Tabs: {
15
15
  type: string;
16
16
  label: string;
17
17
  groupsName: string;
18
+ followTheme: string;
18
19
  };
19
20
  activeRadius: {
20
21
  type: string;
@@ -99,6 +100,9 @@ export declare const Tabs: {
99
100
  fontWeight: string;
100
101
  activeFontWeight: string;
101
102
  }[];
103
+ followThemes: {
104
+ '@primary-color': string[];
105
+ };
102
106
  tpl: string;
103
107
  components: {
104
108
  id: string;
@@ -14,7 +14,8 @@ export var Tabs = {
14
14
  activeFColor: {
15
15
  type: 'color',
16
16
  label: '分割线颜色',
17
- groupsName: '背景颜色'
17
+ groupsName: '背景颜色',
18
+ followTheme: '@primary-color'
18
19
  },
19
20
  activeRadius: {
20
21
  type: 'px',
@@ -140,6 +141,9 @@ export var Tabs = {
140
141
  fontWeight: '300',
141
142
  activeFontWeight: '300'
142
143
  }],
144
+ followThemes: {
145
+ '@primary-color': ['activeFColor']
146
+ },
143
147
  tpl: ".pcfactory-tabs .pcfactory-tabs > .pcfactory-tabs-nav .pcfactory-tabs-nav-wrap{\n background-color: headBgColor;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab-active{\n background-color: activeBgColor;\n border-top-left-radius: activeRadius;\n border-top-right-radius: activeRadius;\n }\n .pcfactory-tabs .pcfactory-tabs-ink-bar{\n background-color: activeFColor;\n }\n .pcfactory-tabs{\n background-color: bodyColor;\n border-radius: borderRadius;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab{\n padding: paddingValue;\n margin: marginValue;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab .pcfactory-tabs-tab-btn{\n color: textColor;\n line-height: lineHeight;\n font-size: fontSize;\n font-weight: fontWeight;\n }\n .pcfactory-tabs .pcfactory-tabs-nav .pcfactory-tabs-tab-active .pcfactory-tabs-tab-btn{\n color: activeTextColor;\n font-weight: activeFontWeight;\n }",
144
148
  components: [{
145
149
  id: 'Tabs_9165146',
@@ -15,6 +15,7 @@ export declare const Text: {
15
15
  type: string;
16
16
  label: string;
17
17
  groupsName: string;
18
+ followTheme: string;
18
19
  };
19
20
  };
20
21
  groupsName: string;
@@ -25,6 +26,9 @@ export declare const Text: {
25
26
  lineHeight: string;
26
27
  fontSize: string;
27
28
  }[];
29
+ followThemes: {
30
+ '@font-size-base': string[];
31
+ };
28
32
  tpl: string;
29
33
  components: never[];
30
34
  };
@@ -14,7 +14,8 @@ export var Text = {
14
14
  fontSize: {
15
15
  type: 'px',
16
16
  label: '文本尺寸',
17
- groupsName: '文字'
17
+ groupsName: '文字',
18
+ followTheme: '@font-size-base'
18
19
  }
19
20
  },
20
21
  groupsName: '通用',
@@ -25,6 +26,9 @@ export var Text = {
25
26
  lineHeight: '22px',
26
27
  fontSize: '14px'
27
28
  }],
29
+ followThemes: {
30
+ '@font-size-base': ['fontSize']
31
+ },
28
32
  tpl: '',
29
33
  components: []
30
34
  };
@@ -62,6 +62,7 @@ export declare const TimePicker: {
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 TimePicker: {
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 TimePicker = {
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 TimePicker = {
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',
@@ -20,6 +20,7 @@ export declare const Tree: {
20
20
  type: string;
21
21
  label: string;
22
22
  groupsName: string;
23
+ followTheme: string;
23
24
  };
24
25
  btnWidth: {
25
26
  type: string;
@@ -35,11 +36,13 @@ export declare const Tree: {
35
36
  type: string;
36
37
  label: string;
37
38
  groupsName: string;
39
+ followTheme: string;
38
40
  };
39
41
  treeIconColor: {
40
42
  type: string;
41
43
  label: string;
42
44
  groupsName: string;
45
+ followTheme: string;
43
46
  };
44
47
  treeLineColor: {
45
48
  type: string;
@@ -67,6 +70,10 @@ export declare const Tree: {
67
70
  treeLineColor: string;
68
71
  treeIconColor: string;
69
72
  }[];
73
+ followThemes: {
74
+ '@primary-color': string[];
75
+ '@font-size-base': string[];
76
+ };
70
77
  tpl: string;
71
78
  components: {
72
79
  id: string;
@@ -19,7 +19,8 @@ export var Tree = {
19
19
  fontSize: {
20
20
  type: 'px',
21
21
  label: '文本尺寸',
22
- groupsName: '搜索框样式'
22
+ groupsName: '搜索框样式',
23
+ followTheme: '@font-size-base'
23
24
  },
24
25
  btnWidth: {
25
26
  type: 'px',
@@ -35,12 +36,14 @@ export var Tree = {
35
36
  treeFontSize: {
36
37
  type: 'px',
37
38
  label: '文本尺寸',
38
- groupsName: '树样式'
39
+ groupsName: '树样式',
40
+ followTheme: '@font-size-base'
39
41
  },
40
42
  treeIconColor: {
41
43
  type: 'color',
42
44
  label: '折叠图标颜色',
43
- groupsName: '树样式'
45
+ groupsName: '树样式',
46
+ followTheme: '@primary-color'
44
47
  },
45
48
  treeLineColor: {
46
49
  type: 'color',
@@ -69,6 +72,10 @@ export var Tree = {
69
72
  treeLineColor: '#e5e5e5',
70
73
  treeIconColor: '#47e'
71
74
  }],
75
+ followThemes: {
76
+ '@primary-color': ['treeIconColor'],
77
+ '@font-size-base': ['fontSize', 'treeFontSize']
78
+ },
72
79
  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 }",
73
80
  components: [{
74
81
  id: 'Tree_371619',
@@ -34,6 +34,7 @@ export declare const Accordion: {
34
34
  type: string;
35
35
  label: string;
36
36
  groupsName: string;
37
+ followTheme: string;
37
38
  };
38
39
  lineColor: {
39
40
  type: string;
@@ -96,6 +97,9 @@ export declare const Accordion: {
96
97
  borderColor: string;
97
98
  borderRadius: string;
98
99
  }[];
100
+ followThemes: {
101
+ '@primary-color': string[];
102
+ };
99
103
  tpl: string;
100
104
  components: ({
101
105
  id: string;
@@ -51,7 +51,8 @@ export var Accordion = {
51
51
  titleColor: {
52
52
  type: 'color',
53
53
  label: '装饰条颜色',
54
- groupsName: '标题'
54
+ groupsName: '标题',
55
+ followTheme: '@primary-color'
55
56
  },
56
57
  lineColor: {
57
58
  type: 'color',
@@ -114,6 +115,9 @@ export var Accordion = {
114
115
  borderColor: '#DDD',
115
116
  borderRadius: '4px'
116
117
  }],
118
+ followThemes: {
119
+ '@primary-color': ['titleColor']
120
+ },
117
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 }\n .lcdp-accordion-header-default-icon{\n height: tagSize;\n background: titleColor;\n margin-right: tagMargin;\n }\n .adm-list-item-content{\n border-color: lineColor;\n }\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 ",
118
122
  components: [{
119
123
  id: 'Accordion_960849',
@@ -35,6 +35,7 @@ export declare const Card: {
35
35
  type: string;
36
36
  label: string;
37
37
  groupsName: string;
38
+ followTheme: string;
38
39
  };
39
40
  lineColor: {
40
41
  type: string;
@@ -108,6 +109,9 @@ export declare const Card: {
108
109
  borderColor: string;
109
110
  borderRadius: string;
110
111
  }[];
112
+ followThemes: {
113
+ '@primary-color': string[];
114
+ };
111
115
  tpl: string;
112
116
  components: ({
113
117
  id: string;
@@ -52,7 +52,8 @@ export var Card = {
52
52
  titleColor: {
53
53
  type: 'color',
54
54
  label: '装饰条颜色',
55
- groupsName: '标题'
55
+ groupsName: '标题',
56
+ followTheme: '@primary-color'
56
57
  },
57
58
  lineColor: {
58
59
  type: 'color',
@@ -126,6 +127,9 @@ export var Card = {
126
127
  borderColor: 'rgba(0,0,0,0)',
127
128
  borderRadius: '4px'
128
129
  }],
130
+ followThemes: {
131
+ '@primary-color': ['titleColor']
132
+ },
129
133
  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 !important;\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 }\n .lcdp-h5-card-icon svg{\n color: titleColor;\n width: tagSize;\n height: tagSize;\n }\n .lcdp-h5-card-icon{\n margin-right: tagMargin;\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 ",
130
134
  components: [{
131
135
  id: 'Card_4143673',
@@ -26,6 +26,7 @@ export declare const FilterItems: {
26
26
  type: string;
27
27
  label: string;
28
28
  groupsName: string;
29
+ followTheme: string;
29
30
  };
30
31
  lineHeight: {
31
32
  type: string;
@@ -72,6 +73,9 @@ export declare const FilterItems: {
72
73
  iconSize: string;
73
74
  iconCloseColor: string;
74
75
  }[];
76
+ followThemes: {
77
+ '@font-size-base': string[];
78
+ };
75
79
  tpl: string;
76
80
  components: {
77
81
  id: string;
@@ -25,7 +25,8 @@ export var FilterItems = {
25
25
  fontSize: {
26
26
  type: 'px',
27
27
  label: '文本尺寸',
28
- groupsName: '文字'
28
+ groupsName: '文字',
29
+ followTheme: '@font-size-base'
29
30
  },
30
31
  lineHeight: {
31
32
  type: 'px',
@@ -90,6 +91,9 @@ export var FilterItems = {
90
91
  iconSize: '16px',
91
92
  iconCloseColor: 'rgba(0,0,0,0.3)'
92
93
  }],
94
+ followThemes: {
95
+ '@font-size-base': ['fontSize']
96
+ },
93
97
  tpl: ".use-app-filteritems{\n .alita-filter-item-content{\n background: backgroundColor;\n font-size: fontSize;\n border-radius: borderRadius;\n border: 1px solid borderColor;\n }\n .alita-filter-item-active-text{\n color: textColor;\n line-height: lineHeight;\n font-weight: fontWeight;\n }\n .alita-filter-item-noraml-icon{\n width: iconSize;\n height: iconSize;\n overflow: hidden;\n }\n .alita-filter-item-icon-up{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .alita-filter-item-icon-up::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%3E%E7%BC%96%E7%BB%84%206%3C%2Ftitle%3E%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22%E5%85%B6%E4%BD%99%E7%BB%84%E4%BB%B6%22%20transform%3D%22translate%28-171.000000%2C%20-3340.000000%29%22%3E%3Cg%20id%3D%22%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9ANavigationBa%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%2836.000000%2C%201199.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%2851.000000%2C%202131.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%2884.000000%2C%2010.000000%29%22%3E%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2216%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22M13.4723603%2C5.99735754%20L8.67496913%2C11.2434071%20C8.53163306%2C11.4065089%208.32501122%2C11.5%208.10787665%2C11.5%20C7.89072486%2C11.5%207.68408225%2C11.4065218%207.54073483%2C11.2434071%20L2.74334363%2C5.99735754%20C2.50915215%2C5.75000397%202.43677915%2C5.38947121%202.55781612%2C5.07103987%20C2.67885308%2C4.75260854%202.97097257%2C4.53024691%203.31046078%2C4.5%20L12.9013205%2C4.5%20C13.2421162%2C4.52895167%2013.5355186%2C4.74998106%2013.6565803%2C5.06974464%20C13.7789495%2C5.38948354%2013.7065888%2C5.74867172%2013.4723603%2C5.99735754%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23BFBFBF%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%20%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n transform: translateX(-100%);\n background-size: 100%;\n filter: drop-shadow(iconSize 0 iconCloseColor);\n }\n .alita-filter-item-icon-down{\n background-image: none;\n width: iconSize;\n height: iconSize;\n position: relative;\n }\n .alita-filter-item-icon-down::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: iconSize;\n height: iconSize;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%3E%E7%BC%96%E7%BB%84%206%3C%2Ftitle%3E%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22%E5%85%B6%E4%BD%99%E7%BB%84%E4%BB%B6%22%20transform%3D%22translate%28-295.000000%2C%20-3340.000000%29%22%3E%3Cg%20id%3D%22%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9ANavigationBa%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%2836.000000%2C%201199.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%28175.000000%2C%202131.000000%29%22%3E%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%2892.000000%2C%2018.000000%29%20scale%281%2C%20-1%29%20translate%28-92.000000%2C%20-18.000000%29%20translate%2884.000000%2C%2010.000000%29%22%3E%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%231677ff%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2216%22%20height%3D%2216%22%3E%3C%2Frect%3E%3Cpath%20d%3D%22M13.4723603%2C5.99735754%20L8.67496913%2C11.2434071%20C8.53163306%2C11.4065089%208.32501122%2C11.5%208.10787665%2C11.5%20C7.89072486%2C11.5%207.68408225%2C11.4065218%207.54073483%2C11.2434071%20L2.74334363%2C5.99735754%20C2.50915215%2C5.75000397%202.43677915%2C5.38947121%202.55781612%2C5.07103987%20C2.67885308%2C4.75260854%202.97097257%2C4.53024691%203.31046078%2C4.5%20L12.9013205%2C4.5%20C13.2421162%2C4.52895167%2013.5355186%2C4.74998106%2013.6565803%2C5.06974464%20C13.7789495%2C5.38948354%2013.7065888%2C5.74867172%2013.4723603%2C5.99735754%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%231677ff%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-repeat: round;\n background-size: 100%;\n transform: translateX(-100%);\n filter: drop-shadow(iconSize 0 iconColor);\n}\n }\n \n",
94
98
  components: [{
95
99
  id: 'FilterItems_7957386',
@@ -40,6 +40,7 @@ export declare const SearchView: {
40
40
  type: string;
41
41
  label: string;
42
42
  groupsName: string;
43
+ followTheme: string;
43
44
  };
44
45
  fontWeight: {
45
46
  type: string;
@@ -83,6 +84,9 @@ export declare const SearchView: {
83
84
  sBorderColor: string;
84
85
  sBorderRadius: string;
85
86
  }[];
87
+ followThemes: {
88
+ '@font-size-base': string[];
89
+ };
86
90
  tpl: string;
87
91
  components: {
88
92
  id: string;
@@ -40,7 +40,8 @@ export var SearchView = {
40
40
  fontSize: {
41
41
  type: 'px',
42
42
  label: '文本尺寸',
43
- groupsName: '搜索框'
43
+ groupsName: '搜索框',
44
+ followTheme: '@font-size-base'
44
45
  },
45
46
  fontWeight: {
46
47
  type: 'select',
@@ -103,6 +104,9 @@ export var SearchView = {
103
104
  sBorderColor: 'rgba(0,0,0,0)',
104
105
  sBorderRadius: '18px'
105
106
  }],
107
+ followThemes: {
108
+ '@font-size-base': ['fontSize']
109
+ },
106
110
  tpl: "\n .alita-search-view-wrap{\n --adm-color-background: backgroundColor;\n padding: paddingValue;\n border: 1PX solid borderColor;\n border-radius: borderRadius;\n }\n .alita-search-bar-input{\n background-color: sBackgroundColor;\ncolor: textColor;\nfont-size: fontSize;\nfont-weight: fontWeight;\npadding: sPaddingValue;\nborder-radius: sBorderRadius;\nborder: 1PX solid sBorderColor;\n }\n .alita-search-bar-search{\n width: iconSize;\n height: iconSize;\n }",
107
111
  components: [{
108
112
  id: 'SearchView_197467',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/theme-utils",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",