@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.
Files changed (81) hide show
  1. package/dist/configs/actions/showMessage.json +45 -0
  2. package/dist/configs/actions/showModal.json +21 -0
  3. package/dist/configs/actions/showToast.json +11 -2
  4. package/dist/configs/components/button.json +1 -1
  5. package/dist/configs/components/calendar.json +1 -1
  6. package/dist/configs/components/carousel.json +76 -66
  7. package/dist/configs/components/chart/bar.json +39 -3
  8. package/dist/configs/components/chart/line.json +5 -2
  9. package/dist/configs/components/chart/pie.json +5 -2
  10. package/dist/configs/components/chart/statisticsCard.json +6 -6
  11. package/dist/configs/components/container.json +16 -2
  12. package/dist/configs/components/dataView.json +47 -4
  13. package/dist/configs/components/form/departTreeSelect.json +1 -1
  14. package/dist/configs/components/form/form.json +1 -1
  15. package/dist/configs/components/form/location.json +2 -2
  16. package/dist/configs/components/form/richText.json +2 -2
  17. package/dist/configs/components/form/uploader.json +1 -1
  18. package/dist/configs/components/form/uploaderFile.json +4 -3
  19. package/dist/configs/components/form/userTreeSelect.json +1 -1
  20. package/dist/configs/components/formdetail.json +6 -1
  21. package/dist/configs/components/graphicCard.json +1 -1
  22. package/dist/configs/components/image.json +6 -3
  23. package/dist/configs/components/link.json +5 -2
  24. package/dist/configs/components/listView.json +148 -43
  25. package/dist/configs/components/lottery.json +1 -1
  26. package/dist/configs/components/modal.json +2 -1
  27. package/dist/configs/components/navLayout.json +1 -1
  28. package/dist/configs/components/navigationBar.json +1 -1
  29. package/dist/configs/components/richtextview.json +5 -2
  30. package/dist/configs/components/scrollVeiw.json +109 -73
  31. package/dist/configs/components/swiper.json +47 -38
  32. package/dist/configs/components/tabs.json +1 -1
  33. package/dist/configs/components/text.json +12 -6
  34. package/dist/configs/components/wedaVideo.json +1 -1
  35. package/dist/configs/components/wxOpenApi/phone.json +2 -2
  36. package/dist/configs/components/wxOpenApi/phoneCode.json +2 -2
  37. package/dist/configs/components/wxOpenApi/share.json +9 -8
  38. package/dist/configs/components/wxOpenApi/userInfo.json +15 -3
  39. package/dist/configs/index.d.ts +2 -0
  40. package/dist/configs/index.js +2 -0
  41. package/dist/web/actions/index.d.ts +1 -0
  42. package/dist/web/actions/index.js +1 -0
  43. package/dist/web/actions/showMessage/index.css +6 -0
  44. package/dist/web/actions/showMessage/index.d.ts +17 -0
  45. package/dist/web/actions/showMessage/index.js +39 -0
  46. package/dist/web/components/button/index.d.ts +3 -2
  47. package/dist/web/components/button/index.js +14 -3
  48. package/dist/web/components/common/use-loop-render-detect.js +7 -6
  49. package/dist/web/components/form/form/index.js +21 -50
  50. package/dist/web/components/form/uploader/uploader.h5.js +1 -1
  51. package/dist/web/components/form/uploader/uploader.pc.js +2 -0
  52. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +12 -10
  53. package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +11 -0
  54. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +10 -8
  55. package/dist/web/components/form/userOrgSelect/comTool.js +4 -3
  56. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +3 -4
  57. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +6 -7
  58. package/dist/web/components/form/userOrgSelect/getUserService.js +2 -1
  59. package/dist/web/components/form/userOrgSelect/userOrgSelect.css +10 -12
  60. package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +4 -6
  61. package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +49 -28
  62. package/dist/web/components/form/userOrgSelect/utils.d.ts +1 -0
  63. package/dist/web/components/form/userOrgSelect/utils.js +15 -0
  64. package/dist/web/components/formdetail/index.css +40 -27
  65. package/dist/web/components/formdetail/index.js +22 -19
  66. package/dist/web/components/link/index.js +2 -1
  67. package/dist/web/components/listView/index.css +5 -1
  68. package/dist/web/components/listView/index.js +22 -2
  69. package/dist/web/components/listView/interface.d.ts +1 -1
  70. package/dist/web/components/navigationBar/index.js +8 -3
  71. package/dist/web/components/phone/index.js +4 -1
  72. package/dist/web/components/phoneCode/index.js +4 -1
  73. package/dist/web/components/richText/index.d.ts +1 -1
  74. package/dist/web/components/richText/index.js +6 -6
  75. package/dist/web/components/share/index.js +4 -1
  76. package/dist/web/components/text/index.js +2 -1
  77. package/dist/web/components/userInfo/index.js +4 -1
  78. package/dist/web/utils/console.js +1 -1
  79. package/dist/web/utils/platform.d.ts +11 -1
  80. package/dist/web/utils/platform.js +61 -12
  81. package/package.json +12 -1
