@cloudbase/weda-ui 2.0.11 → 2.0.12

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 (194) hide show
  1. package/README.md +1 -0
  2. package/package.json +5 -4
  3. package/src/configs/components/button.json +60 -13
  4. package/src/configs/components/calendar.json +3 -3
  5. package/src/configs/components/carousel.json +57 -47
  6. package/src/configs/components/chart/bar.json +4 -13
  7. package/src/configs/components/chart/line.json +4 -13
  8. package/src/configs/components/chart/pie.json +3 -10
  9. package/src/configs/components/chart/statisticsCard.json +1 -4
  10. package/src/configs/components/container.json +1 -3
  11. package/src/configs/components/dataView.json +7 -15
  12. package/src/configs/components/drawer.json +24 -6
  13. package/src/configs/components/form/form.json +19 -0
  14. package/src/configs/components/form/input.json +20 -5
  15. package/src/configs/components/form/location.json +51 -48
  16. package/src/configs/components/form/radio.json +1 -3
  17. package/src/configs/components/form/richText.json +14 -14
  18. package/src/configs/components/form/select.json +62 -82
  19. package/src/configs/components/form/textarea.json +6 -1
  20. package/src/configs/components/form/uploader.json +64 -64
  21. package/src/configs/components/form/uploaderFile.json +1 -2
  22. package/src/configs/components/graphicCard.json +43 -44
  23. package/src/configs/components/image.json +44 -40
  24. package/src/configs/components/link.json +5 -10
  25. package/src/configs/components/listView.json +2 -8
  26. package/src/configs/components/lottery.json +7 -3
  27. package/src/configs/components/modal.json +26 -21
  28. package/src/configs/components/navLayout.json +66 -67
  29. package/src/configs/components/navigationBar.json +4 -1
  30. package/src/configs/components/richtextview.json +1 -1
  31. package/src/configs/components/scrollVeiw.json +14 -42
  32. package/src/configs/components/swiper.json +9 -9
  33. package/src/configs/components/wedaVideo.json +86 -0
  34. package/src/configs/components/wxOpenApi/phone.json +7 -21
  35. package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
  36. package/src/configs/components/wxOpenApi/share.json +14 -24
  37. package/src/configs/components/wxOpenApi/userInfo.json +9 -27
  38. package/src/configs/index.js +2 -0
  39. package/src/docs/common/format.tsx +4 -1
  40. package/src/docs/common/tableView.css +3 -3
  41. package/src/docs/common/tableView.tsx +18 -8
  42. package/src/docs/compsdocs/form/FormLocation.mdx +1 -1
  43. package/src/docs/compsdocs/form/FormSelect.mdx +0 -1
  44. package/src/docs/compsdocs/grid/Card.mdx +0 -1
  45. package/src/docs/compsdocs/grid/Container.mdx +0 -1
  46. package/src/docs/compsdocs/grid/GridLayout.mdx +0 -1
  47. package/src/docs/compsdocs/grid/ScrollView.mdx +2 -2
  48. package/src/docs/compsdocs/grid/Swiper.mdx +1 -2
  49. package/src/docs/compsdocs/media/Icon.mdx +1 -1
  50. package/src/docs/compsdocs/media/Image.mdx +6 -6
  51. package/src/docs/compsdocs/model/ModelCreate.mdx +24 -0
  52. package/src/docs/compsdocs/model/ModelDetail.mdx +24 -0
  53. package/src/docs/compsdocs/model/ModelTable.mdx +133 -1
  54. package/src/docs/compsdocs/model/ModelUpdate.mdx +24 -1
  55. package/src/docs/compsdocs/navmenu/Classification.mdx +2 -3
  56. package/src/docs/compsdocs/navmenu/NavBar.mdx +14 -5
  57. package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -1
  58. package/src/docs/compsdocs/navmenu/TabBar.mdx +3 -3
  59. package/src/docs/compsdocs/navmenu/TabBarItem.mdx +1 -1
  60. package/src/docs/compsdocs/senior/Lottery.mdx +3 -6
  61. package/src/docs/compsdocs/senior/Modal.mdx +2 -3
  62. package/src/docs/compsdocs/senior/SlotMachine.mdx +2 -5
  63. package/src/docs/compsdocs/senior/_category_.json +1 -1
  64. package/src/docs/compsdocs/show/GraphicCard.mdx +0 -1
  65. package/src/docs/compsdocs/show/Item.mdx +0 -1
  66. package/src/docs/compsdocs/show/ItemList.mdx +1 -0
  67. package/src/docs/compsdocs/show/Tabs.mdx +2 -3
  68. package/src/docs/compsdocs/text/Link.mdx +1 -1
  69. package/src/docs/compsdocs/text/RichTextView.mdx +1 -2
  70. package/src/docs/compsdocs/text/Text.mdx +1 -1
  71. package/src/docs/compsdocs/text/Title.mdx +1 -2
  72. package/src/docs/compsdocs/wxOpen/Phone.mdx +1 -2
  73. package/src/docs/compsdocs/wxOpen/Share.mdx +0 -1
  74. package/src/docs/compsdocs/wxOpen/UserInfo.mdx +1 -2
  75. package/src/mp/components/calendar/index.json +1 -1
  76. package/src/mp/components/calendar/index.wxml +5 -27
  77. package/src/mp/components/carousel/index.json +1 -1
  78. package/src/mp/components/carousel/index.wxml +3 -30
  79. package/src/mp/components/chart/bar/index.wxml +1 -6
  80. package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
  81. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +2 -19
  82. package/src/mp/components/chart/line/index.wxml +1 -6
  83. package/src/mp/components/chart/pie/index.wxml +1 -6
  84. package/src/mp/components/chart/statisticsCard/index.wxml +1 -5
  85. package/src/mp/components/dataView/index.wxml +1 -13
  86. package/src/mp/components/form/checkbox/index.wxml +3 -18
  87. package/src/mp/components/form/formcell/index.wxss +5 -0
  88. package/src/mp/components/form/input/index.wxml +3 -16
  89. package/src/mp/components/form/input/index.wxss +7 -1
  90. package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
  91. package/src/mp/components/form/location/components/mapChoose/index.wxml +11 -58
  92. package/src/mp/components/form/location/index.js +7 -1
  93. package/src/mp/components/form/location/index.json +1 -1
  94. package/src/mp/components/form/location/index.wxml +7 -43
  95. package/src/mp/components/form/radio/index.wxml +2 -14
  96. package/src/mp/components/form/select/index.wxml +3 -33
  97. package/src/mp/components/form/select/index.wxss +9 -0
  98. package/src/mp/components/form/switch/index.wxml +2 -13
  99. package/src/mp/components/form/textarea/index.wxml +4 -23
  100. package/src/mp/components/form/textarea/index.wxss +5 -0
  101. package/src/mp/components/form/uploader/index.wxml +2 -20
  102. package/src/mp/components/form/uploader/weui-uploader.json +6 -6
  103. package/src/mp/components/form/uploader/weui-uploader.wxml +10 -53
  104. package/src/mp/components/form/uploaderFile/index.wxml +14 -71
  105. package/src/mp/components/graphicCard/index.js +9 -11
  106. package/src/mp/components/graphicCard/index.wxml +6 -34
  107. package/src/mp/components/image/index.wxml +3 -21
  108. package/src/mp/components/listView/index.wxml +8 -33
  109. package/src/mp/components/lottery/index.wxml +7 -31
  110. package/src/mp/components/navLayout/index.js +9 -12
  111. package/src/mp/components/navLayout/index.wxml +6 -30
  112. package/src/mp/components/navigationBar/index.json +1 -2
  113. package/src/mp/components/navigationBar/index.wxml +29 -146
  114. package/src/mp/components/swiper/index.wxml +1 -14
  115. package/src/mp/components/tabs/index.json +1 -1
  116. package/src/mp/components/tabs/index.wxml +3 -22
  117. package/src/mp/components/text/index.wxml +1 -7
  118. package/src/mp/components/wedaVideo/index.js +86 -0
  119. package/src/mp/components/wedaVideo/index.json +4 -0
  120. package/src/mp/components/wedaVideo/index.wxml +4 -0
  121. package/src/mp/components/wedaVideo/index.wxss +20 -0
  122. package/src/mp/components/wxOpenApi/phone/index.js +1 -9
  123. package/src/mp/components/wxOpenApi/phone/index.wxml +1 -11
  124. package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
  125. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +1 -11
  126. package/src/mp/components/wxOpenApi/share/index.wxml +1 -11
  127. package/src/mp/components/wxOpenApi/userInfo/index.wxml +1 -10
  128. package/src/mp/index.json +1 -0
  129. package/src/mp/style/weda-ui.wxss +12 -4
  130. package/src/web/actions/showModal/index.tsx +5 -4
  131. package/src/web/components/calendar/index.css +81 -34
  132. package/src/web/components/chart/common/core/eChartBase.ts +55 -42
  133. package/src/web/components/chart/common/core/type.ts +23 -23
  134. package/src/web/components/chart/common/echart.css +12 -12
  135. package/src/web/components/chart/common/echarts.ts +3 -5
  136. package/src/web/components/chart/common/useChart.tsx +34 -16
  137. package/src/web/components/container/index.tsx +3 -4
  138. package/src/web/components/drawer/index.tsx +15 -4
  139. package/src/web/components/form/checkbox/index.tsx +32 -31
  140. package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
  141. package/src/web/components/form/form/index.css +3 -6
  142. package/src/web/components/form/form/index.tsx +2 -1
  143. package/src/web/components/form/formcell/index.css +5 -3
  144. package/src/web/components/form/formcell/index.tsx +2 -6
  145. package/src/web/components/form/input/index.css +4 -4
  146. package/src/web/components/form/input/index.tsx +61 -53
  147. package/src/web/components/form/location/common/selectModal.jsx +2 -11
  148. package/src/web/components/form/location/common/useLocationInfo.js +4 -0
  149. package/src/web/components/form/location/components/LocationH5/index.css +0 -1
  150. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
  151. package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
  152. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
  153. package/src/web/components/form/radio/index.tsx +32 -26
  154. package/src/web/components/form/renderDecorator.tsx +23 -26
  155. package/src/web/components/form/select/h5.tsx +1 -1
  156. package/src/web/components/form/select/index.css +9 -0
  157. package/src/web/components/form/select/index.tsx +75 -48
  158. package/src/web/components/form/select/region/index.ts +101 -80
  159. package/src/web/components/form/select/year.tsx +2 -0
  160. package/src/web/components/form/switch/index.tsx +40 -40
  161. package/src/web/components/form/textarea/index.css +4 -0
  162. package/src/web/components/form/textarea/index.tsx +26 -25
  163. package/src/web/components/form/types.d.ts +10 -10
  164. package/src/web/components/form/uploaderFile/index.jsx +0 -5
  165. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +15 -11
  166. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +14 -9
  167. package/src/web/components/image/image.tsx +2 -2
  168. package/src/web/components/image/index.css +9 -7
  169. package/src/web/components/image/index.tsx +28 -11
  170. package/src/web/components/index.js +1 -0
  171. package/src/web/components/link/index.tsx +12 -12
  172. package/src/web/components/lottery/index.css +43 -37
  173. package/src/web/components/lottery/index.tsx +2 -2
  174. package/src/web/components/modal/index.tsx +34 -34
  175. package/src/web/components/picker/datePicker.tsx +3 -3
  176. package/src/web/components/picker/picker.tsx +3 -3
  177. package/src/web/components/richText/index.jsx +41 -46
  178. package/src/web/components/richTextView/index.tsx +4 -6
  179. package/src/web/components/scrollView/index.tsx +2 -2
  180. package/src/web/components/slot/index.tsx +3 -4
  181. package/src/web/components/swiper/index.css +1 -1
  182. package/src/web/components/swiper/index.tsx +33 -15
  183. package/src/web/components/tabs/index.css +1 -1
  184. package/src/web/components/tabs/index.tsx +6 -6
  185. package/src/web/components/tabs/tabs.h5.tsx +17 -12
  186. package/src/web/components/tabs/tabs.pc.tsx +45 -34
  187. package/src/web/components/text/index.css +1 -1
  188. package/src/web/components/wedaVideo/index.css +42 -0
  189. package/src/web/components/wedaVideo/index.tsx +198 -0
  190. package/src/web/utils/constant.ts +2 -1
  191. package/src/web/utils/loading-fallback.tsx +2 -2
  192. package/src/web/utils/lodash.ts +1 -1
  193. package/src/web/utils/useSetState.ts +6 -2
  194. package/src/web/weda-ui.css +13 -0
