@cloudbase/weda-ui 3.3.4 → 3.4.1

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 (121) hide show
  1. package/dist/configs/actions/showMessage.json +45 -0
  2. package/dist/configs/components/carousel.json +75 -65
  3. package/dist/configs/components/chart/bar.json +45 -9
  4. package/dist/configs/components/chart/line.json +11 -8
  5. package/dist/configs/components/chart/pie.json +11 -8
  6. package/dist/configs/components/container.json +15 -1
  7. package/dist/configs/components/dataView.json +50 -7
  8. package/dist/configs/components/form/location.json +1 -1
  9. package/dist/configs/components/form/richText.json +1 -1
  10. package/dist/configs/components/form/uploaderFile.json +3 -2
  11. package/dist/configs/components/formdetail.json +30 -2
  12. package/dist/configs/components/graphicCard.json +9 -0
  13. package/dist/configs/components/image.json +5 -2
  14. package/dist/configs/components/link.json +4 -1
  15. package/dist/configs/components/listView.json +114 -39
  16. package/dist/configs/components/navLayout.json +9 -0
  17. package/dist/configs/components/richtextview.json +4 -1
  18. package/dist/configs/components/scrollVeiw.json +16 -1
  19. package/dist/configs/components/swiper.json +46 -37
  20. package/dist/configs/components/text.json +22 -5
  21. package/dist/configs/components/wxOpenApi/phone.json +1 -1
  22. package/dist/configs/components/wxOpenApi/phoneCode.json +1 -1
  23. package/dist/configs/components/wxOpenApi/userInfo.json +13 -1
  24. package/dist/configs/index.d.ts +2 -0
  25. package/dist/configs/index.js +2 -0
  26. package/dist/web/actions/index.d.ts +1 -0
  27. package/dist/web/actions/index.js +1 -0
  28. package/dist/web/actions/showMessage/index.css +6 -0
  29. package/dist/web/actions/showMessage/index.d.ts +17 -0
  30. package/dist/web/actions/showMessage/index.js +39 -0
  31. package/dist/web/actions/showModal/index.css +3 -0
  32. package/dist/web/components/button/index.css +3 -0
  33. package/dist/web/components/button/index.d.ts +3 -2
  34. package/dist/web/components/button/index.js +14 -3
  35. package/dist/web/components/calendar/index.css +3 -0
  36. package/dist/web/components/carousel/index.css +3 -0
  37. package/dist/web/components/chart/common/Chart.js +1 -1
  38. package/dist/web/components/chart/common/chart-custom-connector.js +1 -1
  39. package/dist/web/components/chart/common/data-transform.d.ts +3 -1
  40. package/dist/web/components/chart/common/data-transform.js +12 -3
  41. package/dist/web/components/chart/statisticsCard/index.css +3 -0
  42. package/dist/web/components/chart/statisticsCard/index.js +1 -1
  43. package/dist/web/components/common/use-loop-render-detect.js +7 -6
  44. package/dist/web/components/form/form/index.css +3 -0
  45. package/dist/web/components/form/form/index.js +14 -54
  46. package/dist/web/components/form/formcell/index.css +3 -0
  47. package/dist/web/components/form/input/index.css +3 -0
  48. package/dist/web/components/form/location/common/mapChoose.css +3 -0
  49. package/dist/web/components/form/location/common/selectModal.css +3 -0
  50. package/dist/web/components/form/location/components/LocationH5/index.css +3 -0
  51. package/dist/web/components/form/location/components/LocationH5/location.h5.js +3 -3
  52. package/dist/web/components/form/location/components/LocationH5/location.module.css +3 -0
  53. package/dist/web/components/form/location/components/LocationPC/index.css +3 -0
  54. package/dist/web/components/form/location/components/LocationPC/location.PC.js +3 -3
  55. package/dist/web/components/form/location/index.css +3 -0
  56. package/dist/web/components/form/radio/index.css +3 -0
  57. package/dist/web/components/form/select/allTimePicker/calendar.css +3 -0
  58. package/dist/web/components/form/select/allTimePicker/index.css +3 -0
  59. package/dist/web/components/form/select/index.css +3 -0
  60. package/dist/web/components/form/switch/switch.module.css +3 -0
  61. package/dist/web/components/form/textarea/index.css +3 -0
  62. package/dist/web/components/form/tips/index.css +3 -0
  63. package/dist/web/components/form/uploader/index.css +3 -0
  64. package/dist/web/components/form/uploader/uploader.h5.d.ts +1 -1
  65. package/dist/web/components/form/uploader/uploader.h5.js +16 -15
  66. package/dist/web/components/form/uploader/uploader.pc.js +2 -0
  67. package/dist/web/components/form/uploaderFile/index.css +13 -8
  68. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +14 -11
  69. package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +11 -0
  70. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +10 -8
  71. package/dist/web/components/form/userOrgSelect/comTool.js +6 -3
  72. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +4 -4
  73. package/dist/web/components/form/userOrgSelect/getUserService.js +2 -1
  74. package/dist/web/components/form/userOrgSelect/userOrgSelect.css +12 -11
  75. package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +36 -17
  76. package/dist/web/components/form/userOrgSelect/utils.d.ts +1 -0
  77. package/dist/web/components/form/userOrgSelect/utils.js +15 -0
  78. package/dist/web/components/formdetail/index.css +116 -0
  79. package/dist/web/components/formdetail/index.d.ts +5 -2
  80. package/dist/web/components/formdetail/index.js +55 -36
  81. package/dist/web/components/graphicCard/index.css +3 -0
  82. package/dist/web/components/graphicCard/index.d.ts +2 -1
  83. package/dist/web/components/graphicCard/index.js +3 -3
  84. package/dist/web/components/image/image.js +1 -1
  85. package/dist/web/components/image/index.css +3 -0
  86. package/dist/web/components/link/index.css +3 -0
  87. package/dist/web/components/link/index.js +2 -1
  88. package/dist/web/components/listView/index.css +7 -0
  89. package/dist/web/components/listView/index.js +22 -2
  90. package/dist/web/components/listView/interface.d.ts +3 -3
  91. package/dist/web/components/lottery/index.css +3 -0
  92. package/dist/web/components/modal/h5.css +3 -0
  93. package/dist/web/components/navLayout/index.css +3 -0
  94. package/dist/web/components/navLayout/index.d.ts +5 -1
  95. package/dist/web/components/navLayout/index.js +2 -2
  96. package/dist/web/components/navigationBar/index.css +3 -0
  97. package/dist/web/components/navigationBar/index.js +18 -16
  98. package/dist/web/components/phone/index.js +4 -1
  99. package/dist/web/components/phoneCode/index.js +4 -1
  100. package/dist/web/components/richText/index.css +3 -0
  101. package/dist/web/components/richText/index.d.ts +1 -1
  102. package/dist/web/components/richText/index.js +6 -6
  103. package/dist/web/components/richText/richtext.module.css +3 -0
  104. package/dist/web/components/richTextView/index.css +3 -0
  105. package/dist/web/components/share/index.js +4 -1
  106. package/dist/web/components/swiper/index.css +3 -0
  107. package/dist/web/components/tabs/index.css +3 -0
  108. package/dist/web/components/text/index.css +3 -0
  109. package/dist/web/components/text/index.d.ts +2 -1
  110. package/dist/web/components/text/index.js +3 -2
  111. package/dist/web/components/uploaderFileView/index.css +3 -0
  112. package/dist/web/components/uploaderView/index.css +3 -0
  113. package/dist/web/components/userInfo/index.js +4 -1
  114. package/dist/web/components/wedaVideo/index.css +3 -0
  115. package/dist/web/utils/console.js +1 -1
  116. package/dist/web/utils/platform.d.ts +11 -1
  117. package/dist/web/utils/platform.js +61 -12
  118. package/dist/web/utils/tcb.d.ts +1 -1
  119. package/dist/web/utils/tcb.js +1 -1
  120. package/dist/web/weda-ui.css +3 -0
  121. package/package.json +4 -3
