@cloudbase/weda-ui 2.0.11 → 2.0.27

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 (262) hide show
  1. package/README.md +1 -0
  2. package/package.json +39 -35
  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 +14 -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 +44 -45
  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 +68 -68
  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 +89 -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/mp/components/calendar/index.js +4 -1
  40. package/src/mp/components/calendar/index.json +3 -2
  41. package/src/mp/components/calendar/index.wxml +6 -28
  42. package/src/mp/components/calendar/index.wxss +17 -16
  43. package/src/mp/components/carousel/index.json +1 -1
  44. package/src/mp/components/carousel/index.wxml +3 -30
  45. package/src/mp/components/chart/bar/index.wxml +1 -6
  46. package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
  47. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +2 -19
  48. package/src/mp/components/chart/line/index.wxml +1 -6
  49. package/src/mp/components/chart/pie/index.wxml +1 -6
  50. package/src/mp/components/chart/statisticsCard/index.wxml +1 -5
  51. package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
  52. package/src/mp/components/dataView/index.wxml +1 -13
  53. package/src/mp/components/form/checkbox/index.js +5 -1
  54. package/src/mp/components/form/checkbox/index.wxml +3 -18
  55. package/src/mp/components/form/formcell/index.wxss +5 -0
  56. package/src/mp/components/form/input/index.js +1 -1
  57. package/src/mp/components/form/input/index.wxml +3 -16
  58. package/src/mp/components/form/input/index.wxss +7 -1
  59. package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
  60. package/src/mp/components/form/location/components/mapChoose/index.wxml +11 -58
  61. package/src/mp/components/form/location/index.js +7 -1
  62. package/src/mp/components/form/location/index.json +1 -1
  63. package/src/mp/components/form/location/index.wxml +7 -43
  64. package/src/mp/components/form/radio/index.js +5 -1
  65. package/src/mp/components/form/radio/index.wxml +2 -14
  66. package/src/mp/components/form/select/index.js +2 -2
  67. package/src/mp/components/form/select/index.wxml +3 -33
  68. package/src/mp/components/form/select/index.wxss +9 -0
  69. package/src/mp/components/form/switch/index.wxml +2 -13
  70. package/src/mp/components/form/textarea/index.js +6 -0
  71. package/src/mp/components/form/textarea/index.wxml +4 -23
  72. package/src/mp/components/form/textarea/index.wxss +5 -0
  73. package/src/mp/components/form/uploader/index.wxml +2 -20
  74. package/src/mp/components/form/uploader/weui-uploader.json +6 -6
  75. package/src/mp/components/form/uploader/weui-uploader.wxml +10 -53
  76. package/src/mp/components/form/uploaderFile/index.wxml +14 -71
  77. package/src/mp/components/graphicCard/index.js +9 -11
  78. package/src/mp/components/graphicCard/index.wxml +6 -34
  79. package/src/mp/components/graphicCard/index.wxss +6 -6
  80. package/src/mp/components/image/index.wxml +3 -21
  81. package/src/mp/components/listView/index.wxml +8 -33
  82. package/src/mp/components/listView/index.wxss +2 -2
  83. package/src/mp/components/lottery/index.wxml +7 -31
  84. package/src/mp/components/navLayout/index.js +9 -12
  85. package/src/mp/components/navLayout/index.wxml +6 -30
  86. package/src/mp/components/navLayout/index.wxss +10 -10
  87. package/src/mp/components/navigationBar/index.json +1 -2
  88. package/src/mp/components/navigationBar/index.wxml +29 -146
  89. package/src/mp/components/navigationBar/index.wxss +10 -10
  90. package/src/mp/components/richText/index.wxml +1 -1
  91. package/src/mp/components/richText/index.wxss +7 -5
  92. package/src/mp/components/swiper/index.wxml +1 -14
  93. package/src/mp/components/tabs/index.json +1 -1
  94. package/src/mp/components/tabs/index.wxml +3 -22
  95. package/src/mp/components/tabs/index.wxss +1 -2
  96. package/src/mp/components/text/index.wxml +1 -7
  97. package/src/mp/components/wedaVideo/index.js +86 -0
  98. package/src/mp/components/wedaVideo/index.json +4 -0
  99. package/src/mp/components/wedaVideo/index.wxml +4 -0
  100. package/src/mp/components/wedaVideo/index.wxss +20 -0
  101. package/src/mp/components/wxOpenApi/phone/index.js +1 -9
  102. package/src/mp/components/wxOpenApi/phone/index.wxml +1 -11
  103. package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
  104. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +1 -11
  105. package/src/mp/components/wxOpenApi/share/index.wxml +1 -11
  106. package/src/mp/components/wxOpenApi/userInfo/index.wxml +1 -10
  107. package/src/mp/index.json +1 -0
  108. package/src/mp/style/weda-ui.wxss +16 -6
  109. package/src/web/actions/showModal/index.tsx +5 -4
  110. package/src/web/components/calendar/index.css +99 -65
  111. package/src/web/components/chart/common/core/eChartBase.ts +55 -42
  112. package/src/web/components/chart/common/core/type.ts +23 -23
  113. package/src/web/components/chart/common/echart.css +12 -12
  114. package/src/web/components/chart/common/echarts.ts +3 -5
  115. package/src/web/components/chart/common/useChart.tsx +34 -16
  116. package/src/web/components/chart/statisticsCard/index.css +9 -8
  117. package/src/web/components/container/index.tsx +3 -4
  118. package/src/web/components/drawer/index.tsx +15 -4
  119. package/src/web/components/form/checkbox/index.tsx +32 -31
  120. package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
  121. package/src/web/components/form/form/index.css +3 -6
  122. package/src/web/components/form/form/index.tsx +2 -1
  123. package/src/web/components/form/formcell/index.css +6 -17
  124. package/src/web/components/form/formcell/index.tsx +2 -6
  125. package/src/web/components/form/input/index.css +8 -4
  126. package/src/web/components/form/input/index.tsx +61 -53
  127. package/src/web/components/form/location/common/mapChoose.css +13 -11
  128. package/src/web/components/form/location/common/selectModal.jsx +2 -11
  129. package/src/web/components/form/location/common/useLocationInfo.js +4 -0
  130. package/src/web/components/form/location/components/LocationH5/index.css +19 -20
  131. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
  132. package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
  133. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
  134. package/src/web/components/form/radio/index.tsx +32 -26
  135. package/src/web/components/form/renderDecorator.tsx +23 -26
  136. package/src/web/components/form/select/h5.tsx +2 -2
  137. package/src/web/components/form/select/index.css +9 -0
  138. package/src/web/components/form/select/index.tsx +76 -49
  139. package/src/web/components/form/select/region/index.ts +101 -80
  140. package/src/web/components/form/select/year.tsx +2 -0
  141. package/src/web/components/form/switch/index.tsx +40 -40
  142. package/src/web/components/form/textarea/index.css +4 -0
  143. package/src/web/components/form/textarea/index.tsx +38 -25
  144. package/src/web/components/form/types.d.ts +10 -10
  145. package/src/web/components/form/uploader/index.css +10 -0
  146. package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
  147. package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
  148. package/src/web/components/form/uploaderFile/index.css +24 -23
  149. package/src/web/components/form/uploaderFile/index.jsx +0 -5
  150. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +24 -15
  151. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +21 -13
  152. package/src/web/components/graphicCard/index.css +6 -6
  153. package/src/web/components/image/image.tsx +2 -2
  154. package/src/web/components/image/index.css +9 -7
  155. package/src/web/components/image/index.tsx +28 -11
  156. package/src/web/components/index.js +1 -0
  157. package/src/web/components/link/index.tsx +12 -12
  158. package/src/web/components/listView/index.css +8 -8
  159. package/src/web/components/lottery/index.css +43 -37
  160. package/src/web/components/lottery/index.tsx +3 -3
  161. package/src/web/components/modal/index.tsx +34 -34
  162. package/src/web/components/navLayout/index.css +25 -25
  163. package/src/web/components/navigationBar/index.css +26 -26
  164. package/src/web/components/picker/datePicker.tsx +3 -3
  165. package/src/web/components/picker/picker.tsx +3 -3
  166. package/src/web/components/richText/index.jsx +41 -46
  167. package/src/web/components/richTextView/index.css +7 -3
  168. package/src/web/components/richTextView/index.tsx +4 -6
  169. package/src/web/components/scrollView/index.tsx +2 -2
  170. package/src/web/components/slot/index.tsx +3 -4
  171. package/src/web/components/swiper/index.css +1 -1
  172. package/src/web/components/swiper/index.tsx +33 -15
  173. package/src/web/components/tabs/index.css +2 -3
  174. package/src/web/components/tabs/index.tsx +6 -6
  175. package/src/web/components/tabs/tabs.h5.tsx +17 -12
  176. package/src/web/components/tabs/tabs.pc.tsx +45 -34
  177. package/src/web/components/text/index.css +1 -1
  178. package/src/web/components/wedaVideo/index.css +42 -0
  179. package/src/web/components/wedaVideo/index.tsx +208 -0
  180. package/src/web/utils/constant.ts +2 -1
  181. package/src/web/utils/loading-fallback.tsx +2 -2
  182. package/src/web/utils/lodash.ts +1 -1
  183. package/src/web/utils/platform.js +13 -0
  184. package/src/web/utils/useSetState.ts +6 -2
  185. package/src/web/weda-ui.css +23 -8
  186. package/src/docs/common/format.tsx +0 -112
  187. package/src/docs/common/tableView.css +0 -164
  188. package/src/docs/common/tableView.tsx +0 -273
  189. package/src/docs/compsdocs/chart/Bar.mdx +0 -159
  190. package/src/docs/compsdocs/chart/Line.mdx +0 -100
  191. package/src/docs/compsdocs/chart/Pie.mdx +0 -83
  192. package/src/docs/compsdocs/chart/_category_.json +0 -1
  193. package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
  194. package/src/docs/compsdocs/database/DataView.mdx +0 -33
  195. package/src/docs/compsdocs/database/ListView.mdx +0 -33
  196. package/src/docs/compsdocs/database/_category_.json +0 -1
  197. package/src/docs/compsdocs/form/Form.mdx +0 -35
  198. package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
  199. package/src/docs/compsdocs/form/FormDate.mdx +0 -30
  200. package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
  201. package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
  202. package/src/docs/compsdocs/form/FormInput.mdx +0 -30
  203. package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
  204. package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
  205. package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
  206. package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
  207. package/src/docs/compsdocs/form/FormSelect.mdx +0 -36
  208. package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
  209. package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
  210. package/src/docs/compsdocs/form/FormTime.mdx +0 -30
  211. package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
  212. package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
  213. package/src/docs/compsdocs/form/_category_.json +0 -1
  214. package/src/docs/compsdocs/grid/Card.mdx +0 -32
  215. package/src/docs/compsdocs/grid/Container.mdx +0 -42
  216. package/src/docs/compsdocs/grid/Footer.mdx +0 -31
  217. package/src/docs/compsdocs/grid/GridLayout.mdx +0 -32
  218. package/src/docs/compsdocs/grid/Header.mdx +0 -31
  219. package/src/docs/compsdocs/grid/Layout.mdx +0 -25
  220. package/src/docs/compsdocs/grid/List.mdx +0 -31
  221. package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
  222. package/src/docs/compsdocs/grid/Swiper.mdx +0 -58
  223. package/src/docs/compsdocs/grid/_category_.json +0 -1
  224. package/src/docs/compsdocs/media/Icon.mdx +0 -31
  225. package/src/docs/compsdocs/media/Image.mdx +0 -55
  226. package/src/docs/compsdocs/media/_category_.json +0 -1
  227. package/src/docs/compsdocs/model/ModelCreate.mdx +0 -20
  228. package/src/docs/compsdocs/model/ModelDetail.mdx +0 -20
  229. package/src/docs/compsdocs/model/ModelTable.mdx +0 -24
  230. package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -21
  231. package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
  232. package/src/docs/compsdocs/model/_category_.json +0 -1
  233. package/src/docs/compsdocs/navmenu/Classification.mdx +0 -38
  234. package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -43
  235. package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -30
  236. package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
  237. package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
  238. package/src/docs/compsdocs/navmenu/_category_.json +0 -1
  239. package/src/docs/compsdocs/senior/Lottery.mdx +0 -48
  240. package/src/docs/compsdocs/senior/Modal.mdx +0 -58
  241. package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -52
  242. package/src/docs/compsdocs/senior/_category_.json +0 -1
  243. package/src/docs/compsdocs/show/Calendar.mdx +0 -29
  244. package/src/docs/compsdocs/show/Divider.mdx +0 -31
  245. package/src/docs/compsdocs/show/GraphicCard.mdx +0 -30
  246. package/src/docs/compsdocs/show/Item.mdx +0 -32
  247. package/src/docs/compsdocs/show/ItemList.mdx +0 -47
  248. package/src/docs/compsdocs/show/Media.mdx +0 -25
  249. package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
  250. package/src/docs/compsdocs/show/Swiper.mdx +0 -33
  251. package/src/docs/compsdocs/show/Tabs.mdx +0 -38
  252. package/src/docs/compsdocs/show/_category_.json +0 -1
  253. package/src/docs/compsdocs/show/button.mdx +0 -25
  254. package/src/docs/compsdocs/text/Link.mdx +0 -43
  255. package/src/docs/compsdocs/text/RichTextView.mdx +0 -36
  256. package/src/docs/compsdocs/text/Text.mdx +0 -31
  257. package/src/docs/compsdocs/text/Title.mdx +0 -32
  258. package/src/docs/compsdocs/text/_category_.json +0 -1
  259. package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -60
  260. package/src/docs/compsdocs/wxOpen/Share.mdx +0 -46
  261. package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -60
  262. package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