@@ -20,6 +20,12 @@
20
20
  "icon": {
21
21
  "type": "string",
22
22
  "x-component": "image",
23
+ "x-rules": [
24
+ {
25
+ "message": "请输入合法的图片地址",
26
+ "pattern": "^(((https?)://)|/resources/)[^\\s]+$"
27
+ }
28
+ ],
23
29
  "title": "图片",
24
30
  "default": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
25
31
  "x-index": 20
@@ -54,18 +60,13 @@
54
60
  "icon": "weda-editor-icon-link",
55
61
  "tooltip": [
56
62
  {
57
- "platform": [
58
- "ALL",
59
- "MP"
60
- ],
63
+ "platform": ["ALL", "MP"],
61
64
  "text": "小程序平台不支持跳转外部链接"
62
65
  }
63
66
  ],
64
67
  "disabled": [
65
68
  {
66
- "platform": [
67
- "MP"
68
- ]
69
+ "platform": ["MP"]
69
70
  }
70
71
  ]
71
72
  }
@@ -106,9 +107,7 @@
106
107
  "x-category": "基础属性",
107
108
  "x-index": 120,
108
109
  "x-component-props": {
109
- "hideAddPlatform": [
110
- "MP"
111
- ],
110
+ "hideAddPlatform": ["MP"],
112
111
  "addHidden": true
113
112
  },