@@ -45,6 +45,30 @@
45
45
  "x-index": 3,
46
46
  "x-category": "基础属性",
47
47
  "x-platforms": [""]
48
+ },
49
+ "readOnly": {
50
+ "type": "boolean",
51
+ "title": "表单场景是否为只读",
52
+ "default": false,
53
+ "x-index": 4,
54
+ "x-category": "基础属性",
55
+ "x-platforms": [""]
56
+ },
57
+ "fieldAuth": {
58
+ "type": "string",
59
+ "title": "数据源字段权限",
60
+ "default": "rw",
61
+ "x-index": 5,
62
+ "x-category": "基础属性",
63
+ "x-platforms": [""]
64
+ },
65
+ "disabled": {
66
+ "type": "boolean",
67
+ "title": "禁用",
68
+ "default": false,
69
+ "remarks": "是否禁用输入/选择,启用后组件强制显示为只读效果",
70
+ "x-index": 6,
71
+ "x-category": "基础属性"
48
72
  }
49
73
  }
50
74
  },
@@ -99,7 +123,11 @@
99
123
  "meta": {
100
124
  "title": "明细",
101
125
  "description": "明细",
102
- "category": "表单",
103
- "visible": []
126
+ "category": "表单"
127
+ },
128
+ "configMeta": {
129
+ "shortcut": {
130
+ "props": ["name"]
131
+ }
104
132
  }