@@ -2,6 +2,42 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
+ "title": {
6
+ "type": "string",
7
+ "default": "上传图片",
8
+ "title": "标题",
9
+ "x-category": "基础属性",
10
+ "x-index": 1
11
+ },
12
+ "tips": {
13
+ "type": "string",
14
+ "default": "上传图片提示",
15
+ "title": "提示",
16
+ "x-category": "基础属性",
17
+ "x-index": 2
18
+ },
19
+ "btnTitle": {
20
+ "type": "string",
21
+ "default": "上传图片",
22
+ "title": "按钮名称",
23
+ "x-category": "基础属性",
24
+ "x-index": 3,
25
+ "x-platforms": ["PCWEB"]
26
+ },
27
+ "maxUploadCount": {
28
+ "type": "number",
29
+ "default": 9,
30
+ "title": "最大上传数",
31
+ "x-category": "基础属性",
32
+ "x-index": 4
33
+ },
34
+ "maxSize": {
35
+ "type": "number",
36
+ "default": 10,
37
+ "title": "单张大小(M)",
38
+ "x-category": "基础属性",
39
+ "x-index": 5
40
+ },
5
41
  "acceptTypes": {
6
42
  "type": "array",
7
43
  "title": "图片类型",
@@ -39,6 +75,34 @@
39
75
  ]