114
113
  "x-linkages": [
@@ -183,40 +182,6 @@
183
182
  "x-component": "list",
184
183
  "remarks": "配置图文卡片的详细内容"
185
184
  },
186
- "ColMobile": {
187
- "type": "number",
188
- "default": 2,
189
- "title": "移动端列数",
190
- "x-category": "基础属性",
191
- "remarks": "移动端每行卡片列数",
192
- "enum": [
193
- {
194
- "label": "1",
195
- "value": 1
196
- },
197
- {
198
- "label": "2",
199
- "value": 2
200
- }
201
- ]
202
- },
203
- "ColPC": {
204
- "type": "number",
205
- "default": 4,
206
- "title": "PC端列数",
207
- "x-category": "基础属性",
208
- "remarks": "PC端每行卡片列数",
209
- "enum": [
210
- {
211
- "label": "3",
212
- "value": 3
213
- },
214
- {
215
- "label": "4",
216
- "value": 4
217
- }
218
- ]
219
- },
220
185
  "textAlign": {
221
186
  "title": "对齐",
222
187
  "type": "string",
@@ -398,6 +363,40 @@
398
363
  "default": "查看详情",
399
364
  "x-category": "高级属性",
400
365
  "x-index": 160
366
+ },
367
+ "ColMobile": {
368
+ "type": "number",
369
+ "default": 2,
370
+ "title": "移动端列数",
371
+ "x-category": "基础属性",
372
+ "remarks": "移动端每行卡片列数",
373
+ "enum": [
374
+ {
375
+ "label": "1",
376
+ "value": 1
377
+ },
378
+ {
379
+ "label": "2",
380
+ "value": 2
381
+ }
382
+ ]
383
+ },
384
+ "ColPC": {
385
+ "type": "number",
386
+ "default": 4,
387
+ "title": "PC端列数",
388
+ "x-category": "基础属性",
389
+ "remarks": "PC端每行卡片列数",
390
+ "enum": [
391
+ {
392
+ "label": "3",
393
+ "value": 3
394
+ },
395
+ {
396
+ "label": "4",
397
+ "value": 4
398
+ }
399
+ ]
401
400
  }