105
133
  }
@@ -357,6 +357,15 @@
357
357
  }
358
358
  ]
359
359
  },
360
+ "tips": {
361
+ "title": "展示文本气泡",
362
+ "type": "boolean",
363
+ "description": "鼠标悬停时展示文本气泡,仅PC端有效",
364
+ "default": true,
365
+ "x-category": "高级属性",
366
+ "remarks": "开启后鼠标悬停在文本组件上会展示文本气泡",
367
+ "x-index": 155
368
+ },
360
369
  "buttonText": {
361
370
  "title": "按钮文案",
362
371
  "type": "string",
@@ -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": [
@@ -182,6 +182,9 @@
182
182
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/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
  }
@@ -68,7 +68,10 @@
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",
@@ -14,7 +58,7 @@
14
58
  "value": "data-model"
15
59
  },
16
60
  {
17
- "label": "自定义连接器",
61
+ "label": "自定义APIs",
18
62
  "value": "custom-connector"
19
63
  }
20
64
  ],
@@ -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": {
@@ -142,7 +209,7 @@
142
209
  "remarks": "展示模型数据的数据来源"
143
210
  },
144
211
  "bindConnectMetadata": {
145
- "title": "自定义连接器",
212
+ "title": "自定义APIs",
146
213
  "type": "object",
147
214
  "x-component": "connector-select",
148
215
  "x-index": 12,
@@ -156,7 +223,10 @@
156
223
  }
157
224
  }
158
225
  ],
159
- "remarks": "展示数据的自定义连接器来源选择"
226
+ "x-props": {
227
+ "data-hidebind": true
228
+ },
229
+ "remarks": "展示数据的自定义APIs来源选择"
160
230
  },
161
231
  "connectorMethod": {
162
232
  "title": "调用方法",
@@ -164,14 +234,17 @@
164
234
  "x-component": "connector-method-select",
165
235
  "x-index": 16,
166
236
  "x-category": "基础属性",
167
- "remarks": "展示数据的自定义连接器调用方法选择"
237
+ "x-props": {
238
+ "data-hidebind": true
239
+ },
240
+ "remarks": "展示数据的自定义APIs调用方法选择"
168
241
  },
169
242
  "connectorParams": {
170
243
  "title": "查询入参",
171
244
  "type": "string",
172
245
  "x-index": 18,
173
246
  "x-category": "基础属性",
174
- "remarks": "对自定义连接器调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}"
247
+ "remarks": "对自定义APIs调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}"
175
248
  },
176
249
  "where": {
177
250
  "x-index": 20,
@@ -276,37 +349,6 @@
276
349
  "remarks": "设置单次加载的数据条数",
277
350
  "display": true
278
351
  },
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
352
  "pagination": {
311
353
  "x-index": 70,
312
354
  "title": "分页",
@@ -331,6 +373,9 @@
331
373
  "value": "none"
332
374
  }
333
375
  ],
376
+ "x-props": {
377
+ "data-hidebind": true
378
+ },
334
379
  "remarks": "数据分页样式"
335
380
  },
336
381
  "isSetStatus": {
@@ -368,11 +413,41 @@
368
413
  "meta": {
369
414
  "title": "数据列表",
370
415
  "category": "数据容器",
371
- "description": "适用于以列表形式展示多条数据的场景,不借助变量绑定,即可获取数据模型或自定义连接器中的数据。",
416
+ "description": "适用于从数据源中查询多条数据,并将返回列表循环展示的场景,如查询用户列表。",
372
417
  "componentOrder": 1000,
373
418
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ListView.svg"
374
419
  },
375
420
  "configMeta": {
376
- "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView"
421
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView",
422
+ "shortcut": {
423
+ "props": [
424
+ "dataSourceType",
425
+ "datasource",
426
+ "bindConnectMetadata",
427
+ "connectorMethod",
428
+ "template"
429
+ ]
430
+ },
431
+ "contextData": {
432
+ "setField": true,
433
+ "setRelated": true,
434
+ "extra": {
435
+ "total": {
436
+ "title": "记录总条数",
437
+ "type": "number",
438
+ "x-index": 2
439
+ },
440
+ "pageNo": {
441
+ "title": "页码",
442
+ "type": "number",
443
+ "x-index": 3
444
+ },
445
+ "pageSize": {
446
+ "title": "每页大小",
447
+ "type": "number",
448
+ "x-index": 4
449
+ }
450
+ }
451
+ }
377
452
  }
378
453
  }