@@ -2,95 +2,119 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
- "scrollY": {
6
- "title": "允许纵向滚动",
5
+ "showScrollbar": {
6
+ "title": "滚动条显隐控制",
7
7
  "type": "boolean",
8
8
  "default": true,
9
+ "x-platforms": ["MP"],
10
+ "x-category": "基础属性",
11
+ "x-index": 1,
12
+ "remarks": "控制滚动条是否显示/隐藏"
13
+ },
14
+ "scrollX": {
15
+ "title": "允许横向滚动",
16
+ "type": "boolean",
17
+ "default": false,
9
18
  "x-linkages": [
10
19
  {
11
20
  "type": "value:visible",
12
- "target": "*(scrollTop)",
21
+ "target": "*(scrollLeft)",
13
22
  "condition": "{{ $self.value }}"
14
23
  }
15
24
  ],
16
25
  "x-category": "基础属性",
17
- "remarks": "开启后,将开启纵向滚动条,组件支持上下滚动"
26
+ "x-index": 2,
27
+ "remarks": "开启后,将开启横向滚动条,组件支持左右滚动"
18
28
  },
19
- "scrollX": {
20
- "title": "允许横向滚动",
29
+ "scrollY": {
30
+ "title": "允许纵向滚动",
21
31
  "type": "boolean",
22
- "default": false,
32
+ "default": true,
23
33
  "x-linkages": [
24
34
  {
25
35
  "type": "value:visible",
26
- "target": "*(scrollLeft)",
36
+ "target": "*(scrollTop)",
27
37
  "condition": "{{ $self.value }}"
28
38
  }
29
39
  ],
30
40
  "x-category": "基础属性",
31
- "remarks": "开启后,将开启横向滚动条,组件支持左右滚动"
41
+ "x-index": 3,
42
+ "remarks": "开启后,将开启纵向滚动条,组件支持上下滚动"
32
43
  },
33
- "upperThreshold": {
34
- "title": "距顶部/左边多远时,触发scrolltoupper事件",
35
- "type": "number",
36
- "default": 50,
37
- "x-category": "高级属性"
44
+ "scrollIntoView": {
45
+ "title": "滚到的元素ID",
46
+ "type": "string",
47
+ "x-category": "高级属性",
48
+ "x-index": 4,
49
+ "remarks": "将当前的元素滚动到浏览器窗口的可视区域内"
38
50
  },
39
- "lowerThreshold": {
40
- "title": "距底部/右边多远时,触发scrolltolower事件",
51
+ "scrollLeft": {
52
+ "title": "横向滚动条位置",
41
53
  "type": "number",
42
- "default": 50,
43
- "x-category": "高级属性"
54
+ "x-category": "高级属性",
55
+ "x-index": 5,
56
+ "remarks": "输入默认值,横向滚动条将默认移动到该位置"
44
57
  },
45
58
  "scrollTop": {
46
59
  "title": "竖向滚动条位置",
47
60
  "type": "number",
48
61
  "x-category": "高级属性",
62
+ "x-index": 6,
49
63
  "remarks": "输入默认值,竖向滚动条将默认移动到该位置"
50
64
  },
51
- "scrollLeft": {
52
- "title": "横向滚动条位置",
65
+ "lowerThreshold": {
66
+ "title": "距底部/右边多远时,触发scrolltolower事件",
53
67
  "type": "number",
54
- "x-category": "高级属性",
55
- "remarks": "输入默认值,横向滚动条将默认移动到该位置"
68
+ "default": 50,
69
+ "x-index": 7,
70
+ "x-category": "高级属性"
56
71
  },
57
- "scrollIntoView": {
58
- "title": "滚到的元素ID",
59
- "type": "string",
60
- "x-category": "高级属性",
61
- "remarks": "将当前的元素滚动到浏览器窗口的可视区域内"
72
+ "upperThreshold": {
73
+ "title": "距顶部/左边多远时,触发scrolltoupper事件",
74
+ "type": "number",
75
+ "default": 50,
76
+ "x-index": 8,
77
+ "x-category": "高级属性"
62
78
  },
63
- "scrollWithAnimation": {
64
- "title": "在设置滚动条位置时使用动画过渡",
79
+ "enhanced": {
80
+ "title": "启用 scroll-view 增强特性",
65
81
  "type": "boolean",
66
82
  "default": false,
83
+ "x-linkages": [
84
+ {
85
+ "type": "value:visible",
86
+ "target": "*(bounces,showScrollbar,pagingEnabled,fastDeceleration)",
87
+ "condition": "{{ $self.value }}"
88
+ }
89
+ ],
67
90
  "x-platforms": ["MP"],
68
91
  "x-category": "高级属性",
69
- "remarks": "开启滚动条动画"
92
+ "x-index": 90,
93
+ "remarks": "开启scroll-view增强特性 "
70
94
  },
71
- "enableBackToTop": {
72
- "title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
95
+ "bounces": {
96
+ "title": "iOS 下 scroll-view 边界弹性控制",
73
97
  "type": "boolean",
74
- "default": false,
98
+ "default": true,
75
99
  "x-platforms": ["MP"],
76
- "x-category": "高级属性",
77
- "remarks": "开启后当执行对应操作后滚动条将自动返回顶部"
100
+ "x-index": 91,
101
+ "x-category": "高级属性"
78
102
  },
79
- "enableFlex": {
80
- "title": "启用 flexbox 布局",
103
+ "pagingEnabled": {
104
+ "title": "分页滑动效果",
81
105
  "type": "boolean",
82
106
  "default": false,
83
107
  "x-platforms": ["MP"],
84
- "x-category": "高级属性",
85
- "remarks": "开启flexbox布局"
108
+ "x-index": 93,
109
+ "x-category": "高级属性"
86
110
  },
87
- "scrollAnchoring": {
88
- "title": "开启 scroll anchoring 特性",
111
+ "fastDeceleration": {
112
+ "title": "滑动减速速率控制",
89
113
  "type": "boolean",
90
114
  "default": false,
91
115
  "x-platforms": ["MP"],
92
- "x-category": "高级属性",
93
- "remarks": "开启scroll-anchoring特性"
116
+ "x-index": 94,
117
+ "x-category": "高级属性"
94
118
  },
95
119
  "refresherEnabled": {
96
120
  "title": "开启自定义下拉刷新",
@@ -105,12 +129,14 @@
105
129
  ],
106
130
  "x-platforms": ["MP"],
107
131
  "x-category": "高级属性",
132
+ "x-index": 100,
108
133
  "remarks": "开启后可自定义对下拉刷新进行相关配置"
109
134
  },
110
135
  "refresherThreshold": {
111
136
  "title": "设置自定义下拉刷新阈值",
112
137
  "type": "number",
113
138
  "default": 50,
139
+ "x-index": 101,
114
140
  "x-platforms": ["MP"],
115
141
  "x-category": "高级属性"
116
142
  },
@@ -134,6 +160,7 @@
134
160
  }
135
161
  ],
136
162
  "x-platforms": ["MP"],
163
+ "x-index": 102,
137
164
  "x-category": "高级属性"
138
165
  },
139
166
  "refresherBackground": {
@@ -141,6 +168,7 @@
141
168
  "type": "color",
142
169
  "default": "#fff",
143
170
  "x-platforms": ["MP"],
171
+ "x-index": 103,
144
172
  "x-category": "高级属性"
145
173
  },
146
174
  "refresherTriggered": {
@@ -148,51 +176,44 @@
148
176
  "type": "boolean",
149
177
  "default": false,
150
178
  "x-platforms": ["MP"],
179
+ "x-index": 104,
151
180
  "x-category": "高级属性"
152
181
  },
153
- "enhanced": {
154
- "title": "启用 scroll-view 增强特性",
182
+ "scrollAnchoring": {
183
+ "title": "开启 scroll anchoring 特性",
155
184
  "type": "boolean",
156
185
  "default": false,
157
- "x-linkages": [
158
- {
159
- "type": "value:visible",
160
- "target": "*(bounces,showScrollbar,pagingEnabled,fastDeceleration)",
161
- "condition": "{{ $self.value }}"
162
- }
163
- ],
164
186
  "x-platforms": ["MP"],
165
187
  "x-category": "高级属性",
166
- "remarks": "开启scroll-view增强特性 "
167
- },
168
- "bounces": {
169
- "title": "iOS 下 scroll-view 边界弹性控制",
170
- "type": "boolean",
171
- "default": true,
172
- "x-platforms": ["MP"],
173
- "x-category": "高级属性"
188
+ "x-index": 110,
189
+ "remarks": "开启scroll-anchoring特性"
174
190
  },
175
- "showScrollbar": {
176
- "title": "滚动条显隐控制",
191
+ "enableFlex": {
192
+ "title": "启用 flexbox 布局",
177
193
  "type": "boolean",
178
- "default": true,
194
+ "default": false,
179
195
  "x-platforms": ["MP"],
180
- "x-category": "基础属性",
181
- "remarks": "控制滚动条是否显示/隐藏"
196
+ "x-category": "高级属性",
197
+ "x-index": 120,
198
+ "remarks": "开启flexbox布局"
182
199
  },
183
- "pagingEnabled": {
184
- "title": "分页滑动效果",
200
+ "enableBackToTop": {
201
+ "title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
185
202
  "type": "boolean",
186
203
  "default": false,
187
204
  "x-platforms": ["MP"],
188
- "x-category": "高级属性"
205
+ "x-category": "高级属性",
206
+ "x-index": 130,
207
+ "remarks": "开启后当执行对应操作后滚动条将自动返回顶部"
189
208
  },
190
- "fastDeceleration": {
191
- "title": "滑动减速速率控制",
209
+ "scrollWithAnimation": {
210
+ "title": "在设置滚动条位置时使用动画过渡",
192
211
  "type": "boolean",
193
212
  "default": false,
194
213
  "x-platforms": ["MP"],
195
- "x-category": "高级属性"
214
+ "x-index": 140,
215
+ "x-category": "高级属性",
216
+ "remarks": "开启滚动条动画"
196
217
  }
197
218
  }
198
219
  },
@@ -243,10 +264,25 @@
243
264
  "description": "当组件元素内容长度大于滚动容器时,滚动容器会出滚动条用来对页面内容进行滑动展示。",
244
265
  "category": "布局容器",
245
266
  "componentOrder": 80,
246
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ScrollView.svg"
267
+ "icon": "../icons/ScrollView.svg"
247
268
  },
248
269
  "configMeta": {
249
- "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView"
270
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView",
271
+ "shortcut": {
272
+ "props": ["scrollX", "scrollY"],
273
+ "extra": {
274
+ "container": {
275
+ "x-component": "container",
276
+ "x-component-props": [
277
+ "gsd-h5-react:Text",
278
+ "CLOUDBASE_STANDARD:Button",
279
+ "gsd-h5-react:Image",
280
+ "CLOUDBASE_STANDARD:FormInput"
281
+ ],
282
+ "x-index": 1
283
+ }
284
+ }
285
+ }
250
286
  },
251
287
  "isContainer": true,
252
288
  "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
  },
@@ -80,7 +89,7 @@
80
89
  "description": "用于快速在页面搭建轮播图展示效果,并支持轮播图的跳转、播放配置。",
81
90
  "category": "布局容器",
82
91
  "componentOrder": 80,
83
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Swiper.svg"
92
+ "icon": "../icons/Swiper.svg"
84
93
  },
85
94
  "configMeta": {
86
95
  "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Swiper"
@@ -114,7 +114,7 @@
114
114
  "title": "选项卡",
115
115
  "description": "用于实现常见的选项卡切换效果。",
116
116
  "category": "展示",
117
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/TabsContainer.svg"
117
+ "icon": "../icons/Tabs.svg"
118
118
  },
119
119
  "configMeta": {
120
120
  "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Tabs"
@@ -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": {
@@ -81,9 +84,9 @@
81
84
  "type": "boolean",
82
85
  "description": "是否可选中文本",
83
86
  "default": true,
87
+ "x-index": 115,
84
88
  "x-category": "高级属性",
85
- "remarks": "关闭后文本将不支持进行选中,无法进行复制等常见文本操作",
86
- "x-index": 115
89
+ "remarks": "关闭后文本将不支持进行选中,无法进行复制等常见文本操作"
87
90
  }
88
91
  }
89
92
  },
@@ -98,9 +101,12 @@
98
101
  "description": "用于展示页面中的文本内容。",
99
102
  "category": "文本",
100
103
  "componentOrder": 100,
101
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Text.svg"
104
+ "icon": "../icons/Text.svg"
102
105
  },
103
106
  "configMeta": {
104
- "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
+ }
105
111
  }
106
112
  }