40
76
  }
41
77
  },
78
+ "required": {
79
+ "type": "boolean",
80
+ "title": "是否必填",
81
+ "default": false,
82
+ "x-index": 190,
83
+ "x-category": "高级属性",
84
+ "x-linkages": [
85
+ {
86
+ "type": "value:visible",
87
+ "target": "*(requiredFlag,requiredMsg)",
88
+ "condition": "{{$self.value}}"
89
+ }
90
+ ]
91
+ },
92
+ "requiredMsg": {
93
+ "type": "string",
94
+ "title": "校验错误提示",
95
+ "default": "该项为必填项",
96
+ "x-index": 191,
97
+ "x-category": "高级属性"
98
+ },
99
+ "requiredFlag": {
100
+ "type": "boolean",
101
+ "title": "显示必填标记",
102
+ "default": false,
103
+ "x-index": 192,
104
+ "x-category": "高级属性"
105
+ },
42
106
  "layout": {
43
107
  "title": "布局方式",
44
108
  "type": "string",
@@ -61,42 +125,6 @@
61
125
  "title": "是否禁用",
62
126
  "x-category": "基础属性"
63
127
  },
64
- "maxSize": {
65
- "type": "number",
66
- "default": 10,
67
- "title": "单张大小(M)",
68
- "x-category": "基础属性",
69
- "x-index": 5
70
- },
71
- "maxUploadCount": {
72
- "type": "number",
73
- "default": 9,
74
- "title": "最大上传数",
75
- "x-category": "基础属性",
76
- "x-index": 4
77
- },
78
- "btnTitle": {
79
- "type": "string",
80
- "default": "上传图片",
81
- "title": "按钮名称",
82
- "x-category": "基础属性",
83
- "x-index": 3,
84
- "x-platforms": ["PCWEB"]
85
- },
86
- "tips": {
87
- "type": "string",
88
- "default": "上传图片提示",
89
- "title": "提示",
90
- "x-category": "基础属性",
91
- "x-index": 2
92
- },
93
- "title": {
94
- "type": "string",
95
- "default": "上传图片",
96
- "title": "标题",
97
- "x-category": "基础属性",
98
- "x-index": 1
99
- },
100
128
  "labelVisible": {
101
129
  "type": "boolean",
102
130
  "default": true,
@@ -108,34 +136,6 @@
108
136
  "title": "是否返回单张图片",
109
137
  "x-category": "基础属性"
110
138
  },
