@dckj-npm/dc-material 0.1.149 → 0.1.152
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.
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +290 -142
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +290 -142
- package/lowcode/address-list/meta.ts +71 -0
- package/lowcode/d-c-slider/meta.ts +11 -168
- package/lowcode/d-c-slider/snippets.ts +2 -1
- package/lowcode/member-card/meta.ts +187 -0
- package/lowcode/message-list/meta.ts +16 -0
- package/lowcode/search-bar/meta.ts +4 -0
- package/lowcode/shopping-cart/meta.ts +494 -0
- package/lowcode/swiper/meta.ts +2 -1
- package/lowcode/tab-message/meta.ts +1 -1
- package/lowcode/user-card/meta.ts +130 -0
- package/lowcode_es/address-list/meta.d.ts +22 -0
- package/lowcode_es/address-list/meta.js +62 -0
- package/lowcode_es/d-c-slider/meta.d.ts +5 -4
- package/lowcode_es/d-c-slider/meta.design.d.ts +1 -0
- package/lowcode_es/d-c-slider/meta.js +12 -152
- package/lowcode_es/d-c-slider/snippets.d.ts +1 -0
- package/lowcode_es/d-c-slider/snippets.js +2 -1
- package/lowcode_es/member-card/meta.d.ts +22 -0
- package/lowcode_es/member-card/meta.js +168 -0
- package/lowcode_es/message-list/meta.js +15 -0
- package/lowcode_es/meta.js +6 -2
- package/lowcode_es/search-bar/meta.js +3 -0
- package/lowcode_es/shopping-cart/meta.d.ts +22 -0
- package/lowcode_es/shopping-cart/meta.js +431 -0
- package/lowcode_es/swiper/meta.js +2 -1
- package/lowcode_es/user-card/meta.d.ts +22 -0
- package/lowcode_es/user-card/meta.js +117 -0
- package/lowcode_lib/address-list/meta.d.ts +22 -0
- package/lowcode_lib/address-list/meta.js +67 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +5 -4
- package/lowcode_lib/d-c-slider/meta.design.d.ts +1 -0
- package/lowcode_lib/d-c-slider/meta.js +12 -152
- package/lowcode_lib/d-c-slider/snippets.d.ts +1 -0
- package/lowcode_lib/d-c-slider/snippets.js +2 -1
- package/lowcode_lib/member-card/meta.d.ts +22 -0
- package/lowcode_lib/member-card/meta.js +173 -0
- package/lowcode_lib/message-list/meta.js +15 -0
- package/lowcode_lib/meta.js +31 -27
- package/lowcode_lib/search-bar/meta.js +3 -0
- package/lowcode_lib/shopping-cart/meta.d.ts +22 -0
- package/lowcode_lib/shopping-cart/meta.js +436 -0
- package/lowcode_lib/swiper/meta.js +2 -1
- package/lowcode_lib/user-card/meta.d.ts +22 -0
- package/lowcode_lib/user-card/meta.js +122 -0
- package/package.json +7 -4
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const ShoppingCartMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "ShoppingCart",
|
|
6
|
+
"title": "ShoppingCart",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@dckj-npm/dc-material",
|
|
12
|
+
"version": "0.1.150",
|
|
13
|
+
"exportName": "ShoppingCart",
|
|
14
|
+
"main": "src/index.tsx",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
name: '数据源绑定',
|
|
22
|
+
setter: {
|
|
23
|
+
componentName: 'SetterFormVariable',
|
|
24
|
+
props: {
|
|
25
|
+
attributes: [
|
|
26
|
+
{
|
|
27
|
+
label: '列表数据',
|
|
28
|
+
value: 'dataList',
|
|
29
|
+
children: [
|
|
30
|
+
{ label: '唯一标识', value: 'key' },
|
|
31
|
+
{ label: '封面图片', value: 'imgUrl' },
|
|
32
|
+
{ label: '商品名称', value: 'productName' },
|
|
33
|
+
{ label: '价格', value: 'productPrice' },
|
|
34
|
+
{
|
|
35
|
+
label: '促销价格',
|
|
36
|
+
value: 'productPromotionPrice',
|
|
37
|
+
isRequire: false,
|
|
38
|
+
notes: '商品信息的促销价格,只有存在的情况下才会展示该信息',
|
|
39
|
+
},
|
|
40
|
+
{ label: '数量', value: 'amount' },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": {
|
|
49
|
+
"label": {
|
|
50
|
+
"type": "i18n",
|
|
51
|
+
"en-US": "handleOnLoad",
|
|
52
|
+
"zh-CN": "加载数据"
|
|
53
|
+
},
|
|
54
|
+
"tip": "handleOnLoad | 加载数据"
|
|
55
|
+
},
|
|
56
|
+
"name": "handleOnLoad",
|
|
57
|
+
"description": "加载数据",
|
|
58
|
+
"setter": {
|
|
59
|
+
"componentName": "FunctionSetter",
|
|
60
|
+
"isRequired": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"title": {
|
|
65
|
+
"label": {
|
|
66
|
+
"type": "i18n",
|
|
67
|
+
"en-US": "handleOnSubmit",
|
|
68
|
+
"zh-CN": "结算事件"
|
|
69
|
+
},
|
|
70
|
+
"tip": "handleOnSubmit | 结算事件"
|
|
71
|
+
},
|
|
72
|
+
"name": "handleOnSubmit",
|
|
73
|
+
"description": "结算事件",
|
|
74
|
+
"setter": {
|
|
75
|
+
"componentName": "FunctionSetter"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"title": {
|
|
80
|
+
"label": {
|
|
81
|
+
"type": "i18n",
|
|
82
|
+
"en-US": "handleOnDelete",
|
|
83
|
+
"zh-CN": "购物车删除事件"
|
|
84
|
+
},
|
|
85
|
+
"tip": "handleOnDelete | 购物车删除事件"
|
|
86
|
+
},
|
|
87
|
+
"name": "handleOnDelete",
|
|
88
|
+
"description": "购物车删除事件",
|
|
89
|
+
"setter": {
|
|
90
|
+
"componentName": "FunctionSetter"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"title": {
|
|
95
|
+
"label": {
|
|
96
|
+
"type": "i18n",
|
|
97
|
+
"en-US": "handleBeforeUnmount",
|
|
98
|
+
"zh-CN": "组件卸载前事件"
|
|
99
|
+
},
|
|
100
|
+
"tip": "handleBeforeUnmount | 组件卸载前事件"
|
|
101
|
+
},
|
|
102
|
+
"name": "handleBeforeUnmount",
|
|
103
|
+
"description": "组件卸载前事件",
|
|
104
|
+
"setter": {
|
|
105
|
+
"componentName": "FunctionSetter"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"title": {
|
|
110
|
+
"label": {
|
|
111
|
+
"type": "i18n",
|
|
112
|
+
"en-US": "isLogin",
|
|
113
|
+
"zh-CN": "是否登录"
|
|
114
|
+
},
|
|
115
|
+
"tip": "isLogin | 是否登录"
|
|
116
|
+
},
|
|
117
|
+
"name": "isLogin",
|
|
118
|
+
"description": "是否登录",
|
|
119
|
+
"setter": {
|
|
120
|
+
"componentName": "BoolSetter",
|
|
121
|
+
"isRequired": false,
|
|
122
|
+
"initialValue": true
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"title": {
|
|
127
|
+
"label": {
|
|
128
|
+
"type": "i18n",
|
|
129
|
+
"en-US": "dataList",
|
|
130
|
+
"zh-CN": "dataList"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"name": "dataList",
|
|
134
|
+
"setter": {
|
|
135
|
+
"componentName": "ArraySetter",
|
|
136
|
+
"props": {
|
|
137
|
+
"itemSetter": {
|
|
138
|
+
"componentName": "ObjectSetter",
|
|
139
|
+
"props": {
|
|
140
|
+
"config": {
|
|
141
|
+
"items": [
|
|
142
|
+
{
|
|
143
|
+
"title": {
|
|
144
|
+
"label": {
|
|
145
|
+
"type": "i18n",
|
|
146
|
+
"en-US": "amount",
|
|
147
|
+
"zh-CN": "amount"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"name": "amount",
|
|
151
|
+
"setter": {
|
|
152
|
+
"componentName": "NumberSetter",
|
|
153
|
+
"isRequired": true,
|
|
154
|
+
"initialValue": 0
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"title": {
|
|
159
|
+
"label": {
|
|
160
|
+
"type": "i18n",
|
|
161
|
+
"en-US": "fkProductId",
|
|
162
|
+
"zh-CN": "fkProductId"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"name": "fkProductId",
|
|
166
|
+
"setter": {
|
|
167
|
+
"componentName": "StringSetter",
|
|
168
|
+
"isRequired": true,
|
|
169
|
+
"initialValue": ""
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"title": {
|
|
174
|
+
"label": {
|
|
175
|
+
"type": "i18n",
|
|
176
|
+
"en-US": "id",
|
|
177
|
+
"zh-CN": "id"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"name": "id",
|
|
181
|
+
"setter": {
|
|
182
|
+
"componentName": "StringSetter",
|
|
183
|
+
"isRequired": true,
|
|
184
|
+
"initialValue": ""
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"title": {
|
|
189
|
+
"label": {
|
|
190
|
+
"type": "i18n",
|
|
191
|
+
"en-US": "imgUrl",
|
|
192
|
+
"zh-CN": "imgUrl"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"name": "imgUrl",
|
|
196
|
+
"setter": {
|
|
197
|
+
"componentName": "StringSetter",
|
|
198
|
+
"isRequired": true,
|
|
199
|
+
"initialValue": ""
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"title": {
|
|
204
|
+
"label": {
|
|
205
|
+
"type": "i18n",
|
|
206
|
+
"en-US": "memo",
|
|
207
|
+
"zh-CN": "memo"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"name": "memo",
|
|
211
|
+
"setter": {
|
|
212
|
+
"componentName": "StringSetter",
|
|
213
|
+
"isRequired": true,
|
|
214
|
+
"initialValue": ""
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"title": {
|
|
219
|
+
"label": {
|
|
220
|
+
"type": "i18n",
|
|
221
|
+
"en-US": "phone",
|
|
222
|
+
"zh-CN": "phone"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"name": "phone",
|
|
226
|
+
"setter": {
|
|
227
|
+
"componentName": "StringSetter",
|
|
228
|
+
"isRequired": true,
|
|
229
|
+
"initialValue": ""
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"title": {
|
|
234
|
+
"label": {
|
|
235
|
+
"type": "i18n",
|
|
236
|
+
"en-US": "price",
|
|
237
|
+
"zh-CN": "price"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"name": "price",
|
|
241
|
+
"setter": {
|
|
242
|
+
"componentName": "NumberSetter",
|
|
243
|
+
"isRequired": true,
|
|
244
|
+
"initialValue": 0
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"title": {
|
|
249
|
+
"label": {
|
|
250
|
+
"type": "i18n",
|
|
251
|
+
"en-US": "productPrice",
|
|
252
|
+
"zh-CN": "productPrice"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"name": "productPrice",
|
|
256
|
+
"setter": {
|
|
257
|
+
"componentName": "NumberSetter",
|
|
258
|
+
"isRequired": false,
|
|
259
|
+
"initialValue": 0
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"title": {
|
|
264
|
+
"label": {
|
|
265
|
+
"type": "i18n",
|
|
266
|
+
"en-US": "productPromotionPrice",
|
|
267
|
+
"zh-CN": "productPromotionPrice"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"name": "productPromotionPrice",
|
|
271
|
+
"setter": {
|
|
272
|
+
"componentName": "NumberSetter",
|
|
273
|
+
"isRequired": false,
|
|
274
|
+
"initialValue": 0
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"title": {
|
|
279
|
+
"label": {
|
|
280
|
+
"type": "i18n",
|
|
281
|
+
"en-US": "productNum",
|
|
282
|
+
"zh-CN": "productNum"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"name": "productNum",
|
|
286
|
+
"setter": {
|
|
287
|
+
"componentName": "NumberSetter",
|
|
288
|
+
"isRequired": false,
|
|
289
|
+
"initialValue": 0
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"title": {
|
|
294
|
+
"label": {
|
|
295
|
+
"type": "i18n",
|
|
296
|
+
"en-US": "productName",
|
|
297
|
+
"zh-CN": "productName"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"name": "productName",
|
|
301
|
+
"setter": {
|
|
302
|
+
"componentName": "StringSetter",
|
|
303
|
+
"isRequired": true,
|
|
304
|
+
"initialValue": ""
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"title": {
|
|
309
|
+
"label": {
|
|
310
|
+
"type": "i18n",
|
|
311
|
+
"en-US": "productNameLabel",
|
|
312
|
+
"zh-CN": "productNameLabel"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"name": "productNameLabel",
|
|
316
|
+
"setter": {
|
|
317
|
+
"componentName": "StringSetter",
|
|
318
|
+
"isRequired": true,
|
|
319
|
+
"initialValue": ""
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"title": {
|
|
324
|
+
"label": {
|
|
325
|
+
"type": "i18n",
|
|
326
|
+
"en-US": "userName",
|
|
327
|
+
"zh-CN": "userName"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"name": "userName",
|
|
331
|
+
"setter": {
|
|
332
|
+
"componentName": "StringSetter",
|
|
333
|
+
"isRequired": true,
|
|
334
|
+
"initialValue": ""
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"title": {
|
|
339
|
+
"label": {
|
|
340
|
+
"type": "i18n",
|
|
341
|
+
"en-US": "userNameLabel",
|
|
342
|
+
"zh-CN": "userNameLabel"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"name": "userNameLabel",
|
|
346
|
+
"setter": {
|
|
347
|
+
"componentName": "StringSetter",
|
|
348
|
+
"isRequired": true,
|
|
349
|
+
"initialValue": ""
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"title": {
|
|
354
|
+
"label": {
|
|
355
|
+
"type": "i18n",
|
|
356
|
+
"en-US": "version",
|
|
357
|
+
"zh-CN": "version"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"name": "version",
|
|
361
|
+
"setter": {
|
|
362
|
+
"componentName": "NumberSetter",
|
|
363
|
+
"isRequired": true,
|
|
364
|
+
"initialValue": 0
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"title": {
|
|
369
|
+
"label": {
|
|
370
|
+
"type": "i18n",
|
|
371
|
+
"en-US": "checked",
|
|
372
|
+
"zh-CN": "checked"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"name": "checked",
|
|
376
|
+
"setter": {
|
|
377
|
+
"componentName": "BoolSetter",
|
|
378
|
+
"isRequired": true,
|
|
379
|
+
"initialValue": false
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"title": {
|
|
384
|
+
"label": {
|
|
385
|
+
"type": "i18n",
|
|
386
|
+
"en-US": "grounding",
|
|
387
|
+
"zh-CN": "grounding"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"name": "grounding",
|
|
391
|
+
"setter": {
|
|
392
|
+
"componentName": "StringSetter",
|
|
393
|
+
"isRequired": true,
|
|
394
|
+
"initialValue": ""
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"title": {
|
|
399
|
+
"label": {
|
|
400
|
+
"type": "i18n",
|
|
401
|
+
"en-US": "productGrounding",
|
|
402
|
+
"zh-CN": "productGrounding"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"name": "productGrounding",
|
|
406
|
+
"setter": {
|
|
407
|
+
"componentName": "StringSetter",
|
|
408
|
+
"isRequired": true,
|
|
409
|
+
"initialValue": ""
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"title": {
|
|
414
|
+
"label": {
|
|
415
|
+
"type": "i18n",
|
|
416
|
+
"en-US": "isUpdate",
|
|
417
|
+
"zh-CN": "isUpdate"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"name": "isUpdate",
|
|
421
|
+
"setter": {
|
|
422
|
+
"componentName": "BoolSetter",
|
|
423
|
+
"isRequired": true,
|
|
424
|
+
"initialValue": false
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"extraSetter": {
|
|
429
|
+
"componentName": "MixedSetter",
|
|
430
|
+
"isRequired": false,
|
|
431
|
+
"props": {}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"initialValue": [
|
|
438
|
+
{
|
|
439
|
+
id: "1064549935099285504",
|
|
440
|
+
gmtCreate: "2024-12-12 11:42:29",
|
|
441
|
+
gmtModified: "2024-12-12 11:42:29",
|
|
442
|
+
createUserName: "18974910957",
|
|
443
|
+
updateUserName: "18974910957",
|
|
444
|
+
version: 18,
|
|
445
|
+
phone: "18974910957",
|
|
446
|
+
fkProductId: "1063826925593694208",
|
|
447
|
+
productName: "听闲系列线香",
|
|
448
|
+
imgUrl: "https://pts.dct99.com/hro/api/upload/2024/202412/20241211/1064248543356784640.PNG",
|
|
449
|
+
amount: 3,
|
|
450
|
+
productPrice: 188.00,
|
|
451
|
+
productPromotionPrice: 0.00,
|
|
452
|
+
productGrounding: "已上架"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
id: "1070065822443114496",
|
|
456
|
+
gmtCreate: "2024-12-27 17:00:39",
|
|
457
|
+
gmtModified: "2024-12-27 17:00:39",
|
|
458
|
+
createUserName: "18974910957",
|
|
459
|
+
updateUserName: "18974910957",
|
|
460
|
+
version: 2,
|
|
461
|
+
phone: "18974910957",
|
|
462
|
+
fkProductId: "1063826927548239872",
|
|
463
|
+
productName: "冰爽/劲爽薄荷口喷",
|
|
464
|
+
imgUrl: "https://pts.dct99.com/hro/api/upload/2024/202412/20241211/1064248619273687040.PNG",
|
|
465
|
+
amount: 10,
|
|
466
|
+
productPrice: 59.80,
|
|
467
|
+
productPromotionPrice: 0.00,
|
|
468
|
+
productGrounding: "已上架"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"supports": {
|
|
475
|
+
"style": true
|
|
476
|
+
},
|
|
477
|
+
"component": {}
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
481
|
+
{
|
|
482
|
+
"title": "ShoppingCart",
|
|
483
|
+
"screenshot": "",
|
|
484
|
+
"schema": {
|
|
485
|
+
"componentName": "ShoppingCart",
|
|
486
|
+
"props": {}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
];
|
|
490
|
+
|
|
491
|
+
export default {
|
|
492
|
+
...ShoppingCartMeta,
|
|
493
|
+
snippets
|
|
494
|
+
};
|
package/lowcode/swiper/meta.ts
CHANGED
|
@@ -218,8 +218,9 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
218
218
|
spaceBetween: 0,
|
|
219
219
|
loop: true,
|
|
220
220
|
autoplay: true,
|
|
221
|
-
speed:
|
|
221
|
+
speed: 1000,
|
|
222
222
|
height: 172,
|
|
223
|
+
delay: 300,
|
|
223
224
|
// 轮播路径
|
|
224
225
|
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
|
|
225
226
|
'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const UserCardMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
group: '低代码组件',
|
|
6
|
+
"componentName": "UserCard",
|
|
7
|
+
"title": "UserCard",
|
|
8
|
+
"docUrl": "",
|
|
9
|
+
"screenshot": "",
|
|
10
|
+
"devMode": "proCode",
|
|
11
|
+
"npm": {
|
|
12
|
+
"package": "@dckj-npm/dc-material",
|
|
13
|
+
"version": "0.1.149",
|
|
14
|
+
"exportName": "UserCard",
|
|
15
|
+
"main": "src/index.tsx",
|
|
16
|
+
"destructuring": true,
|
|
17
|
+
"subName": ""
|
|
18
|
+
},
|
|
19
|
+
"configure": {
|
|
20
|
+
"props": [
|
|
21
|
+
{
|
|
22
|
+
"title": {
|
|
23
|
+
"label": {
|
|
24
|
+
"type": "i18n",
|
|
25
|
+
"en-US": "contentBg",
|
|
26
|
+
"zh-CN": "contentBg"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"name": "contentBg",
|
|
30
|
+
"setter": {
|
|
31
|
+
"componentName": "StringSetter",
|
|
32
|
+
"isRequired": false,
|
|
33
|
+
"initialValue": "https://pts.dct99.com/hro/api/upload/2024/202412/20241226/1069607404548788224.jpg"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": {
|
|
38
|
+
"label": {
|
|
39
|
+
"type": "i18n",
|
|
40
|
+
"en-US": "headImg",
|
|
41
|
+
"zh-CN": "headImg"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"name": "headImg",
|
|
45
|
+
"setter": {
|
|
46
|
+
"componentName": "StringSetter",
|
|
47
|
+
"isRequired": false,
|
|
48
|
+
"initialValue": "https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"title": {
|
|
53
|
+
"label": {
|
|
54
|
+
"type": "i18n",
|
|
55
|
+
"en-US": "userName",
|
|
56
|
+
"zh-CN": "userName"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"name": "userName",
|
|
60
|
+
"setter": {
|
|
61
|
+
"componentName": "StringSetter",
|
|
62
|
+
"isRequired": false,
|
|
63
|
+
"initialValue": "你哈"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"title": {
|
|
68
|
+
"label": {
|
|
69
|
+
"type": "i18n",
|
|
70
|
+
"en-US": "levelImg",
|
|
71
|
+
"zh-CN": "levelImg"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"name": "levelImg",
|
|
75
|
+
"setter": {
|
|
76
|
+
"componentName": "StringSetter",
|
|
77
|
+
"isRequired": false,
|
|
78
|
+
"initialValue": "https://pts.dct99.com/hro/api/upload/2024/202412/20241207/1062771672945397760.png"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"title": {
|
|
83
|
+
"label": {
|
|
84
|
+
"type": "i18n",
|
|
85
|
+
"en-US": "isLogin",
|
|
86
|
+
"zh-CN": "isLogin"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"name": "isLogin",
|
|
90
|
+
"setter": {
|
|
91
|
+
"componentName": "BoolSetter",
|
|
92
|
+
"isRequired": false,
|
|
93
|
+
"initialValue": false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"title": {
|
|
98
|
+
"label": {
|
|
99
|
+
"type": "i18n",
|
|
100
|
+
"en-US": "handleClick",
|
|
101
|
+
"zh-CN": "handleClick"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"name": "handleClick",
|
|
105
|
+
"setter": {
|
|
106
|
+
"componentName": "FunctionSetter",
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"supports": {
|
|
111
|
+
"style": true
|
|
112
|
+
},
|
|
113
|
+
"component": {}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
117
|
+
{
|
|
118
|
+
"title": "UserCard",
|
|
119
|
+
"screenshot": "",
|
|
120
|
+
"schema": {
|
|
121
|
+
"componentName": "UserCard",
|
|
122
|
+
"props": {}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
];
|
|
126
|
+
|
|
127
|
+
export default {
|
|
128
|
+
...UserCardMeta,
|
|
129
|
+
snippets
|
|
130
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
snippets: IPublicTypeSnippet[];
|
|
4
|
+
componentName: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
+
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
10
|
+
docUrl?: string;
|
|
11
|
+
screenshot?: string;
|
|
12
|
+
devMode?: "proCode" | "lowCode";
|
|
13
|
+
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
|
+
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
|
|
16
|
+
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
|
+
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
|
+
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
19
|
+
category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
20
|
+
priority?: number;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|