@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
@@ -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',
@@ -20,6 +20,7 @@ export declare const Button: {
20
20
  type: string;
21
21
  label: string;
22
22
  groupsName: string;
23
+ followTheme: string;
23
24
  };
24
25
  borderColor: {
25
26
  type: string;
@@ -55,6 +56,9 @@ export declare const Button: {
55
56
  paddingValue: string;
56
57
  marginValue: string;
57
58
  }[];
59
+ followThemes: {
60
+ '@primary-color': string[];
61
+ };
58
62
  tpl: string;
59
63
  components: ({
60
64
  id: string;
@@ -19,7 +19,8 @@ export var Button = {
19
19
  backgroundColor: {
20
20
  type: 'color',
21
21
  label: '主题颜色',
22
- groupsName: '颜色'
22
+ groupsName: '颜色',
23
+ followTheme: '@primary-color'
23
24
  },
24
25
  borderColor: {
25
26
  type: 'color',
@@ -55,6 +56,9 @@ export var Button = {
55
56
  paddingValue: '7px 12px 7px 12px',
56
57
  marginValue: '0px'
57
58
  }],
59
+ followThemes: {
60
+ '@primary-color': ['backgroundColor']
61
+ },
58
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 ",
59
63
  components: [{
60
64
  id: 'Button_5647878',
@@ -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',
@@ -5,11 +5,13 @@ export declare const DCheckbox: {
5
5
  type: string;
6
6
  label: string;
7
7
  groupsName: string;
8
+ followTheme: string;
8
9
  };
9
10
  selectBorderRadius: {
10
11
  type: string;
11
12
  label: string;
12
13
  groupsName: string;
14
+ followTheme: string;
13
15
  };
14
16
  itemBgColor: {
15
17
  type: string;
@@ -123,6 +125,9 @@ export declare const DCheckbox: {
123
125
  itemBorderRadius: string;
124
126
  itemBgColor: string;
125
127
  }[];
128
+ followThemes: {
129
+ '@primary-color': string[];
130
+ };
126
131
  tpl: string;
127
132
  components: {
128
133
  id: string;
@@ -4,12 +4,14 @@ export var DCheckbox = {
4
4
  selectBgColor: {
5
5
  type: 'color',
6
6
  label: '选中背景颜色',
7
- groupsName: '背景颜色'
7
+ groupsName: '背景颜色',
8
+ followTheme: '@primary-color'
8
9
  },
9
10
  selectBorderRadius: {
10
11
  type: 'color',
11
12
  label: '选中边框颜色',
12
- groupsName: '边框'
13
+ groupsName: '边框',
14
+ followTheme: '@primary-color'
13
15
  },
14
16
  itemBgColor: {
15
17
  type: 'color',
@@ -165,6 +167,9 @@ export var DCheckbox = {
165
167
  itemBorderRadius: '#e5e5e5',
166
168
  itemBgColor: 'rgba(0,0,0,0)'
167
169
  }],
170
+ followThemes: {
171
+ '@primary-color': ['selectBorderRadius', 'selectBgColor']
172
+ },
168
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 }",
169
174
  components: [{
170
175
  id: 'DForm_333712',
@@ -11,6 +11,7 @@ export declare const DformFile: {
11
11
  type: string;
12
12
  label: string;
13
13
  groupsName: string;
14
+ followTheme: string;
14
15
  };
15
16
  btnBorderRadius: {
16
17
  type: string;
@@ -62,6 +63,9 @@ export declare const DformFile: {
62
63
  btnIconColor: string;
63
64
  btnBorderRadius: string;
64
65
  }[];
66
+ followThemes: {
67
+ '@primary-color': string[];
68
+ };
65
69
  tpl: string;
66
70
  components: {
67
71
  id: string;
@@ -10,7 +10,8 @@ export var DformFile = {
10
10
  btnIconColor: {
11
11
  type: 'color',
12
12
  label: '上传按钮标题颜色',
13
- groupsName: '背景颜色'
13
+ groupsName: '背景颜色',
14
+ followTheme: '@primary-color'
14
15
  },
15
16
  btnBorderRadius: {
16
17
  type: 'px',
@@ -80,6 +81,9 @@ export var DformFile = {
80
81
  btnIconColor: '#108ee9',
81
82
  btnBorderRadius: '100px'
82
83
  }],
84
+ followThemes: {
85
+ '@primary-color': ['btnIconColor']
86
+ },
83
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 }",
84
88
  components: [{
85
89
  id: 'DForm_333712',
@@ -5,11 +5,13 @@ export declare const DformRadio: {
5
5
  type: string;
6
6
  label: string;
7
7
  groupsName: string;
8
+ followTheme: string;
8
9
  };
9
10
  selectBorderRadius: {
10
11
  type: string;
11
12
  label: string;
12
13
  groupsName: string;
14
+ followTheme: string;
13
15
  };
14
16
  itemBgColor: {
15
17
  type: string;
@@ -123,6 +125,9 @@ export declare const DformRadio: {
123
125
  itemBorderRadius: string;
124
126
  itemBgColor: string;
125
127
  }[];
128
+ followThemes: {
129
+ '@primary-color': string[];
130
+ };
126
131
  tpl: string;
127
132
  components: {
128
133
  id: string;
@@ -4,12 +4,14 @@ export var DformRadio = {
4
4
  selectBgColor: {
5
5
  type: 'color',
6
6
  label: '选中背景颜色',
7
- groupsName: '背景颜色'
7
+ groupsName: '背景颜色',
8
+ followTheme: '@primary-color'
8
9
  },
9
10
  selectBorderRadius: {
10
11
  type: 'color',
11
12
  label: '选中边框颜色',
12
- groupsName: '边框'
13
+ groupsName: '边框',
14
+ followTheme: '@primary-color'
13
15
  },
14
16
  itemBgColor: {
15
17
  type: 'color',
@@ -165,6 +167,9 @@ export var DformRadio = {
165
167
  itemBorderRadius: '#e5e5e5',
166
168
  itemBgColor: 'rgba(0,0,0,0)'
167
169
  }],
170
+ followThemes: {
171
+ '@primary-color': ['selectBorderRadius', 'selectBgColor']
172
+ },
168
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 ",
169
174
  components: [{
170
175
  id: 'DForm_333712',
@@ -6,6 +6,7 @@ export declare const DformSwitch: {
6
6
  type: string;
7
7
  label: string;
8
8
  groupsName: string;
9
+ followTheme: string;
9
10
  };
10
11
  closeColor: {
11
12
  type: string;
@@ -64,6 +65,9 @@ export declare const DformSwitch: {
64
65
  openColor: string;
65
66
  closeColor: string;
66
67
  }[];
68
+ followThemes: {
69
+ '@primary-color': string[];
70
+ };
67
71
  tpl: string;
68
72
  components: {
69
73
  id: string;
@@ -5,7 +5,8 @@ export var DformSwitch = {
5
5
  openColor: {
6
6
  type: 'color',
7
7
  label: '开启颜色',
8
- groupsName: '文字'
8
+ groupsName: '文字',
9
+ followTheme: '@primary-color'
9
10
  },
10
11
  closeColor: {
11
12
  type: 'color',
@@ -82,6 +83,9 @@ export var DformSwitch = {
82
83
  openColor: '#108ee9',
83
84
  closeColor: '#ddd'
84
85
  }],
86
+ followThemes: {
87
+ '@primary-color': ['openColor']
88
+ },
85
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 ",
86
90
  components: [{
87
91
  id: 'DForm_333712',
@@ -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',
@@ -5,6 +5,7 @@ export declare const ALink: {
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 ALink: {
13
14
  defaultValue: {
14
15
  textColor: string;
15
16
  }[];
17
+ followThemes: {
18
+ '@color-link': string[];
19
+ };
16
20
  tpl: string;
17
21
  components: {
18
22
  id: string;
@@ -4,7 +4,8 @@ export var ALink = {
4
4
  textColor: {
5
5
  type: 'color',
6
6
  label: '文本颜色',
7
- groupsName: '文字'
7
+ groupsName: '文字',
8
+ followTheme: '@color-link'
8
9
  }
9
10
  },
10
11
  groupsName: '基础',
@@ -13,7 +14,10 @@ export var ALink = {
13
14
  defaultValue: [{
14
15
  textColor: '#108ee9'
15
16
  }],
16
- tpl: "\n a{\n color: textColor;\n }",
17
+ followThemes: {
18
+ '@color-link': ['textColor']
19
+ },
20
+ tpl: "\n a {\n color: textColor;\n }\n a:hover {\n color: textColor;\n opacity: 0.6;\n }",
17
21
  components: [{
18
22
  id: 'ALink_414643',
19
23
  label: '超链接',
@@ -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;