@lingxiteam/theme-utils 0.5.3 → 0.5.4

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 (127) hide show
  1. package/dist/config/Button.d.ts +113 -0
  2. package/dist/config/Button.js +277 -0
  3. package/dist/config/Card.d.ts +144 -0
  4. package/dist/config/Card.js +162 -0
  5. package/dist/config/Cascader.d.ts +196 -0
  6. package/dist/config/Cascader.js +225 -0
  7. package/dist/config/Checkbox.d.ts +162 -0
  8. package/dist/config/Checkbox.js +178 -0
  9. package/dist/config/CheckboxGroup.d.ts +184 -0
  10. package/dist/config/CheckboxGroup.js +192 -0
  11. package/dist/config/Collapse.d.ts +186 -0
  12. package/dist/config/Collapse.js +330 -0
  13. package/dist/config/Container.d.ts +275 -0
  14. package/dist/config/Container.js +301 -0
  15. package/dist/config/DatePicker.d.ts +179 -0
  16. package/dist/config/DatePicker.js +179 -0
  17. package/dist/config/Description.d.ts +106 -0
  18. package/dist/config/Description.js +126 -0
  19. package/dist/config/Divider.d.ts +61 -0
  20. package/dist/config/Divider.js +61 -0
  21. package/dist/config/Form.d.ts +3071 -0
  22. package/dist/config/Form.js +1358 -0
  23. package/dist/config/Icon.d.ts +55 -0
  24. package/dist/config/Icon.js +55 -0
  25. package/dist/config/Input.d.ts +159 -0
  26. package/dist/config/Input.js +159 -0
  27. package/dist/config/InputNumber.d.ts +154 -0
  28. package/dist/config/InputNumber.js +154 -0
  29. package/dist/config/Link.d.ts +128 -0
  30. package/dist/config/Link.js +120 -0
  31. package/dist/config/MultipleSelect.d.ts +167 -0
  32. package/dist/config/MultipleSelect.js +175 -0
  33. package/dist/config/Radio.d.ts +239 -0
  34. package/dist/config/Radio.js +261 -0
  35. package/dist/config/RangePicker.d.ts +182 -0
  36. package/dist/config/RangePicker.js +182 -0
  37. package/dist/config/Select.d.ts +190 -0
  38. package/dist/config/Select.js +198 -0
  39. package/dist/config/StdUpload.d.ts +197 -0
  40. package/dist/config/StdUpload.js +211 -0
  41. package/dist/config/Switch.d.ts +141 -0
  42. package/dist/config/Switch.js +151 -0
  43. package/dist/config/Table.d.ts +482 -0
  44. package/dist/config/Table.js +560 -0
  45. package/dist/config/Tabs.d.ts +230 -0
  46. package/dist/config/Tabs.js +970 -0
  47. package/dist/config/Tag.d.ts +173 -0
  48. package/dist/config/Tag.js +548 -0
  49. package/dist/config/Text.d.ts +34 -0
  50. package/dist/config/Text.js +34 -0
  51. package/dist/config/TextArea.d.ts +151 -0
  52. package/dist/config/TextArea.js +151 -0
  53. package/dist/config/TimePicker.d.ts +180 -0
  54. package/dist/config/TimePicker.js +180 -0
  55. package/dist/config/Tree.d.ts +151 -0
  56. package/dist/config/Tree.js +195 -0
  57. package/dist/config/TreeSelect.d.ts +197 -0
  58. package/dist/config/TreeSelect.js +213 -0
  59. package/dist/css.d.ts +6 -0
  60. package/dist/css.js +126 -0
  61. package/dist/demo.d.ts +5 -0
  62. package/dist/demo.js +79 -0
  63. package/dist/h5config/Accordion.d.ts +410 -0
  64. package/dist/h5config/Accordion.js +548 -0
  65. package/dist/h5config/Button.d.ts +142 -0
  66. package/dist/h5config/Button.js +253 -0
  67. package/dist/h5config/Card.d.ts +275 -0
  68. package/dist/h5config/Card.js +535 -0
  69. package/dist/h5config/DAddressPicker.d.ts +188 -0
  70. package/dist/h5config/DAddressPicker.js +230 -0
  71. package/dist/h5config/DCheckbox.d.ts +202 -0
  72. package/dist/h5config/DCheckbox.js +248 -0
  73. package/dist/h5config/DForm.d.ts +1597 -0
  74. package/dist/h5config/DForm.js +932 -0
  75. package/dist/h5config/DMultiplePicker.d.ts +189 -0
  76. package/dist/h5config/DMultiplePicker.js +235 -0
  77. package/dist/h5config/DformDate.d.ts +191 -0
  78. package/dist/h5config/DformDate.js +233 -0
  79. package/dist/h5config/DformFile.d.ts +277 -0
  80. package/dist/h5config/DformFile.js +292 -0
  81. package/dist/h5config/DformImagePicker.d.ts +138 -0
  82. package/dist/h5config/DformImagePicker.js +156 -0
  83. package/dist/h5config/DformInput.d.ts +189 -0
  84. package/dist/h5config/DformInput.js +231 -0
  85. package/dist/h5config/DformInputNumber.d.ts +173 -0
  86. package/dist/h5config/DformInputNumber.js +215 -0
  87. package/dist/h5config/DformPicker.d.ts +190 -0
  88. package/dist/h5config/DformPicker.js +236 -0
  89. package/dist/h5config/DformRadio.d.ts +210 -0
  90. package/dist/h5config/DformRadio.js +256 -0
  91. package/dist/h5config/DformRangePicker.d.ts +195 -0
  92. package/dist/h5config/DformRangePicker.js +237 -0
  93. package/dist/h5config/DformSelect.d.ts +198 -0
  94. package/dist/h5config/DformSelect.js +262 -0
  95. package/dist/h5config/DformSwitch.d.ts +145 -0
  96. package/dist/h5config/DformSwitch.js +163 -0
  97. package/dist/h5config/DformTextArea.d.ts +184 -0
  98. package/dist/h5config/DformTextArea.js +226 -0
  99. package/dist/h5config/Divider.d.ts +53 -0
  100. package/dist/h5config/Divider.js +90 -0
  101. package/dist/h5config/FilterItems.d.ts +154 -0
  102. package/dist/h5config/FilterItems.js +204 -0
  103. package/dist/h5config/Grid.d.ts +235 -0
  104. package/dist/h5config/Grid.js +278 -0
  105. package/dist/h5config/Icon.d.ts +54 -0
  106. package/dist/h5config/Icon.js +54 -0
  107. package/dist/h5config/Link.d.ts +51 -0
  108. package/dist/h5config/Link.js +51 -0
  109. package/dist/h5config/LoadMore.d.ts +527 -0
  110. package/dist/h5config/LoadMore.js +940 -0
  111. package/dist/h5config/NoticeBarPlus.d.ts +111 -0
  112. package/dist/h5config/NoticeBarPlus.js +141 -0
  113. package/dist/h5config/SearchView.d.ts +135 -0
  114. package/dist/h5config/SearchView.js +177 -0
  115. package/dist/h5config/StaticTabs.d.ts +121 -0
  116. package/dist/h5config/StaticTabs.js +180 -0
  117. package/dist/h5config/Table.d.ts +197 -0
  118. package/dist/h5config/Table.js +589 -0
  119. package/dist/index.d.ts +4 -0
  120. package/dist/index.js +4 -0
  121. package/dist/lx-mobile.d.ts +23 -0
  122. package/dist/lx-mobile.js +174 -0
  123. package/dist/lx.d.ts +24 -0
  124. package/dist/lx.js +139 -0
  125. package/dist/utils.d.ts +12 -0
  126. package/dist/utils.js +67 -0
  127. package/package.json +1 -1