402
401
  }
403
402
  },
@@ -6,28 +6,38 @@
6
6
  "title": "图片地址",
7
7
  "type": "string",
8
8
  "x-component": "image",
9
+ "x-rules": [
10
+ {
11
+ "message": "请输入合法的图片地址",
12
+ "pattern": "^(((https?)://)|/resources/)[^\\s]+$"
13
+ }
14
+ ],
9
15
  "default": "https://main.qcloudimg.com/raw/c85c9a875e9754545ee19f20438b2caa.svg",
10
16
  "x-category": "基础属性",
11
17
  "x-index": 1,
12
- "remarks":"更改需要展示的图片"
18
+ "remarks": "更改需要展示的图片"
13
19
  },
14
- "alt": {
15
- "title": "替代文字",
20
+ "fit": {
21
+ "title": "布局模式",
16
22
  "type": "string",
17
- "default": "[图片]",
18
- "x-category": "高级属性",
19
- "description": "用于图片加载失败 或 屏幕阅读器替代显示",
20
- "remarks":"当图片加载失败时,会展示此处配置的文本内容"
21
- },
22
- "showMenuByLongpress": {
23
- "title": "识别小程序码",
24
- "type": "boolean",
25
- "x-platforms": [
26
- "MP"
23
+ "default": "cover",
24
+ "enum": [
25
+ {
26
+ "value": "cover",
27
+ "label": "铺满"
28
+ },
29
+ {
30
+ "value": "contain",
31
+ "label": "适合"
32
+ },
33
+ {
34
+ "value": "fill",
35
+ "label": "拉伸"
36
+ }
27
37
  ],
28
- "x-category": "高级属性",
29
- "description": "小程序专有属性,长按图片可唤起识别小程序码功能",
30
- "remarks":"只有小程序端构建时生效,长按图片可唤起识别小程序码功能"
38
+ "x-category": "基础属性",
39
+ "x-index": 2,
40
+ "remarks": "更改图片的布局模式"
31
41
  },
32
42
  "imgPreview": {
33
43
  "title": "点击预览大图",
@@ -42,7 +52,7 @@
42
52
  "condition": "{{ $self.value }}"
43
53
  }
44
54
  ],
45
- "remarks":"开启后,点击图片后图片会展示为大图"
55
+ "remarks": "开启后,点击图片后图片会展示为大图"
46
56
  },
