@lingxiteam/theme-utils 0.1.3

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