@@ -287,6 +287,15 @@
287
287
  "x-index": 60,
288
288
  "x-category": "高级属性"
289
289
  },
290
+ "tips": {
291
+ "title": "展示文本气泡",
292
+ "type": "boolean",
293
+ "description": "鼠标悬停时展示文本气泡,仅PC端有效",
294
+ "default": true,
295
+ "x-category": "高级属性",
296
+ "remarks": "开启后鼠标悬停在文本组件上会展示文本气泡",
297
+ "x-index": 70
298
+ },
290
299
  "mobileCol": {
291
300
  "type": "number",
292
301
  "default": 4,
@@ -21,6 +21,9 @@
21
21
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/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
  }
@@ -246,7 +246,22 @@
246
246
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ScrollView.svg"
247
247
  },
248
248
  "configMeta": {
249
- "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView"
249
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView",
250
+ "shortcut": {
251
+ "props": ["scrollX", "scrollY"],
252
+ "extra": {
253
+ "container": {
254
+ "x-component": "container",
255
+ "x-component-props": [
256
+ "gsd-h5-react:Text",
257
+ "CLOUDBASE_STANDARD:Button",
258
+ "gsd-h5-react:Image",
259
+ "CLOUDBASE_STANDARD:FormInput"
260
+ ],
261
+ "x-index": 1
262
+ }
263
+ }
264
+ }
250
265
  },
251
266
  "isContainer": true,
252
267
  "mpOrigin": "scroll-view"
@@ -2,70 +2,79 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
+ "interval": {
6
+ "title": "自动切换时间间隔",
7
+ "default": 5000,
8
+ "type": "number",
9
+ "x-index": 1,
10
+ "x-category": "基础属性",
11
+ "remarks": "配置轮播图滚动的时间间隔,时间单位为ms"
12
+ },
13
+ "vertical": {
14
+ "title": "纵向轮播",
15
+ "default": false,
16
+ "x-index": 2,
17
+ "type": "boolean",
18
+ "x-category": "基础属性",
19
+ "remarks": "开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
20
+ },
5
21
  "autoplay": {
6
22
  "title": "自动切换",
7
23
  "default": true,
24
+ "x-index": 3,
8
25
  "type": "boolean",
9
26
  "x-category": "基础属性",
10
27
  "remarks": "开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
11
28
  },