@@ -82,7 +82,7 @@
82
82
  "name": "wedaVideo",
83
83
  "title": "视频播放",
84
84
  "description": "用于视频播放",
85
- "icon": "https://qcloudimg.tencent-cloud.cn/raw/c622c16cc4841ef7e99cfe3c05c76f2f.svg",
85
+ "icon": "../icons/WedaVideo.svg",
86
86
  "category": "多媒体",
87
87
  "visible": ["APP"]
88
88
  }
@@ -102,7 +102,7 @@
102
102
  "meta": {
103
103
  "title": "获取用户手机号",
104
104
  "description": "在小程序运行态对用户的手机号进行获取。",
105
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Phone.svg",
105
+ "icon": "../../icons/Phone.svg",
106
106
  "category": "微信开放能力",
107
107
  "categoryOrder": 100,
108
108
  "componentOrder": 2,
@@ -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": ""
@@ -87,7 +87,7 @@
87
87
  "meta": {
88
88
  "title": "获取用户手机号授权令牌",
89
89
  "description": "获取用户手机号授权令牌组件",
90
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Phone.svg",
90
+ "icon": "../../icons/PhoneCode.svg",
91
91
  "category": "微信开放能力",
92
92
  "categoryOrder": 100,
93
93
  "componentOrder": 2,
@@ -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": ""
@@ -62,18 +62,19 @@
62
62
  "x-index": 3
63
63
  },
64
64
  "title": {
65
- "title": "{{text('分享标题', help('分享(转发)卡片的标题'))}}",
65
+ "title": "分享标题",
66
+ "description": "分享(转发)卡片的标题",
66
67
  "type": "string",
67
68
  "default": "",
68
69
  "x-category": "基础属性",
69
- "description": "",
70
70
  "remarks": "分享(转发)卡片的标题",
71
71
  "x-component": "textarea",
72
72
  "x-platforms": ["MP"],
73
73
  "x-index": 4
74
74
  },
75
75
  "image": {
76
- "title": "{{text('分享图片', help('分享(转发)卡片的图片'))}}",
76
+ "title": "分享图片",
77
+ "description": "分享(转发)卡片的图片",
77
78
  "type": "string",
78
79
  "x-component": "image",
79
80
  "x-rules": [
@@ -84,14 +85,14 @@
84
85
  ],
85
86
  "default": "",
86
87
  "x-platforms": ["MP"],
87
- "description": "",
88
88
  "remarks": "分享(转发)卡片的图片",
89
89
  "x-category": "基础属性",
90
90
  "x-index": 5
91
91
  },
92
92
  "path": {
93
93
  "type": "string",
94
- "title": "{{text('选择页面', help('选择分享(转发)的页面'))}}",
94
+ "title": "选择页面",
95
+ "description": "选择分享(转发)的页面",
95
96
  "default": "",
96
97
  "x-index": 6,
97
98
  "addHidden": true,
@@ -107,7 +108,6 @@
107
108
  "condition": "{{$self.value && $self.value.length>0}}"
108
109
  }
109
110
  ],
