@cloudbase/weda-ui 3.4.0 → 3.4.2
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/dist/configs/actions/showMessage.json +45 -0
- package/dist/configs/actions/showModal.json +21 -0
- package/dist/configs/actions/showToast.json +11 -2
- package/dist/configs/components/button.json +1 -1
- package/dist/configs/components/calendar.json +1 -1
- package/dist/configs/components/carousel.json +76 -66
- package/dist/configs/components/chart/bar.json +39 -3
- package/dist/configs/components/chart/line.json +5 -2
- package/dist/configs/components/chart/pie.json +5 -2
- package/dist/configs/components/chart/statisticsCard.json +6 -6
- package/dist/configs/components/container.json +16 -2
- package/dist/configs/components/dataView.json +47 -4
- package/dist/configs/components/form/departTreeSelect.json +1 -1
- package/dist/configs/components/form/form.json +1 -1
- package/dist/configs/components/form/location.json +2 -2
- package/dist/configs/components/form/richText.json +2 -2
- package/dist/configs/components/form/uploader.json +1 -1
- package/dist/configs/components/form/uploaderFile.json +4 -3
- package/dist/configs/components/form/userTreeSelect.json +1 -1
- package/dist/configs/components/formdetail.json +6 -1
- package/dist/configs/components/graphicCard.json +1 -1
- package/dist/configs/components/image.json +6 -3
- package/dist/configs/components/link.json +5 -2
- package/dist/configs/components/listView.json +148 -43
- package/dist/configs/components/lottery.json +1 -1
- package/dist/configs/components/modal.json +2 -1
- package/dist/configs/components/navLayout.json +1 -1
- package/dist/configs/components/navigationBar.json +1 -1
- package/dist/configs/components/richtextview.json +5 -2
- package/dist/configs/components/scrollVeiw.json +109 -73
- package/dist/configs/components/swiper.json +47 -38
- package/dist/configs/components/tabs.json +1 -1
- package/dist/configs/components/text.json +12 -6
- package/dist/configs/components/wedaVideo.json +1 -1
- package/dist/configs/components/wxOpenApi/phone.json +2 -2
- package/dist/configs/components/wxOpenApi/phoneCode.json +2 -2
- package/dist/configs/components/wxOpenApi/share.json +9 -8
- package/dist/configs/components/wxOpenApi/userInfo.json +15 -3
- package/dist/configs/index.d.ts +2 -0
- package/dist/configs/index.js +2 -0
- package/dist/web/actions/index.d.ts +1 -0
- package/dist/web/actions/index.js +1 -0
- package/dist/web/actions/showMessage/index.css +6 -0
- package/dist/web/actions/showMessage/index.d.ts +17 -0
- package/dist/web/actions/showMessage/index.js +39 -0
- package/dist/web/components/button/index.d.ts +3 -2
- package/dist/web/components/button/index.js +14 -3
- package/dist/web/components/common/use-loop-render-detect.js +7 -6
- package/dist/web/components/form/form/index.js +21 -50
- package/dist/web/components/form/uploader/uploader.h5.js +1 -1
- package/dist/web/components/form/uploader/uploader.pc.js +2 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +12 -10
- package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +11 -0
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +10 -8
- package/dist/web/components/form/userOrgSelect/comTool.js +4 -3
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +3 -4
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +6 -7
- package/dist/web/components/form/userOrgSelect/getUserService.js +2 -1
- package/dist/web/components/form/userOrgSelect/userOrgSelect.css +10 -12
- package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +4 -6
- package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +49 -28
- package/dist/web/components/form/userOrgSelect/utils.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/utils.js +15 -0
- package/dist/web/components/formdetail/index.css +40 -27
- package/dist/web/components/formdetail/index.js +22 -19
- package/dist/web/components/link/index.js +2 -1
- package/dist/web/components/listView/index.css +5 -1
- package/dist/web/components/listView/index.js +22 -2
- package/dist/web/components/listView/interface.d.ts +1 -1
- package/dist/web/components/navigationBar/index.js +8 -3
- package/dist/web/components/phone/index.js +4 -1
- package/dist/web/components/phoneCode/index.js +4 -1
- package/dist/web/components/richText/index.d.ts +1 -1
- package/dist/web/components/richText/index.js +6 -6
- package/dist/web/components/share/index.js +4 -1
- package/dist/web/components/text/index.js +2 -1
- package/dist/web/components/userInfo/index.js +4 -1
- package/dist/web/utils/console.js +1 -1
- package/dist/web/utils/platform.d.ts +11 -1
- package/dist/web/utils/platform.js +61 -12
- package/package.json +12 -1
|
@@ -55,9 +55,10 @@
|
|
|
55
55
|
},
|
|
56
56
|
"maxSize": {
|
|
57
57
|
"type": "number",
|
|
58
|
-
"default":
|
|
58
|
+
"default": 10,
|
|
59
|
+
"maximum": 500,
|
|
59
60
|
"title": "单个文件最大限制(M)",
|
|
60
|
-
"description": "最大支持
|
|
61
|
+
"description": "最大支持500M",
|
|
61
62
|
"x-category": "高级属性",
|
|
62
63
|
"x-index": 80
|
|
63
64
|
},
|
|
@@ -153,6 +154,6 @@
|
|
|
153
154
|
"title": "上传文件",
|
|
154
155
|
"description": "上传文件组件",
|
|
155
156
|
"category": "表单",
|
|
156
|
-
"icon": "
|
|
157
|
+
"icon": "../../icons/UploaderFile.svg"
|
|
157
158
|
}
|
|
158
159
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"required": true,
|
|
23
23
|
"x-category": "基础属性",
|
|
24
|
-
"description": "
|
|
24
|
+
"description": "表单字段的Key值,用于提交数据时,匹配数据模型字段标识。页面内需保证唯一。"
|
|
25
25
|
},
|
|
26
26
|
"value": {
|
|
27
27
|
"type": "array",
|
|
@@ -124,5 +124,10 @@
|
|
|
124
124
|
"title": "明细",
|
|
125
125
|
"description": "明细",
|
|
126
126
|
"category": "表单"
|
|
127
|
+
},
|
|
128
|
+
"configMeta": {
|
|
129
|
+
"shortcut": {
|
|
130
|
+
"props": ["name"]
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
}
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"description": "以卡片形式展示包含图片、标题、描述信息在内的列表信息。",
|
|
415
415
|
"category": "展示",
|
|
416
416
|
"componentOrder": 501,
|
|
417
|
-
"icon": "
|
|
417
|
+
"icon": "../icons/GraphicCard.svg"
|
|
418
418
|
},
|
|
419
419
|
"configMeta": {
|
|
420
420
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/GraphicCard"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
5
|
"src": {
|
|
6
|
-
"title": "
|
|
6
|
+
"title": "地址",
|
|
7
7
|
"type": "string",
|
|
8
8
|
"x-component": "image",
|
|
9
9
|
"x-rules": [
|
|
@@ -179,9 +179,12 @@
|
|
|
179
179
|
"title": "图片",
|
|
180
180
|
"description": "用于在页面进行图片的展示。",
|
|
181
181
|
"category": "多媒体",
|
|
182
|
-
"icon": "
|
|
182
|
+
"icon": "../icons/Image.svg"
|
|
183
183
|
},
|
|
184
184
|
"configMeta": {
|
|
185
|
-
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/media/Image"
|
|
185
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/media/Image",
|
|
186
|
+
"shortcut": {
|
|
187
|
+
"props": ["src"]
|
|
188
|
+
}
|
|
186
189
|
}
|
|
187
190
|
}
|
|
@@ -64,11 +64,14 @@
|
|
|
64
64
|
"description": "用于实现超链接跳转。",
|
|
65
65
|
"category": "文本",
|
|
66
66
|
"componentOrder": 10,
|
|
67
|
-
"icon": "
|
|
67
|
+
"icon": "../icons/Link.svg",
|
|
68
68
|
"platform": ["MOBILEWEB", "PCWEB"]
|
|
69
69
|
},
|
|
70
70
|
"configMeta": {
|
|
71
|
-
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Link"
|
|
71
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Link",
|
|
72
|
+
"shortcut": {
|
|
73
|
+
"props": ["content", "url"]
|
|
74
|
+
}
|
|
72
75
|
},
|
|
73
76
|
"events": [
|
|
74
77
|
{
|
|
@@ -2,9 +2,53 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"template": {
|
|
6
|
+
"x-index": 4,
|
|
7
|
+
"title": "模板",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"default": "simpleList",
|
|
11
|
+
"enum": [
|
|
12
|
+
{
|
|
13
|
+
"label": "空白",
|
|
14
|
+
"value": "none",
|
|
15
|
+
"tooltip": "不使用模板",
|
|
16
|
+
"src": "https://cloudcache.tencent-cloud.com/qcloud/ui/static/static_source_business/924e8472-9c52-46bc-bae7-e1ec30b92974.svg"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"label": "简单列表",
|
|
20
|
+
"value": "simpleList",
|
|
21
|
+
"tooltip": "使用简单列表模板",
|
|
22
|
+
"src": "https://cloudcache.tencent-cloud.com/qcloud/ui/static/static_source_business/2563df4d-2db0-449f-a545-825f5a66a848.svg"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"label": "详细列表",
|
|
26
|
+
"value": "detailList",
|
|
27
|
+
"tooltip": "使用详细列表模板",
|
|
28
|
+
"src": "https://cloudcache.tencent-cloud.com/qcloud/ui/static/static_source_business/c4f78f1c-f93a-4b40-8253-42541a609fa4.svg"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "图文列表",
|
|
32
|
+
"value": "imageTextList",
|
|
33
|
+
"tooltip": "使用图文列表模板",
|
|
34
|
+
"src": "https://cloudcache.tencent-cloud.com/qcloud/ui/static/static_source_business/58cad863-a9b6-4c51-b3f3-d6036ef4d0b7.svg"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "卡片列表",
|
|
38
|
+
"value": "cardList",
|
|
39
|
+
"tooltip": "使用卡片列表模板",
|
|
40
|
+
"src": "https://cloudcache.tencent-cloud.com/qcloud/ui/static/static_source_business/d92ff460-bc94-4162-9c0e-d04224dd1919.svg"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"x-component": "data-sources-template-selector",
|
|
44
|
+
"x-props": {
|
|
45
|
+
"data-hidebind": true
|
|
46
|
+
},
|
|
47
|
+
"remarks": "列表内容样式的预设模板"
|
|
48
|
+
},
|
|
5
49
|
"dataSourceType": {
|
|
6
50
|
"x-index": 5,
|
|
7
|
-
"title": "
|
|
51
|
+
"title": "数据源",
|
|
8
52
|
"x-category": "基础属性",
|
|
9
53
|
"type": "string",
|
|
10
54
|
"default": "data-model",
|
|
@@ -56,6 +100,29 @@
|
|
|
56
100
|
}
|
|
57
101
|
}
|
|
58
102
|
],
|
|
103
|
+
"x-component": "dsc-datasource-type-select",
|
|
104
|
+
"x-component-props": {
|
|
105
|
+
"defaultValue": "data-model",
|
|
106
|
+
"options": [
|
|
107
|
+
{
|
|
108
|
+
"value": "data-model",
|
|
109
|
+
"text": "数据模型",
|
|
110
|
+
"label": "数据模型",
|
|
111
|
+
"icon": "database",
|
|
112
|
+
"isShow": true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"value": "custom-connector",
|
|
116
|
+
"text": "自定义APIs",
|
|
117
|
+
"label": "自定义APIs",
|
|
118
|
+
"icon": "custom-connector",
|
|
119
|
+
"isShow": true
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"x-props": {
|
|
124
|
+
"data-hidebind": true
|
|
125
|
+
},
|
|
59
126
|
"remarks": "数据源类型选择"
|
|
60
127
|
},
|
|
61
128
|
"datasource": {
|
|
@@ -127,7 +194,7 @@
|
|
|
127
194
|
"condition": "{{ Boolean(!$value || !$value.name) }}",
|
|
128
195
|
"target": "orderBy",
|
|
129
196
|
"schema": {
|
|
130
|
-
"x-props": "{{{
|
|
197
|
+
"x-props": "{{{disabled: true, tooltip: '请先选择数据源'}}}"
|
|
131
198
|
}
|
|
132
199
|
},
|
|
133
200
|
{
|
|
@@ -135,7 +202,7 @@
|
|
|
135
202
|
"condition": "{{ Boolean($value && $value.name) }}",
|
|
136
203
|
"target": "orderBy",
|
|
137
204
|
"schema": {
|
|
138
|
-
"x-props": "{{{
|
|
205
|
+
"x-props": "{{{disabled: false, tooltip: ''}}}"
|
|
139
206
|
}
|
|
140
207
|
}
|
|
141
208
|
],
|
|
@@ -156,6 +223,9 @@
|
|
|
156
223
|
}
|
|
157
224
|
}
|
|
158
225
|
],
|
|
226
|
+
"x-props": {
|
|
227
|
+
"data-hidebind": true
|
|
228
|
+
},
|
|
159
229
|
"remarks": "展示数据的自定义APIs来源选择"
|
|
160
230
|
},
|
|
161
231
|
"connectorMethod": {
|
|
@@ -164,6 +234,9 @@
|
|
|
164
234
|
"x-component": "connector-method-select",
|
|
165
235
|
"x-index": 16,
|
|
166
236
|
"x-category": "基础属性",
|
|
237
|
+
"x-props": {
|
|
238
|
+
"data-hidebind": true
|
|
239
|
+
},
|
|
167
240
|
"remarks": "展示数据的自定义APIs调用方法选择"
|
|
168
241
|
},
|
|
169
242
|
"connectorParams": {
|
|
@@ -239,9 +312,24 @@
|
|
|
239
312
|
"title": "排序字段",
|
|
240
313
|
"x-category": "基础属性",
|
|
241
314
|
"type": "string",
|
|
242
|
-
"x-
|
|
243
|
-
|
|
244
|
-
|
|
315
|
+
"x-linkages": [
|
|
316
|
+
{
|
|
317
|
+
"type": "value:schema",
|
|
318
|
+
"condition": "{{ Boolean($value) }}",
|
|
319
|
+
"target": "orderBy",
|
|
320
|
+
"schema": {
|
|
321
|
+
"x-props": "{{{clearable: true}}}"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"type": "value:schema",
|
|
326
|
+
"condition": "{{ Boolean(!$value) }}",
|
|
327
|
+
"target": "orderBy",
|
|
328
|
+
"schema": {
|
|
329
|
+
"x-props": "{{{clearable: false}}}"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
],
|
|
245
333
|
"remarks": "选取对数据进行排序的字段"
|
|
246
334
|
},
|
|
247
335
|
"orderType": {
|
|
@@ -259,9 +347,24 @@
|
|
|
259
347
|
"value": "desc"
|
|
260
348
|
}
|
|
261
349
|
],
|
|
262
|
-
"x-
|
|
263
|
-
|
|
264
|
-
|
|
350
|
+
"x-linkages": [
|
|
351
|
+
{
|
|
352
|
+
"type": "value:schema",
|
|
353
|
+
"condition": "{{ Boolean($value) }}",
|
|
354
|
+
"target": "orderType",
|
|
355
|
+
"schema": {
|
|
356
|
+
"x-props": "{{{clearable: true}}}"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "value:schema",
|
|
361
|
+
"condition": "{{ Boolean(!$value) }}",
|
|
362
|
+
"target": "orderType",
|
|
363
|
+
"schema": {
|
|
364
|
+
"x-props": "{{{clearable: false}}}"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
],
|
|
265
368
|
"remarks": "设置升序或降序"
|
|
266
369
|
},
|
|
267
370
|
"pageSize": {
|
|
@@ -276,37 +379,6 @@
|
|
|
276
379
|
"remarks": "设置单次加载的数据条数",
|
|
277
380
|
"display": true
|
|
278
381
|
},
|
|
279
|
-
"template": {
|
|
280
|
-
"x-index": 65,
|
|
281
|
-
"title": "模板",
|
|
282
|
-
"type": "string",
|
|
283
|
-
"x-category": "基础属性",
|
|
284
|
-
"default": "simpleList",
|
|
285
|
-
"enum": [
|
|
286
|
-
{
|
|
287
|
-
"label": "简单列表",
|
|
288
|
-
"value": "simpleList"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"label": "详细列表",
|
|
292
|
-
"value": "detailList"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"label": "图文列表",
|
|
296
|
-
"value": "imageTextList"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"label": "卡片列表",
|
|
300
|
-
"value": "cardList"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"label": "不使用模板",
|
|
304
|
-
"value": "none"
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"x-component": "data-sources-template-selector",
|
|
308
|
-
"remarks": "列表内容样式的预设模板"
|
|
309
|
-
},
|
|
310
382
|
"pagination": {
|
|
311
383
|
"x-index": 70,
|
|
312
384
|
"title": "分页",
|
|
@@ -331,6 +403,9 @@
|
|
|
331
403
|
"value": "none"
|
|
332
404
|
}
|
|
333
405
|
],
|
|
406
|
+
"x-props": {
|
|
407
|
+
"data-hidebind": true
|
|
408
|
+
},
|
|
334
409
|
"remarks": "数据分页样式"
|
|
335
410
|
},
|
|
336
411
|
"isSetStatus": {
|
|
@@ -368,11 +443,41 @@
|
|
|
368
443
|
"meta": {
|
|
369
444
|
"title": "数据列表",
|
|
370
445
|
"category": "数据容器",
|
|
371
|
-
"description": "
|
|
446
|
+
"description": "适用于从数据源中查询多条数据,并将返回列表循环展示的场景,如查询用户列表。",
|
|
372
447
|
"componentOrder": 1000,
|
|
373
|
-
"icon": "
|
|
448
|
+
"icon": "../icons/ListView.svg"
|
|
374
449
|
},
|
|
375
450
|
"configMeta": {
|
|
376
|
-
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView"
|
|
451
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView",
|
|
452
|
+
"shortcut": {
|
|
453
|
+
"props": [
|
|
454
|
+
"dataSourceType",
|
|
455
|
+
"datasource",
|
|
456
|
+
"bindConnectMetadata",
|
|
457
|
+
"connectorMethod",
|
|
458
|
+
"template"
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
"contextData": {
|
|
462
|
+
"setField": true,
|
|
463
|
+
"setRelated": true,
|
|
464
|
+
"extra": {
|
|
465
|
+
"total": {
|
|
466
|
+
"title": "记录总条数",
|
|
467
|
+
"type": "number",
|
|
468
|
+
"x-index": 2
|
|
469
|
+
},
|
|
470
|
+
"pageNo": {
|
|
471
|
+
"title": "页码",
|
|
472
|
+
"type": "number",
|
|
473
|
+
"x-index": 3
|
|
474
|
+
},
|
|
475
|
+
"pageSize": {
|
|
476
|
+
"title": "每页大小",
|
|
477
|
+
"type": "number",
|
|
478
|
+
"x-index": 4
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
377
482
|
}
|
|
378
483
|
}
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"description": "用于实现简单的活动抽奖功能。",
|
|
152
152
|
"category": "高级",
|
|
153
153
|
"componentOrder": 101,
|
|
154
|
-
"icon": "
|
|
154
|
+
"icon": "../icons/Lottery.svg",
|
|
155
155
|
"visible": ["APP"]
|
|
156
156
|
},
|
|
157
157
|
"methods": [
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"description": "用于宫格布局样式下的导航项目展示。",
|
|
370
370
|
"category": "导航菜单",
|
|
371
371
|
"componentOrder": 100,
|
|
372
|
-
"icon": "
|
|
372
|
+
"icon": "../icons/NavLayout.svg"
|
|
373
373
|
},
|
|
374
374
|
"configMeta": {
|
|
375
375
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/navmenu/NavLayout"
|
|
@@ -18,9 +18,12 @@
|
|
|
18
18
|
"description": "用于对富文本类型的数据进行转换与展示。",
|
|
19
19
|
"category": "文本",
|
|
20
20
|
"componentOrder": 0,
|
|
21
|
-
"icon": "
|
|
21
|
+
"icon": "../icons/RichTextView.svg"
|
|
22
22
|
},
|
|
23
23
|
"configMeta": {
|
|
24
|
-
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/RichTextView"
|
|
24
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/RichTextView",
|
|
25
|
+
"shortcut": {
|
|
26
|
+
"props": ["value"]
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
}
|