@@ -0,0 +1,253 @@
1
+ export var Button = {
2
+ type: 'Button',
3
+ variable: {
4
+ backgroundColor: {
5
+ type: 'color',
6
+ label: '填充颜色',
7
+ groupsName: '背景',
8
+ followTheme: '@brand-primary'
9
+ },
10
+ textColor: {
11
+ type: 'color',
12
+ label: '文本颜色',
13
+ groupsName: '文字',
14
+ followTheme: '@color-text-base'
15
+ },
16
+ fontSize: {
17
+ type: 'px',
18
+ label: '文本尺寸',
19
+ groupsName: '文字'
20
+ },
21
+ lineHeight: {
22
+ type: 'px',
23
+ label: '文本行高',
24
+ groupsName: '文字'
25
+ },
26
+ paddingValue: {
27
+ type: 'marginInput',
28
+ label: '内边距',
29
+ groupsName: '布局'
30
+ },
31
+ marginValue: {
32
+ type: 'marginInput',
33
+ label: '外边距',
34
+ groupsName: '布局'
35
+ },
36
+ borderRadius: {
37
+ type: 'px',
38
+ label: '圆角',
39
+ groupsName: '边框'
40
+ },
41
+ borderColor: {
42
+ type: 'color',
43
+ label: '颜色',
44
+ groupsName: '边框',
45
+ followTheme: '@border-color-base'
46
+ }
47
+ },
48
+ groupsName: '通用',
49
+ icon: 'icon-ico-comp-app-Button',
50
+ title: '按钮',
51
+ defaultValue: [{
52
+ textColor: '#1c242e',
53
+ lineHeight: '140%',
54
+ fontSize: '18px',
55
+ backgroundColor: '#108ee9',
56
+ borderColor: '#E5E5E5',
57
+ borderRadius: '4px',
58
+ paddingValue: '7px 12px 7px 12px',
59
+ marginValue: '0px'
60
+ }],
61
+ followThemes: {
62
+ '@brand-primary': ['backgroundColor'],
63
+ '@border-color-base': ['borderColor'],
64
+ '@color-text-base': []
65
+ },
66
+ 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: textColor;\n }\n .adm-button-primary{\n --color: backgroundColor;\n }\n .lcdp-button-type-link{\n color: backgroundColor;\n }\n ",
67
+ components: [{
68
+ id: 'Button_5647878',
69
+ label: '按钮',
70
+ compName: 'Button',
71
+ type: 'Button',
72
+ compType: 1,
73
+ compLib: '@/components',
74
+ props: {
75
+ name: '按钮',
76
+ btnIcon: 'none',
77
+ type: 'primary',
78
+ size: 'large',
79
+ loading: false,
80
+ mImagePostion: 'left',
81
+ shape: 'default',
82
+ status: '1',
83
+ children: '按钮'
84
+ },
85
+ style: {
86
+ textAlign: 'center'
87
+ },
88
+ isContainer: false,
89
+ isBusiObjContainer: false,
90
+ cmdgroup: ['basic'],
91
+ platform: 'h5',
92
+ description: '',
93
+ image: '',
94
+ groupsName: '基础',
95
+ transform: {
96
+ value: 'children'
97
+ },
98
+ engineApi: ['downloadFileByFileCode', 'getMaterialFile'],
99
+ icon: 'Button',
100
+ setEvents: [],
101
+ isLabelDropBoxChild: false,
102
+ components: [],
103
+ path: ['769713', 'View_769713_1']
104
+ }, {
105
+ id: 'Button_404175',
106
+ label: '按钮',
107
+ compName: 'Button',
108
+ type: 'Button',
109
+ compType: 1,
110
+ compLib: '@/components',
111
+ props: {
112
+ name: '按钮',
113
+ btnIcon: false,
114
+ type: 'default',
115
+ size: 'large',
116
+ loading: false,
117
+ mImagePostion: 'left',
118
+ shape: 'default',
119
+ status: '1',
120
+ children: '按钮'
121
+ },
122
+ style: {
123
+ textAlign: 'center'
124
+ },
125
+ isContainer: false,
126
+ isBusiObjContainer: false,
127
+ cmdgroup: ['basic'],
128
+ platform: 'h5',
129
+ description: '',
130
+ image: '',
131
+ groupsName: '基础',
132
+ transform: {
133
+ value: 'children'
134
+ },
135
+ engineApi: ['downloadFileByFileCode', 'getMaterialFile'],
136
+ icon: 'Button',
137
+ setEvents: [],
138
+ isLabelDropBoxChild: false,
139
+ components: [],
140
+ path: ['769713', 'View_769713_1']
141
+ }, {
142
+ id: 'Button_9353077',
143
+ label: '按钮',
144
+ compName: 'Button',
145
+ type: 'Button',
146
+ compType: 1,
147
+ compLib: '@/components',
148
+ props: {
149
+ name: '按钮',
150
+ btnIcon: false,
151
+ type: 'dashed',
152
+ size: 'large',
153
+ loading: false,
154
+ mImagePostion: 'left',
155
+ shape: 'default',
156
+ status: '1',
157
+ children: '按钮'
158
+ },
159
+ style: {
160
+ textAlign: 'center'
161
+ },
162
+ isContainer: false,
163
+ isBusiObjContainer: false,
164
+ cmdgroup: ['basic'],
165
+ platform: 'h5',
166
+ description: '',
167
+ image: '',
168
+ groupsName: '基础',
169
+ transform: {
170
+ value: 'children'
171
+ },
172
+ engineApi: ['downloadFileByFileCode', 'getMaterialFile'],
173
+ icon: 'Button',
174
+ setEvents: [],
175
+ isLabelDropBoxChild: false,
176
+ components: [],
177
+ path: ['769713', 'View_769713_1']
178
+ }, {
179
+ id: 'Button_764117',
180
+ label: '按钮',
181
+ compName: 'Button',
182
+ type: 'Button',
183
+ compType: 1,
184
+ compLib: '@/components',
185
+ props: {
186
+ name: '按钮',
187
+ btnIcon: false,
188
+ type: 'text',
189
+ size: 'large',
190
+ loading: false,
191
+ mImagePostion: 'left',
192
+ shape: 'default',
193
+ status: '1',
194
+ children: '按钮'
195
+ },
196
+ style: {
197
+ textAlign: 'center'
198
+ },
199
+ isContainer: false,
200
+ isBusiObjContainer: false,
201
+ cmdgroup: ['basic'],
202
+ platform: 'h5',
203
+ description: '',
204
+ image: '',
205
+ groupsName: '基础',
206
+ transform: {
207
+ value: 'children'
208
+ },
209
+ engineApi: ['downloadFileByFileCode', 'getMaterialFile'],
210
+ icon: 'Button',
211
+ setEvents: [],
212
+ isLabelDropBoxChild: false,
213
+ components: [],
214
+ path: ['769713', 'View_769713_1']
215
+ }, {
216
+ id: 'Button_637341',
217
+ label: '按钮',
218
+ compName: 'Button',
219
+ type: 'Button',
220
+ compType: 1,
221
+ compLib: '@/components',
222
+ props: {
223
+ name: '按钮',
224
+ btnIcon: false,
225
+ type: 'link',
226
+ size: 'large',
227
+ loading: false,
228
+ mImagePostion: 'left',
229
+ shape: 'default',
230
+ status: '1',
231
+ children: '按钮'
232
+ },
233
+ style: {
234
+ textAlign: 'center'
235
+ },
236
+ isContainer: false,
237
+ isBusiObjContainer: false,
238
+ cmdgroup: ['basic'],
239
+ platform: 'h5',
240
+ description: '',
241
+ image: '',
242
+ groupsName: '基础',
243
+ transform: {
244
+ value: 'children'
245
+ },
246
+ engineApi: ['downloadFileByFileCode', 'getMaterialFile'],
247
+ icon: 'Button',
248
+ setEvents: [],
249
+ isLabelDropBoxChild: false,
250
+ components: [],
251
+ path: ['769713', 'View_769713_1']
252
+ }]
253
+ };
@@ -0,0 +1,275 @@
1
+ export declare const Card: {
2
+ type: string;
3
+ hasPrefixClass: boolean;
4
+ variable: {
5
+ backgroundColor: {
6
+ type: string;
7
+ label: string;
8
+ groupsName: string;
9
+ };
10
+ bodyBgColor: {
11
+ type: string;
12
+ label: string;
13
+ groupsName: string;
14
+ };
15
+ footBgColor: {
16
+ type: string;
17
+ label: string;
18
+ groupsName: string;
19
+ };
20
+ textColor: {
21
+ type: string;
22
+ label: string;
23
+ followTheme: string;
24
+ groupsName: string;
25
+ };
26
+ fontSize: {
27
+ type: string;
28
+ label: string;
29
+ groupsName: string;
30
+ };
31
+ lineHeight: {
32
+ type: string;
33
+ label: string;
34
+ groupsName: string;
35
+ options: {
36
+ label: string;
37
+ value: string;
38
+ }[];
39
+ };
40
+ fontWeight: {
41
+ type: string;
42
+ label: string;
43
+ groupsName: string;
44
+ options: {
45
+ title: string;
46
+ value: string;
47
+ }[];
48
+ };
49
+ borderRadius: {
50
+ type: string;
51
+ label: string;
52
+ groupsName: string;
53
+ };
54
+ borderColor: {
55
+ type: string;
56
+ label: string;
57
+ groupsName: string;
58
+ followTheme: string;
59
+ };
60
+ titleColor: {
61
+ type: string;
62
+ label: string;
63
+ groupsName: string;
64
+ followTheme: string;
65
+ };
66
+ tagSize: {
67
+ type: string;
68
+ label: string;
69
+ groupsName: string;
70
+ };
71
+ tagMargin: {
72
+ type: string;
73
+ label: string;
74
+ groupsName: string;
75
+ };
76
+ arrowColor: {
77
+ type: string;
78
+ label: string;
79
+ groupsName: string;
80
+ };
81
+ arrowSize: {
82
+ type: string;
83
+ label: string;
84
+ groupsName: string;
85
+ };
86
+ lineColor: {
87
+ type: string;
88
+ label: string;
89
+ groupsName: string;
90
+ followTheme: string;
91
+ };
92
+ bodyLineColor: {
93
+ type: string;
94
+ label: string;
95
+ groupsName: string;
96
+ followTheme: string;
97
+ };
98
+ };
99
+ groupsName: string;
100
+ icon: string;
101
+ title: string;
102
+ defaultValue: {
103
+ textColor: string;
104
+ lineHeight: string;
105
+ fontSize: string;
106
+ fontWeight: string;
107
+ backgroundColor: string;
108
+ titleColor: string;
109
+ lineColor: string;
110
+ tagSize: string;
111
+ tagMargin: string;
112
+ arrowColor: string;
113
+ arrowSize: string;
114
+ bodyBgColor: string;
115
+ bodyLineColor: string;
116
+ footBgColor: string;
117
+ borderColor: string;
118
+ borderRadius: string;
119
+ }[];
120
+ followThemes: {
121
+ '@brand-primary': string[];
122
+ '@color-text-base': never[];
123
+ '@border-color-base': string[];
124
+ };
125
+ tpl: string;
126
+ components: ({
127
+ id: string;
128
+ label: string;
129
+ compName: string;
130
+ type: string;
131
+ compType: number;
132
+ compLib: string;
133
+ props: {
134
+ name: string;
135
+ showHeader: boolean;
136
+ postfixIcon: {
137
+ type: string;
138
+ theme: string;
139
+ fontAddress: string;
140
+ isIconFont: boolean;
141
+ iconFileInfo: {};
142
+ };
143
+ postfixIconPosition: string;
144
+ showContent: boolean;
145
+ showFooter: boolean;
146
+ status: string;
147
+ cardType: string;
148
+ title: string;
149
+ headerType: string;
150
+ postFixFontSize: number;
151
+ iconPosition: string;
152
+ $$ISNEW: boolean;
153
+ headerIcon?: undefined;
154
+ };
155
+ style: {
156
+ padding: string;
157
+ margin: string;
158
+ width: string;
159
+ height: string;
160
+ };
161
+ isContainer: boolean;
162
+ isBusiObjContainer: boolean;
163
+ cmdgroup: string[];
164
+ platform: string;
165
+ description: string;
166
+ image: string;
167
+ groupsName: string;
168
+ icon: string;
169
+ setEvents: never[];
170
+ isLabelDropBoxChild: boolean;
171
+ components: {
172
+ id: string;
173
+ label: string;
174
+ compName: string;
175
+ type: string;
176
+ compType: number;
177
+ compLib: string;
178
+ props: {
179
+ name: string;
180
+ };
181
+ style: {};
182
+ isContainer: boolean;
183
+ isBusiObjContainer: boolean;
184
+ cmdgroup: string[];
185
+ description: string;
186
+ image: string;
187
+ groupsName: string;
188
+ platform: string;
189
+ icon: string;
190
+ deprecated: boolean;
191
+ setEvents: never[];
192
+ isLabelDropBoxChild: boolean;
193
+ components: never[];
194
+ path: string[];
195
+ }[];
196
+ path: string[];
197
+ } | {
198
+ id: string;
199
+ label: string;
200
+ compName: string;
201
+ type: string;
202
+ compType: number;
203
+ compLib: string;
204
+ props: {
205
+ name: string;
206
+ showHeader: boolean;
207
+ postfixIcon: {
208
+ type: string;
209
+ theme: string;
210
+ fontAddress: string;
211
+ isIconFont: boolean;
212
+ iconFileInfo: {};
213
+ };
214
+ postfixIconPosition: string;
215
+ showContent: boolean;
216
+ showFooter: boolean;
217
+ status: string;
218
+ cardType: string;
219
+ title: string;
220
+ headerType: string;
221
+ postFixFontSize: number;
222
+ iconPosition: string;
223
+ $$ISNEW: boolean;
224
+ headerIcon: {
225
+ type: string;
226
+ theme: string;
227
+ fontAddress: string;
228
+ isIconFont: boolean;
229
+ iconFileInfo: {};
230
+ };
231
+ };
232
+ style: {
233
+ padding: string;
234
+ margin: string;
235
+ width: string;
236
+ height: string;
237
+ };
238
+ isContainer: boolean;
239
+ isBusiObjContainer: boolean;
240
+ cmdgroup: string[];
241
+ platform: string;
242
+ description: string;
243
+ image: string;
244
+ groupsName: string;
245
+ icon: string;
246
+ setEvents: never[];
247
+ isLabelDropBoxChild: boolean;
248
+ components: {
249
+ id: string;
250
+ label: string;
251
+ compName: string;
252
+ type: string;
253
+ compType: number;
254
+ compLib: string;
255
+ props: {
256
+ name: string;
257
+ };
258
+ style: {};
259
+ isContainer: boolean;
260
+ isBusiObjContainer: boolean;
261
+ cmdgroup: string[];
262
+ description: string;
263
+ image: string;
264
+ groupsName: string;
265
+ platform: string;
266
+ icon: string;
267
+ deprecated: boolean;
268
+ setEvents: never[];
269
+ isLabelDropBoxChild: boolean;
270
+ components: never[];
271
+ path: string[];
272
+ }[];
273
+ path: string[];
274
+ })[];
275
+ };