12
- "indicatorDots": {
13
- "title": "导航锚点",
14
- "default": true,
15
- "type": "boolean",
29
+ "indicatorActiveColor": {
30
+ "title": "锚点激活色",
31
+ "x-index": 4,
32
+ "type": "string",
33
+ "x-component": "color",
34
+ "default": "rgba(0, 0, 0, 0.9)",
16
35
  "x-category": "高级属性",
17
- "remarks": "开启/关闭轮播图锚点"
36
+ "remarks": "更改锚点选中时的颜色"
18
37
  },
19
- "current": {
20
- "title": "当前所在滑块的 index",
21
- "default": 0,
22
- "type": "number",
38
+ "indicatorColor": {
39
+ "title": "锚点颜色",
40
+ "type": "string",
41
+ "x-index": 5,
42
+ "x-component": "color",
43
+ "default": "rgba(200, 200, 200, 0.9)",
23
44
  "x-category": "高级属性",
24
- "remarks": "更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
25
- },
26
- "interval": {
27
- "title": "自动切换时间间隔",
28
- "default": 5000,
29
- "type": "number",
30
- "x-category": "基础属性",
31
- "remarks": "配置轮播图滚动的时间间隔,时间单位为ms"
45
+ "remarks": "更改锚点普通状态下的颜色"
32
46
  },
33
47
  "duration": {
34
48
  "title": "滑动动画时长",
35
49
  "default": 500,
50
+ "x-index": 6,
36
51
  "type": "number",
37
52
  "x-category": "高级属性",
38
53
  "remarks": "更改轮播图切换时的滑动动画时长"
39
54
  },
55
+ "current": {
56
+ "title": "当前所在滑块的 index",
57
+ "default": 0,
58
+ "x-index": 7,
59
+ "type": "number",
60
+ "x-category": "高级属性",
61
+ "remarks": "更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
62
+ },
40
63
  "circular": {
41
64
  "title": "衔接滑动",
42
65
  "default": true,
43
66
  "type": "boolean",
67
+ "x-index": 8,
44
68
  "x-category": "高级属性",
45
69
  "remarks": "更改轮播图切换时动画的滑动方式"
46
70
  },
47
- "vertical": {
48
- "title": "纵向轮播",
49
- "default": false,
71
+ "indicatorDots": {
72
+ "title": "导航锚点",
73
+ "default": true,
50
74
  "type": "boolean",
51
- "x-category": "基础属性",
52
- "remarks": "开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
53
- },
54
- "indicatorColor": {
55
- "title": "锚点颜色",
56
- "type": "string",
57
- "x-component": "color",
58
- "default": "rgba(200, 200, 200, 0.9)",
59
- "x-category": "高级属性",
60
- "remarks": "更改锚点普通状态下的颜色"
61
- },
62
- "indicatorActiveColor": {
63
- "title": "锚点激活色",
64
- "type": "string",
65
- "x-component": "color",
66
- "default": "rgba(0, 0, 0, 0.9)",
75
+ "x-index": 9,
67
76
  "x-category": "高级属性",
68
- "remarks": "更改锚点选中时的颜色"
77
+ "remarks": "开启/关闭轮播图锚点"
69
78
  }
70
79
  }
71
80
  },
@@ -3,8 +3,8 @@
3
3
  "data": {
4
4
  "properties": {
5
5
  "text": {
6
- "title": "文本内容",
7
6
  "type": "string",
7
+ "title": "内容",
8
8
  "x-component": "textarea",
9
9
  "default": "文本内容",
10
10
  "x-category": "基础属性",
@@ -43,10 +43,13 @@
43
43
  }
44
44
  ],
45
45
  "type": "string",
46
- "title": "文本格式",
46
+ "title": "格式",
47
47
  "default": "0",
48
48
  "x-index": 2,
49
49
  "description": "标题级别,H1 - H6",
50
+ "x-props": {
51
+ "data-hidebind": true
52
+ },
50
53
  "remarks": "更改文本的展示级别"
51
54
  },
52
55
  "maxLines": {
@@ -54,23 +57,34 @@
54
57
  "type": "number",
55
58
  "description": "应用发布为小程序时,该属性不生效",
56
59
  "default": 2,
57
- "x-index": 5,
60
+ "x-index": 100,
58
61
  "x-category": "高级属性",
59
62
  "remarks": "更改文本支持展示的最大行数,若最大行数无法承载当前文本内容,则会将超出内容用省略号来替代"
60
63
  },
64
+ "tips": {
65
+ "title": "展示文本气泡",
66
+ "type": "boolean",
67
+ "description": "鼠标悬停时展示文本气泡,仅PC端有效",
68
+ "default": true,
69
+ "x-category": "高级属性",
70
+ "remarks": "开启后鼠标悬停在文本组件上会展示文本气泡",
71
+ "x-index": 105
72
+ },
61
73
  "space": {
62
74
  "title": "连续空格",
63
75
  "type": "boolean",
64
76
  "description": "是否显示连续空格",
65
77
  "default": false,
66
78
  "x-category": "高级属性",
67
- "remarks": "开启后文本组件将支持识别多个空格字符,关闭后文本组件仅支持识别单个空格字符(多空格字符会自动转换成单个空格字符)"
79
+ "remarks": "开启后文本组件将支持识别多个空格字符,关闭后文本组件仅支持识别单个空格字符(多空格字符会自动转换成单个空格字符)",
80
+ "x-index": 110
68
81
  },
69
82
  "userSelect": {
70
83
  "title": "是否可选中",
71
84
  "type": "boolean",
72
85
  "description": "是否可选中文本",
73
86
  "default": true,
87
+ "x-index": 115,
74
88
  "x-category": "高级属性",
75
89
  "remarks": "关闭后文本将不支持进行选中,无法进行复制等常见文本操作"
76
90
  }
@@ -90,6 +104,9 @@
90
104
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Text.svg"
91
105
  },