110
- "description": "",
111
111
  "x-component": "page-list",
112
112
  "x-component-props": {
113
113
  "hideAddPlatform": ["MP"]
@@ -133,12 +133,13 @@
133
133
  },
134
134
  "params": {
135
135
  "type": "array",
136
- "title": "{{text('参数', help('如果采用绑定数据的方式,数据格式参考如下:[{key: \"paramKey1\", value: \"paramValue1\"}, {key: \"paramKey2\", value: \"paramValue2\"}]'))}}",
136
+ "title": "参数",
137
137
  "x-category": "基础属性",
138
138
  "remarks": "分享(转发)的页面的参数,会自动获取到当前选择页面内存在的页面参数并自动根据页面参数进行展开,当用户通过转发的链接进入小程序时,页面便会按照配置的参数进行渲染。如果采用绑定数据的方式,数据格式参考如下:[{key: 'paramKey1', value: 'paramValue1'}, {key: 'paramKey2', value: 'paramValue2'}]",
139
139
  "pageId": "",
140
140
  "default": [],
141
141
  "x-index": 8,
142
+ "description": "如果采用绑定数据的方式,数据格式参考如下:[{key: \"paramKey1\", value: \"paramValue1\"}, {key: \"paramKey2\", value: \"paramValue2\"}]",
142
143
  "x-component": "page-params"
143
144
  }
144
145
  }
@@ -147,7 +148,7 @@
147
148
  "meta": {
148
149
  "title": "小程序分享",
149
150
  "description": "支持快捷实现小程序分享功能。",
150
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Share.svg",
151
+ "icon": "../../icons/Share.svg",
151
152
  "category": "微信开放能力",
152
153
  "categoryOrder": 100,
153
154
  "componentOrder": 3,
@@ -141,14 +141,26 @@
141
141
  }
142
142
  ],
143
143
  "meta": {
144
- "title": "获取用户信息",
144
+ "title": "获取用户信息(已废弃)",
145
145
  "description": "能够在小程序运行态对用户的微信头像、微信昵称等信息进行获取。",
146
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UserInfo.svg",
146
+ "icon": "../../icons/UserInfo.svg",
147
147
  "category": "微信开放能力",
148
148
  "categoryOrder": 100,
149
149
  "componentOrder": 1,
150
150
  "platform": ["MP"],
151
- "visible": ["APP"]
151
+ "visible": [],
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";