47
57
  "maskClosable": {
48
58
  "title": "再次点击关闭预览",
@@ -51,35 +61,29 @@
51
61
  "default": true,
52
62
  "x-category": "基础属性"
53
63
  },
64
+ "alt": {
65
+ "title": "替代文字",
66
+ "type": "string",
67
+ "default": "[图片]",
68
+ "x-category": "高级属性",
69
+ "description": "用于图片加载失败 或 屏幕阅读器替代显示",
70
+ "remarks": "当图片加载失败时,会展示此处配置的文本内容"
71
+ },
72
+ "showMenuByLongpress": {
73
+ "title": "识别小程序码",
74
+ "type": "boolean",
75
+ "x-platforms": ["MP"],
76
+ "x-category": "高级属性",
77
+ "description": "小程序专有属性,长按图片可唤起识别小程序码功能",
78
+ "remarks": "只有小程序端构建时生效,长按图片可唤起识别小程序码功能"
79
+ },
54
80
  "lazyLoad": {
55
81
  "title": "懒加载",
56
82
  "type": "boolean",
57
83
  "default": false,
58
84
  "x-category": "高级属性",
59
85
  "description": "图片按需加载,若图片没有被展示,则不会加载",
60
- "remarks":"图片按需加载,若图片没有被展示,则不会加载"
61
- },
62
- "fit": {
63
- "title": "布局模式",
64
- "type": "string",
65
- "default": "cover",
66
- "enum": [
67
- {
68
- "value": "cover",
69
- "label": "铺满"
70
- },
71
- {
72
- "value": "contain",
73
- "label": "适合"
74
- },
75
- {
76
- "value": "fill",
77
- "label": "拉伸"
78
- }
79
- ],
80
- "x-category": "基础属性",
81
- "x-index": 2,
82
- "remarks":"更改图片的布局模式"
86
+ "remarks": "图片按需加载,若图片没有被展示,则不会加载"
83
87
  },
84
88
  "mode": {
85
89
  "display": false,
@@ -2,9 +2,6 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
- "contentSlot": {
6
- "type": "slot"
7
- },
8
5
  "content": {
9
6
  "type": "string",
10
7
  "default": "这是一个链接",
@@ -21,9 +18,7 @@
21
18
  "x-category": "基础属性",
22
19
  "x-index": 120,
23
20
  "x-component-props": {
24
- "hideAddPlatform": [
25
- "MP"
26
- ]
21
+ "hideAddPlatform": ["MP"]
27
22
  },
28
23
  "remarks": "选择点击链接后跳转的页面,小程序端构建时仅支持选择跳转应用页面"
29
24
  },
@@ -58,6 +53,9 @@
58
53
  }
59
54
  },
60
55
  "remarks": "填写跳转页面时携带的参数,用于页面传参"
56
+ },
57
+ "contentSlot": {
58
+ "type": "slot"
61
59
  }
62
60
  }
63
61
  },
@@ -67,10 +65,7 @@
67
65
  "category": "文本",
68
66
  "componentOrder": 10,
69
67
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg",
70
- "platform": [
71
- "MOBILEWEB",
72
- "PCWEB"
73
- ]
68
+ "platform": ["MOBILEWEB", "PCWEB"]
74
69
  },