92
106
  "configMeta": {
93
- "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Text"
107
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Text",
108
+ "shortcut": {
109
+ "props": ["text", "level"]
110
+ }
94
111
  }
95
112
  }
@@ -113,7 +113,7 @@
113
113
  "rule": "checkBusiness",
114
114
  "options": {
115
115
  "allowFailure": true,
116
- "title": "小程序组件(获取用户手机号)",
116
+ "title": "当前应用使用了「获取用户手机号」组件,该组件仅支持企业主体小程序使用,再选择符合条件的小程序后再进行发布",
117
117
  "description": "组件功能依赖企业主体小程序",
118
118
  "type": "mp",
119
119
  "version": ""
@@ -98,7 +98,7 @@
98
98
  "rule": "checkBusiness",
99
99
  "options": {
100
100
  "allowFailure": true,
101
- "title": "小程序组件(获取用户手机号授权令牌)",
101
+ "title": "当前应用使用了「获取用户手机号授权令牌」组件,该组件仅支持企业主体小程序使用,再选择符合条件的小程序后再进行发布",
102
102
  "description": "组件功能依赖企业主体小程序",
103
103
  "type": "mp",
104
104
  "version": ""
@@ -148,7 +148,19 @@
148
148
  "categoryOrder": 100,
149
149
  "componentOrder": 1,
150
150
  "platform": ["MP"],
151
- "visible": ["APP"]
151
+ "visible": ["APP"],
152
+ "validate": [
153
+ {
154
+ "rule": "checkIsUsedPreAvartNickComp",
155
+ "options": {
156
+ "allowFailure": false,
157
+ "title": "页面使用了「获取用户信息」组件,因小程序官方规则调整,使用该组件的应用无法再发布上线,请点击右侧的「了解详情」按钮获取相关能力的适配策略,对应用进行改造调整",
158
+ "description": "",
159
+ "type": "component",
160
+ "version": ""
161
+ }
162
+ }
163
+ ]
152
164
  },
153
165
  "configMeta": {
154
166
  "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/UserInfo"
@@ -48,6 +48,7 @@ export namespace components {
48
48
  export namespace actions {
49
49
  export { showToast };
50
50
  export { showModal };
51
+ export { showMessage };
51
52
  }
52
53
  declare namespace _default {
53
54
  export { components };
@@ -101,3 +102,4 @@ import UserTreeSelect from "./components/form/userTreeSelect.json";
101
102
  import DepartTreeSelect from "./components/form/departTreeSelect.json";
102
103
  import showToast from "./actions/showToast.json";
103
104
  import showModal from "./actions/showModal.json";
105
+ import showMessage from "./actions/showMessage.json";
@@ -33,6 +33,7 @@ import NavLayout from './components/navLayout.json';
33
33
  import WedaVideo from './components/wedaVideo.json';
34
34
  import showToast from './actions/showToast.json';
35
35
  import showModal from './actions/showModal.json';
36
+ import showMessage from './actions/showMessage.json';
36
37
  import ListView from './components/listView.json';
37
38
  import NavigationBar from './components/navigationBar.json';
38
39
  import Line from './components/chart/line.json';
@@ -104,6 +105,7 @@ export const components = {
104
105
  export const actions = {
105
106
  showToast,
106
107
  showModal,
108
+ showMessage,
107
109
  };
108
110
  export default {
109
111
  components,
@@ -1,2 +1,3 @@
1
1
  export { default as showToast } from "./showToast";
2
2
  export { default as showModal } from "./showModal";
3
+ export { default as showMessage } from "./showMessage";
@@ -1,2 +1,3 @@
1
1
  export { default as showToast } from './showToast';
2
2
  export { default as showModal } from './showModal';
3
+ export { default as showMessage } from './showMessage';
@@ -0,0 +1,6 @@
1
+ .weda-showmessage__none > .wedatea2td-icon {
2
+ display: none;
3
+ }
4
+
5
+ /*# sourceURL=webpack://./src/web/actions/showMessage/index.css */
6
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvYWN0aW9ucy9zaG93TWVzc2FnZS9pbmRleC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxhQUFhO0FBQ2YiLCJzb3VyY2VzQ29udGVudCI6WyIud2VkYS1zaG93bWVzc2FnZV9fbm9uZSA+IC53ZWRhdGVhMnRkLWljb24ge1xuICBkaXNwbGF5OiBub25lO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== */