111
- "required": {
112
- "type": "boolean",
113
- "title": "是否必填",
114
- "default": false,
115
- "x-index": 190,
116
- "x-category": "高级属性",
117
- "x-linkages": [
118
- {
119
- "type": "value:visible",
120
- "target": "*(requiredFlag,requiredMsg)",
121
- "condition": "{{$self.value}}"
122
- }
123
- ]
124
- },
125
- "requiredMsg": {
126
- "type": "string",
127
- "title": "校验错误提示",
128
- "default": "该项为必填项",
129
- "x-index": 191,
130
- "x-category": "高级属性"
131
- },
132
- "requiredFlag": {
133
- "type": "boolean",
134
- "title": "显示必填标记",
135
- "default": false,
136
- "x-index": 192,
137
- "x-category": "高级属性"
138
- },
139
139
  "defaultValue": {
140
140
  "x-category": "基础属性",
141
141
  "title": "初始默认值",
@@ -23,7 +23,6 @@
23
23
  "x-category": "基础属性",
24
24
  "x-index": 30
25
25
  },
26
-
27
26
  "maxUploadCount": {
28
27
  "type": "number",
29
28
  "default": 9,
@@ -154,6 +153,6 @@
154
153
  "title": "上传文件",
155
154
  "description": "上传文件组件",
156
155
  "category": "表单",
157
- "icon":"//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UploadFile.svg"
156
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UploadFile.svg"
158
157
  }
159
158
  }
@@ -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": [
@@ -181,41 +180,7 @@
181
180
  ],
182
181
  "x-index": 1,
183
182
  "x-component": "list",
184
- "remarks": "配置图文卡片的详细内容"
185
- },
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
- ]
183
+ "remarks": "配置图文卡片的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapsSatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
219
184
  },
220
185
  "textAlign": {
221
186
  "title": "对齐",
@@ -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": "弹窗",