75
70
  "configMeta": {
76
71
  "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Link"
@@ -101,14 +101,8 @@
101
101
  }
102
102
  ],
103
103
  "blackListConfig": {
104
- "format": [
105
- "x-file",
106
- "x-image"
107
- ],
108
- "type": [
109
- "object",
110
- "array"
111
- ]
104
+ "format": ["x-file", "x-image"],
105
+ "type": ["object", "array"]
112
106
  },
113
107
  "customRelOptions": {
114
108
  "number": [
@@ -21,6 +21,12 @@
21
21
  },
22
22
  "image": {
23
23
  "type": "image",
24
+ "x-rules": [
25
+ {
26
+ "message": "请输入合法的图片地址",
27
+ "pattern": "^(((https?)://)|/resources/)[^\\s]+$"
28
+ }
29
+ ],
24
30
  "title": "奖品图片",
25
31
  "default": ""
26
32
  }
@@ -146,8 +152,6 @@
146
152
  "category": "高级",
147
153
  "componentOrder": 101,
148
154
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/NavLayout.svg",
149
- "visible": [
150
- "APP"
151
- ]
155
+ "visible": ["APP"]
152
156
  }
153
157
  }
@@ -14,6 +14,24 @@
14
14
  "default": true,
15
15
  "x-index": 20
16
16
  },
17
+ "isDefaultButton": {
18
+ "type": "boolean",
19
+ "title": "显示默认按钮",
20
+ "default": true,
21
+ "x-index": 30
22
+ },
23
+ "customContent": {
24
+ "type": "string",
25
+ "title": "customContent",
26
+ "isReactNode": true,
27
+ "x-index": 40
28
+ },
29
+ "customButton": {
30
+ "type": "string",
31
+ "title": "customButton",
32
+ "isReactNode": true,
33
+ "x-index": 50
34
+ },
17
35
  "size": {
18
36
  "type": "string",
19
37
  "x-component": "select",
@@ -41,33 +59,20 @@
41
59
  "value": "auto",
42
60
  "label": "自动"
43
61
  }
44
-
45
62
  ]
46
63
  }
47
- },
48
- "isDefaultButton": {
49
- "type": "boolean",
50
- "title": "显示默认按钮",
51
- "default": true,
52
- "x-index": 30
53
- },
54
- "customContent": {
55
- "type": "string",
56
- "title": "customContent",
57
- "isReactNode": true,
58
- "x-index": 40
59
- },
60
- "customButton": {
61
- "type": "string",
62
- "title": "customButton",
63
- "isReactNode": true,
64
- "x-index": 50
65
64
  }
66
65
  }
67
66
  },
68
67
  "events": [
69
- { "title": "窗口关闭", "name": "close" },
70
- { "title": "默认按钮点击", "name": "confirm" }
68
+ {
69
+ "title": "窗口关闭",
70
+ "name": "close"
71
+ },
72
+ {
73
+ "title": "默认按钮点击",
74
+ "name": "confirm"
75
+ }
71
76
  ],
72
77
  "meta": {
73
78
  "title": "弹窗",
@@ -73,6 +73,12 @@
73
73
  },
74
74
  "iconSrc": {
75
75
  "type": "image",
76
+ "x-rules": [
77
+ {
78
+ "message": "请输入合法的图片地址",
79
+ "pattern": "^(((https?)://)|/resources/)[^\\s]+$"
80
+ }
81
+ ],
76
82
  "title": "",
77
83
  "default": "",
78
84
  "x-index": 35
@@ -102,18 +108,13 @@
102
108
  "icon": "weda-editor-icon-link",
103
109
  "tooltip": [
104
110
  {
105
- "platform": [
106
- "ALL",
107
- "MP"
108
- ],
111
+ "platform": ["ALL", "MP"],
109
112
  "text": "小程序平台不支持跳转外部链接"
110
113
  }
111
114
  ],
112
115
  "disabled": [
113
116
  {
114
- "platform": [
115
- "MP"
116
- ]
117
+ "platform": ["MP"]
117
118
  }
118
119
  ]
119
120
  }
@@ -154,9 +155,7 @@
154
155
  "x-category": "基础属性",
155
156
  "x-index": 120,
156
157
  "x-component-props": {
157
- "hideAddPlatform": [
158
- "MP"
159
- ],
158
+ "hideAddPlatform": ["MP"],
160
159
  "addHidden": true
161
160
  },
162
161
  "x-linkages": [
@@ -230,6 +229,63 @@
230
229
  "x-index": 1,
231
230
  "x-component": "list"
232
231
  },
232
+ "fontWeight": {
233
+ "type": "string",
234
+ "title": "字重",
235
+ "default": "normal",
236
+ "x-category": "高级属性",
237
+ "x-index": 40,
238
+ "enum": [
239
+ {
240
+ "label": "细",
241
+ "value": "lighter"
242
+ },
243
+ {
244
+ "label": "正常",
245
+ "value": "normal"
246
+ },
247
+ {
248
+ "label": "粗",
249
+ "value": "bolder"
250
+ }
251
+ ],
252
+ "remarks": "标题字重"
253
+ },
254
+ "fontSize": {
255
+ "type": "number",
256
+ "title": "字号",
257
+ "default": 14,
258
+ "x-category": "高级属性",
259
+ "x-props": {
260
+ "min": 0,
261
+ "max": 100
262
+ },
263
+ "x-index": 45,
264
+ "remarks": "标题字号"
265
+ },
266
+ "textColor": {
267
+ "title": "标题颜色",
268
+ "type": "string",
269
+ "x-component": "color",
270
+ "x-index": 50,
271
+ "x-category": "高级属性",
272
+ "default": "rgb(0, 0, 0)"
273
+ },
274
+ "lineHeight": {
275
+ "title": "行高",
276
+ "type": "string",
277
+ "x-index": 56,
278
+ "x-category": "高级属性",
279
+ "default": "auto",
280
+ "remarks": "标题行高"
281
+ },
282
+ "maxLines": {
283
+ "title": "标题行数",
284
+ "type": "number",
285
+ "default": 1,
286
+ "x-index": 60,
287
+ "x-category": "高级属性"
288
+ },
233
289
  "mobileCol": {
234
290
  "type": "number",
235
291
  "default": 4,
@@ -295,63 +351,6 @@
295
351
  "value": "big"
296
352
  }
297
353
  ]
298
- },
299
- "textColor": {
300
- "title": "标题颜色",
301
- "type": "string",
302
- "x-component": "color",
303
- "x-index": 50,
304
- "x-category": "高级属性",
305
- "default": "rgb(0, 0, 0)"
306
- },
307
- "fontWeight": {
308
- "type": "string",
309
- "title": "字重",
310
- "default": "normal",
311
- "x-category": "高级属性",
312
- "x-index": 40,
313
- "enum": [
314
- {
315
- "label": "细",
316
- "value": "lighter"
317
- },
318
- {
319
- "label": "正常",
320
- "value": "normal"
321
- },
322
- {
323
- "label": "粗",
324
- "value": "bolder"
325
- }
326
- ],
327
- "remarks": "标题字重"
328
- },
329
- "fontSize": {
330
- "type": "number",
331
- "title": "字号",
332
- "default": 14,
333
- "x-category": "高级属性",
334
- "x-props": {
335
- "min": 0,
336
- "max": 100
337
- },
338
- "x-index": 45,
339
- "remarks": "标题字号"
340
- },
341
- "lineHeight": {
342
- "title": "行高",
343
- "type": "string",
344
- "x-index": 56,
345
- "x-category": "高级属性",
346
- "default": "auto",
347
- "remarks": "标题行高"
348
- },
349
- "maxLines": {
350
- "title": "标题行数",
351
- "type": "number",
352
- "default": 1,
353
- "x-index": 60,
354
- "x-category": "高级属性"
355
354
  }
356
355
  }
357
356
  },
@@ -14,7 +14,10 @@
14
14
  "menuData": {
15
15
  "title": "",
16
16
  "type": "array",
17
- "items": { "type": "object", "properties": {} }
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {}
20
+ }
18
21
  },
19
22
  "navigationStyle": {
20
23
  "title": "",
@@ -9,7 +9,7 @@
9
9
  "default": "<p style='color:red'>这是富文本</p>",
10
10
  "x-category": "基础属性",
11
11
  "x-index": 1,
12
- "remarks":"更改富文本的展示内容,支持使用html语言进行富文本内容的编辑"
12
+ "remarks": "更改富文本的展示内容,支持使用html语言进行富文本内容的编辑"
13
13
  }
14
14
  }
15
15
  },