@cloudbase/weda-ui 0.2.17 → 2.0.8

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 (269) hide show
  1. package/README.md +3 -0
  2. package/package.json +10 -5
  3. package/src/configs/components/button.json +0 -2
  4. package/src/configs/components/calendar.json +9 -3
  5. package/src/configs/components/carousel.json +18 -9
  6. package/src/configs/components/chart/bar.json +31 -12
  7. package/src/configs/components/chart/line.json +27 -10
  8. package/src/configs/components/chart/pie.json +22 -8
  9. package/src/configs/components/chart/statisticsCard.json +61 -13
  10. package/src/configs/components/container.json +7 -2
  11. package/src/configs/components/dataView.json +31 -11
  12. package/src/configs/components/form/checkbox.json +97 -5
  13. package/src/configs/components/form/radio.json +123 -4
  14. package/src/configs/components/form/select.json +247 -13
  15. package/src/configs/components/graphicCard.json +90 -75
  16. package/src/configs/components/image.json +19 -8
  17. package/src/configs/components/link.json +25 -6
  18. package/src/configs/components/listView.json +83 -27
  19. package/src/configs/components/lottery.json +153 -0
  20. package/src/configs/components/modal.json +37 -5
  21. package/src/configs/components/navLayout.json +97 -79
  22. package/src/configs/components/navigationBar.json +59 -0
  23. package/src/configs/components/richtextview.json +6 -2
  24. package/src/configs/components/scrollVeiw.json +98 -34
  25. package/src/configs/components/swiper.json +22 -10
  26. package/src/configs/components/tabs.json +54 -9
  27. package/src/configs/components/text.json +43 -30
  28. package/src/configs/components/wxOpenApi/phone.json +141 -0
  29. package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
  30. package/src/configs/components/wxOpenApi/share.json +167 -0
  31. package/src/configs/components/wxOpenApi/userInfo.json +174 -0
  32. package/src/configs/index.js +13 -0
  33. package/src/docs/common/format.tsx +112 -0
  34. package/src/docs/common/tableView.css +164 -0
  35. package/src/docs/common/tableView.tsx +273 -0
  36. package/src/docs/compsdocs/chart/Bar.mdx +159 -0
  37. package/src/docs/compsdocs/chart/Line.mdx +100 -0
  38. package/src/docs/compsdocs/chart/Pie.mdx +83 -0
  39. package/src/docs/compsdocs/chart/_category_.json +1 -0
  40. package/src/docs/compsdocs/chart/statisticsCard.mdx +51 -0
  41. package/src/docs/compsdocs/database/DataView.mdx +33 -0
  42. package/src/docs/compsdocs/database/ListView.mdx +33 -0
  43. package/src/docs/compsdocs/database/_category_.json +1 -0
  44. package/src/docs/compsdocs/form/Form.mdx +35 -0
  45. package/src/docs/compsdocs/form/FormCheckbox.mdx +35 -0
  46. package/src/docs/compsdocs/form/FormDate.mdx +30 -0
  47. package/src/docs/compsdocs/form/FormEmail.mdx +30 -0
  48. package/src/docs/compsdocs/form/FormImageUploader.mdx +31 -0
  49. package/src/docs/compsdocs/form/FormInput.mdx +30 -0
  50. package/src/docs/compsdocs/form/FormLocation.mdx +64 -0
  51. package/src/docs/compsdocs/form/FormPhone.mdx +30 -0
  52. package/src/docs/compsdocs/form/FormRadio.mdx +35 -0
  53. package/src/docs/compsdocs/form/FormRegion.mdx +30 -0
  54. package/src/docs/compsdocs/form/FormSelect.mdx +36 -0
  55. package/src/docs/compsdocs/form/FormSwitch.mdx +30 -0
  56. package/src/docs/compsdocs/form/FormTextarea.mdx +30 -0
  57. package/src/docs/compsdocs/form/FormTime.mdx +30 -0
  58. package/src/docs/compsdocs/form/FormUploadFile.mdx +30 -0
  59. package/src/docs/compsdocs/form/FormUrl.mdx +30 -0
  60. package/src/docs/compsdocs/form/_category_.json +1 -0
  61. package/src/docs/compsdocs/grid/Card.mdx +32 -0
  62. package/src/docs/compsdocs/grid/Container.mdx +42 -0
  63. package/src/docs/compsdocs/grid/Footer.mdx +31 -0
  64. package/src/docs/compsdocs/grid/GridLayout.mdx +32 -0
  65. package/src/docs/compsdocs/grid/Header.mdx +31 -0
  66. package/src/docs/compsdocs/grid/Layout.mdx +25 -0
  67. package/src/docs/compsdocs/grid/List.mdx +31 -0
  68. package/src/docs/compsdocs/grid/ScrollView.mdx +37 -0
  69. package/src/docs/compsdocs/grid/Swiper.mdx +58 -0
  70. package/src/docs/compsdocs/grid/_category_.json +1 -0
  71. package/src/docs/compsdocs/media/Icon.mdx +31 -0
  72. package/src/docs/compsdocs/media/Image.mdx +55 -0
  73. package/src/docs/compsdocs/media/_category_.json +1 -0
  74. package/src/docs/compsdocs/model/ModelCreate.mdx +20 -0
  75. package/src/docs/compsdocs/model/ModelDetail.mdx +20 -0
  76. package/src/docs/compsdocs/model/ModelTable.mdx +24 -0
  77. package/src/docs/compsdocs/model/ModelUpdate.mdx +21 -0
  78. package/src/docs/compsdocs/model/PageLayout.mdx +21 -0
  79. package/src/docs/compsdocs/model/_category_.json +1 -0
  80. package/src/docs/compsdocs/navmenu/Classification.mdx +38 -0
  81. package/src/docs/compsdocs/navmenu/NavBar.mdx +43 -0
  82. package/src/docs/compsdocs/navmenu/NavLayout.mdx +30 -0
  83. package/src/docs/compsdocs/navmenu/TabBar.mdx +43 -0
  84. package/src/docs/compsdocs/navmenu/TabBarItem.mdx +29 -0
  85. package/src/docs/compsdocs/navmenu/_category_.json +1 -0
  86. package/src/docs/compsdocs/senior/Lottery.mdx +48 -0
  87. package/src/docs/compsdocs/senior/Modal.mdx +58 -0
  88. package/src/docs/compsdocs/senior/SlotMachine.mdx +52 -0
  89. package/src/docs/compsdocs/senior/_category_.json +1 -0
  90. package/src/docs/compsdocs/show/Calendar.mdx +29 -0
  91. package/src/docs/compsdocs/show/Divider.mdx +31 -0
  92. package/src/docs/compsdocs/show/GraphicCard.mdx +30 -0
  93. package/src/docs/compsdocs/show/Item.mdx +32 -0
  94. package/src/docs/compsdocs/show/ItemList.mdx +47 -0
  95. package/src/docs/compsdocs/show/Media.mdx +25 -0
  96. package/src/docs/compsdocs/show/StatusTip.mdx +25 -0
  97. package/src/docs/compsdocs/show/Swiper.mdx +33 -0
  98. package/src/docs/compsdocs/show/Tabs.mdx +38 -0
  99. package/src/docs/compsdocs/show/_category_.json +1 -0
  100. package/src/docs/compsdocs/show/button.mdx +25 -0
  101. package/src/docs/compsdocs/text/Link.mdx +43 -0
  102. package/src/docs/compsdocs/text/RichTextView.mdx +36 -0
  103. package/src/docs/compsdocs/text/Text.mdx +31 -0
  104. package/src/docs/compsdocs/text/Title.mdx +32 -0
  105. package/src/docs/compsdocs/text/_category_.json +1 -0
  106. package/src/docs/compsdocs/wxOpen/Phone.mdx +60 -0
  107. package/src/docs/compsdocs/wxOpen/Share.mdx +46 -0
  108. package/src/docs/compsdocs/wxOpen/UserInfo.mdx +60 -0
  109. package/src/docs/compsdocs/wxOpen/_category_.json +4 -0
  110. package/src/index.js +2 -0
  111. package/src/mp/components/button/index.js +18 -2
  112. package/src/mp/components/button/index.wxml +7 -4
  113. package/src/mp/components/chart/bar/index.js +6 -2
  114. package/src/mp/components/chart/common/core/eChartBar.js +9 -8
  115. package/src/mp/components/chart/common/core/eChartBase.js +20 -16
  116. package/src/mp/components/chart/common/core/eChartLine.js +6 -5
  117. package/src/mp/components/chart/line/index.js +10 -6
  118. package/src/mp/components/chart/pie/index.js +6 -2
  119. package/src/mp/components/chart/statisticsCard/index.js +33 -6
  120. package/src/mp/components/dataView/index.json +1 -1
  121. package/src/mp/components/form/checkbox/index.js +41 -2
  122. package/src/mp/components/form/checkbox/index.wxml +1 -1
  123. package/src/mp/components/form/form/index.wxml +1 -2
  124. package/src/mp/components/form/formcell/index.wxml +1 -1
  125. package/src/mp/components/form/formcell/index.wxss +17 -0
  126. package/src/mp/components/form/input/index.js +1 -1
  127. package/src/mp/components/form/input/index.wxss +15 -0
  128. package/src/mp/components/form/location/index.js +43 -2
  129. package/src/mp/components/form/location/index.wxss +4 -6
  130. package/src/mp/components/form/radio/index.js +34 -1
  131. package/src/mp/components/form/select/index.js +351 -41
  132. package/src/mp/components/form/select/index.wxml +17 -2
  133. package/src/mp/components/form/select/index.wxss +4 -0
  134. package/src/mp/components/form/select/region/index.js +101 -0
  135. package/src/mp/components/form/textarea/index.js +1 -1
  136. package/src/mp/components/form/textarea/index.wxss +4 -0
  137. package/src/mp/components/form/uploader/index.js +39 -27
  138. package/src/mp/components/form/uploader/index.json +3 -2
  139. package/src/mp/components/form/uploader/index.wxml +11 -7
  140. package/src/mp/components/form/uploader/index.wxss +20 -2
  141. package/src/mp/components/form/uploader/weui-uploader.js +209 -0
  142. package/src/mp/components/form/uploader/weui-uploader.json +7 -0
  143. package/src/mp/components/form/uploader/weui-uploader.wxml +45 -0
  144. package/src/mp/components/form/uploader/weui-uploader.wxss +1 -0
  145. package/src/mp/components/form/uploaderFile/index.js +10 -6
  146. package/src/mp/components/form/uploaderFile/index.wxss +4 -4
  147. package/src/mp/components/image/index.wxss +3 -2
  148. package/src/mp/components/listView/index.js +38 -43
  149. package/src/mp/components/listView/index.wxml +1 -1
  150. package/src/mp/components/listView/index.wxss +5 -0
  151. package/src/mp/components/lottery/index.js +270 -0
  152. package/src/mp/components/{internals/listView → lottery}/index.json +0 -0
  153. package/src/mp/components/lottery/index.wxml +43 -0
  154. package/src/mp/components/lottery/index.wxss +317 -0
  155. package/src/mp/components/navigationBar/index.js +193 -0
  156. package/src/mp/components/navigationBar/index.json +6 -0
  157. package/src/mp/components/navigationBar/index.wxml +88 -0
  158. package/src/mp/components/navigationBar/index.wxss +1257 -0
  159. package/src/mp/components/tabs/index.js +7 -2
  160. package/src/mp/components/tabs/index.wxml +2 -1
  161. package/src/mp/components/text/index.js +0 -25
  162. package/src/mp/components/text/index.wxml +3 -3
  163. package/src/mp/components/wxOpenApi/phone/index.js +117 -0
  164. package/src/mp/components/wxOpenApi/phone/index.json +4 -0
  165. package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
  166. package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
  167. package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
  168. package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
  169. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
  170. package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
  171. package/src/mp/components/wxOpenApi/share/index.js +117 -0
  172. package/src/mp/components/wxOpenApi/share/index.json +4 -0
  173. package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
  174. package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
  175. package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
  176. package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
  177. package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
  178. package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
  179. package/src/mp/index.json +7 -1
  180. package/src/mp/style/weda-ui.wxss +16 -0
  181. package/src/mp/utils/constant.js +15 -0
  182. package/src/mp/utils/destr.js +48 -0
  183. package/src/mp/utils/lodash.js +2 -0
  184. package/src/mp/utils/platform.js +10 -0
  185. package/src/mp/utils/tcb.js +44 -0
  186. package/src/web/components/button/index.css +8 -1
  187. package/src/web/components/button/index.tsx +10 -9
  188. package/src/web/components/calendar/index.jsx +1 -1
  189. package/src/web/components/carousel/index.tsx +8 -8
  190. package/src/web/components/chart/bar/index.tsx +40 -39
  191. package/src/web/components/chart/common/config/line.js +1 -1
  192. package/src/web/components/chart/common/core/eChartBar.js +7 -6
  193. package/src/web/components/chart/common/core/eChartBase.ts +20 -16
  194. package/src/web/components/chart/common/core/eChartLine.js +8 -6
  195. package/src/web/components/chart/line/index.tsx +40 -39
  196. package/src/web/components/chart/statisticsCard/index.tsx +29 -8
  197. package/src/web/components/form/checkbox/index.tsx +61 -23
  198. package/src/web/components/form/form/index.css +5 -1
  199. package/src/web/components/form/form/index.tsx +3 -1
  200. package/src/web/components/form/formcell/index.css +22 -1
  201. package/src/web/components/form/formcell/index.tsx +11 -6
  202. package/src/web/components/form/input/index.css +7 -12
  203. package/src/web/components/form/location/components/LocationH5/index.css +4 -7
  204. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +1 -1
  205. package/src/web/components/form/radio/index.tsx +90 -53
  206. package/src/web/components/form/select/h5.tsx +370 -73
  207. package/src/web/components/form/select/index.css +15 -0
  208. package/src/web/components/form/select/index.tsx +392 -145
  209. package/src/web/components/form/select/region/index.ts +122 -31
  210. package/src/web/components/form/select/time.jsx +89 -0
  211. package/src/web/components/form/select/year.tsx +170 -0
  212. package/src/web/components/form/textarea/index.css +4 -0
  213. package/src/web/components/form/textarea/index.tsx +2 -2
  214. package/src/web/components/form/tips/index.css +4 -0
  215. package/src/web/components/form/tips/index.tsx +4 -3
  216. package/src/web/components/form/uploader/index.css +26 -2
  217. package/src/web/components/form/uploader/uploader.h5.tsx +89 -57
  218. package/src/web/components/form/uploader/uploader.pc.tsx +4 -4
  219. package/src/web/components/form/uploaderFile/index.css +2 -4
  220. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +13 -7
  221. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +13 -5
  222. package/src/web/components/image/image.tsx +1 -1
  223. package/src/web/components/image/index.css +3 -3
  224. package/src/web/components/image/index.tsx +6 -7
  225. package/src/web/components/index.js +8 -0
  226. package/src/web/components/link/index.tsx +7 -4
  227. package/src/web/components/listView/index.css +4 -0
  228. package/src/web/components/listView/index.tsx +12 -20
  229. package/src/web/components/lottery/index.css +327 -0
  230. package/src/web/components/lottery/index.tsx +567 -0
  231. package/src/web/components/lottery/lotteryUtil.ts +130 -0
  232. package/src/web/components/modal/index.tsx +3 -1
  233. package/src/web/components/navLayout/index.tsx +2 -2
  234. package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
  235. package/src/web/components/navigationBar/common.tsx +198 -0
  236. package/src/web/components/navigationBar/h5Menu.tsx +179 -0
  237. package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
  238. package/src/web/components/navigationBar/index.css +762 -0
  239. package/src/web/components/navigationBar/index.tsx +230 -0
  240. package/src/web/components/navigationBar/type.d.ts +111 -0
  241. package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
  242. package/src/web/components/phone/index.css +0 -0
  243. package/src/web/components/phone/index.tsx +22 -0
  244. package/src/web/components/phoneCode/index.css +0 -0
  245. package/src/web/components/phoneCode/index.tsx +22 -0
  246. package/src/web/components/picker/timePicker.tsx +2 -2
  247. package/src/web/components/richTextView/index.tsx +3 -5
  248. package/src/web/components/share/index.css +0 -0
  249. package/src/web/components/share/index.tsx +38 -0
  250. package/src/web/components/slot/index.tsx +1 -1
  251. package/src/web/components/tabs/index.tsx +2 -0
  252. package/src/web/components/tabs/tabs.h5.tsx +43 -33
  253. package/src/web/components/tabs/tabs.pc.tsx +23 -10
  254. package/src/web/components/text/index.tsx +12 -20
  255. package/src/web/components/userInfo/index.css +0 -0
  256. package/src/web/components/userInfo/index.tsx +30 -0
  257. package/src/web/utils/{constant.js → constant.ts} +17 -2
  258. package/src/web/utils/lodash.ts +2 -0
  259. package/src/web/utils/platform.js +9 -0
  260. package/src/web/utils/tcb.js +26 -0
  261. package/src/web/weda-ui.css +7 -1
  262. package/src/mp/components/internals/listView/arrow-right-line.svg +0 -3
  263. package/src/mp/components/internals/listView/index.js +0 -286
  264. package/src/mp/components/internals/listView/index.wxml +0 -40
  265. package/src/mp/components/internals/listView/index.wxss +0 -150
  266. package/src/mp/components/internals/listView/more-line.svg +0 -3
  267. package/src/web/components/form/select/region/cities.ts +0 -2410
  268. package/src/web/components/form/select/region/provinces.ts +0 -240
  269. package/src/web/components/form/select/region/regions.ts +0 -20645
@@ -6,57 +6,66 @@
6
6
  "title": "自动切换",
7
7
  "default": true,
8
8
  "type": "boolean",
9
- "x-category": "基础属性"
9
+ "x-category": "基础属性",
10
+ "remarks":"开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
10
11
  },
11
12
  "indicatorDots": {
12
13
  "title": "导航锚点",
13
14
  "default": true,
14
15
  "type": "boolean",
15
- "x-category": "高级属性"
16
+ "x-category": "高级属性",
17
+ "remarks":"开启/关闭轮播图锚点"
16
18
  },
17
19
  "current": {
18
20
  "title": "当前所在滑块的 index",
19
21
  "default": 0,
20
22
  "type": "number",
21
- "x-category": "高级属性"
23
+ "x-category": "高级属性",
24
+ "remarks":"更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
22
25
  },
23
26
  "interval": {
24
27
  "title": "自动切换时间间隔",
25
28
  "default": 5000,
26
29
  "type": "number",
27
- "x-category": "基础属性"
30
+ "x-category": "基础属性",
31
+ "remarks":"配置轮播图滚动的时间间隔,时间单位为ms"
28
32
  },
29
33
  "duration": {
30
34
  "title": "滑动动画时长",
31
35
  "default": 500,
32
36
  "type": "number",
33
- "x-category": "高级属性"
37
+ "x-category": "高级属性",
38
+ "remarks":"更改轮播图切换时的滑动动画时长"
34
39
  },
35
40
  "circular": {
36
41
  "title": "衔接滑动",
37
42
  "default": true,
38
43
  "type": "boolean",
39
- "x-category": "高级属性"
44
+ "x-category": "高级属性",
45
+ "remarks":"更改轮播图切换时动画的滑动方式"
40
46
  },
41
47
  "vertical": {
42
48
  "title": "纵向轮播",
43
49
  "default": false,
44
50
  "type": "boolean",
45
- "x-category": "基础属性"
51
+ "x-category": "基础属性",
52
+ "remarks":"开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
46
53
  },
47
54
  "indicatorColor": {
48
55
  "title": "锚点颜色",
49
56
  "type": "string",
50
57
  "x-component": "color",
51
58
  "default": "rgba(200, 200, 200, 0.9)",
52
- "x-category": "高级属性"
59
+ "x-category": "高级属性",
60
+ "remarks":"更改锚点普通状态下的颜色"
53
61
  },
54
62
  "indicatorActiveColor": {
55
63
  "title": "锚点激活色",
56
64
  "type": "string",
57
65
  "x-component": "color",
58
66
  "default": "rgba(0, 0, 0, 0.9)",
59
- "x-category": "高级属性"
67
+ "x-category": "高级属性",
68
+ "remarks":"更改锚点选中时的颜色"
60
69
  }
61
70
  }
62
71
  },
@@ -68,11 +77,14 @@
68
77
  ],
69
78
  "meta": {
70
79
  "title": "轮播容器",
71
- "description": "轮播容器",
80
+ "description": "用于快速在页面搭建轮播图展示效果,并支持轮播图的跳转、播放配置。",
72
81
  "category": "布局容器",
73
82
  "componentOrder": 80,
74
83
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Swiper.svg"
75
84
  },
85
+ "configMeta": {
86
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Swiper"
87
+ },
76
88
  "isContainer": true,
77
89
  "mpOrigin": "swiper"
78
90
  }
@@ -2,32 +2,69 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
+ "isMultipleSlot": {
6
+ "type": "boolean",
7
+ "title": "启用多个插槽",
8
+ "default": true,
9
+ "x-index": 10,
10
+ "x-props": {
11
+ "data-hidebind": true
12
+ },
13
+ "x-linkages": [
14
+ {
15
+ "type": "value:schema",
16
+ "schema": {
17
+ "x-props": {
18
+ "data-hidebind": "{{ $value }}"
19
+ },
20
+ "x-auto-num": {}
21
+ },
22
+ "target": "tabs"
23
+ }
24
+ ]
25
+ },
5
26
  "tabs": {
6
27
  "title": "选项卡标签",
7
28
  "x-props": {
8
- "data-hidebind": true
29
+ "data-hidebind": true,
30
+ "data-withBindMeta": true
9
31
  },
10
- "x-index": 1,
32
+ "x-component-props": {
33
+ "origin-component": "list"
34
+ },
35
+ "x-index": 20,
11
36
  "type": "array",
12
37
  "maxLength": 20,
13
38
  "default": [
14
39
  {
15
- "title": "选项一"
40
+ "title": "选项一",
41
+ "value": "选项一"
16
42
  },
17
43
  {
18
- "title": "选项二"
44
+ "title": "选项二",
45
+ "value": "选项二"
19
46
  },
20
47
  {
21
- "title": "选项三"
48
+ "title": "选项三",
49
+ "value": "选项三"
22
50
  }
23
51
  ],
24
52
  "items": {
25
53
  "type": "object",
54
+ "default": {
55
+ "title": "标签名称",
56
+ "value": "标签值"
57
+ },
26
58
  "properties": {
27
59
  "title": {
28
60
  "title": "标签名称",
29
61
  "type": "string",
30
62
  "default": "标题"
63
+ },
64
+ "value": {
65
+ "type": "string",
66
+ "title": "标签值",
67
+ "default": "标签值"
31
68
  }
32
69
  }
33
70
  },
@@ -41,21 +78,26 @@
41
78
  }
42
79
  }
43
80
  }
44
- ]
81
+ ],
82
+ "x-component": "list-bind-switch",
83
+ "remarks": "更改选项卡标签的标题"
45
84
  },
46
85
  "selectedIndex": {
47
86
  "title": "选中标签",
48
87
  "type": "number",
49
88
  "default": 0,
89
+ "x-index": 30,
50
90
  "x-category": "基础属性",
51
- "x-component": "select"
91
+ "x-component": "select",
92
+ "remarks": "更改默认选中的选项卡标签"
52
93
  },
53
94
  "panel": {
54
95
  "title": "面板1",
96
+ "x-index": 40,
55
97
  "type": "slot",
56
98
  "x-auto-num": {
57
99
  "from": 1,
58
- "to": "{{ $form.values.tabs.length }}"
100
+ "to": "{{ $form.values.isMultipleSlot ? $form.values.tabs.length : 1 }}"
59
101
  }
60
102
  }
61
103
  }
@@ -69,8 +111,11 @@
69
111
  "meta": {
70
112
  "name": "Tabs",
71
113
  "title": "选项卡",
72
- "description": "选项卡组件",
114
+ "description": "用于实现常见的选项卡切换效果。",
73
115
  "category": "展示",
74
116
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/TabsContainer.svg"
117
+ },
118
+ "configMeta": {
119
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Tabs"
75
120
  }
76
121
  }
@@ -8,61 +8,71 @@
8
8
  "x-component": "textarea",
9
9
  "default": "文本内容",
10
10
  "x-category": "基础属性",
11
- "x-index": 1
11
+ "x-index": 1,
12
+ "remarks": "更改显示的文本内容"
12
13
  },
13
14
  "level": {
14
15
  "enum": [
15
- { "label": "正文", "value": "0" },
16
- { "label": "标题 H1", "value": "1" },
17
- { "label": "标题 H2", "value": "2" },
18
- { "label": "标题 H3", "value": "3" },
19
- { "label": "标题 H4", "value": "4" },
20
- { "label": "标题 H5", "value": "5" },
21
- { "label": "标题 H6", "value": "6" }
16
+ {
17
+ "label": "正文",
18
+ "value": "0"
19
+ },
20
+ {
21
+ "label": "标题 H1",
22
+ "value": "1"
23
+ },
24
+ {
25
+ "label": "标题 H2",
26
+ "value": "2"
27
+ },
28
+ {
29
+ "label": "标题 H3",
30
+ "value": "3"
31
+ },
32
+ {
33
+ "label": "标题 H4",
34
+ "value": "4"
35
+ },
36
+ {
37
+ "label": "标题 H5",
38
+ "value": "5"
39
+ },
40
+ {
41
+ "label": "标题 H6",
42
+ "value": "6"
43
+ }
22
44
  ],
23
45
  "type": "string",
24
46
  "title": "文本格式",
25
47
  "default": "0",
26
48
  "x-index": 2,
27
- "description": "标题级别,H1 - H6"
28
- },
29
- "textAlign": {
30
- "title": "对齐",
31
- "type": "string",
32
- "default": "left",
33
- "x-component": "textAlign",
34
- "x-index": 3,
35
- "x-category": "基础属性"
36
- },
37
- "textColor": {
38
- "title": "颜色",
39
- "type": "string",
40
- "x-component": "color",
41
- "x-index": 4,
42
- "x-category": "基础属性",
43
- "default": "rgb(0, 0, 0)"
49
+ "description": "标题级别,H1 - H6",
50
+ "remarks": "更改文本的展示级别"
44
51
  },
45
52
  "maxLines": {
46
53
  "title": "最大行数",
47
54
  "type": "number",
55
+ "description": "应用发布为小程序时,该属性不生效",
48
56
  "default": 2,
49
57
  "x-index": 5,
50
- "x-category": "高级属性"
58
+ "x-category": "高级属性",
59
+ "remarks": "更改文本支持展示的最大行数,若最大行数无法承载当前文本内容,则会将超出内容用省略号来替代"
51
60
  },
52
-
53
61
  "space": {
54
62
  "title": "连续空格",
55
63
  "type": "boolean",
56
64
  "description": "是否显示连续空格",
57
65
  "default": false,
58
- "x-category": "高级属性"
66
+ "x-category": "高级属性",
67
+ "remarks": "开启后文本组件将支持识别多个空格字符,关闭后文本组件仅支持识别单个空格字符(多空格字符会自动转换成单个空格字符)"
59
68
  },
60
69
  "userSelect": {
61
70
  "title": "是否可选中",
62
71
  "type": "boolean",
63
72
  "description": "是否可选中文本",
64
73
  "default": true,
65
- "x-category": "高级属性"
74
+ "x-category": "高级属性",
75
+ "remarks": "关闭后文本将不支持进行选中,无法进行复制等常见文本操作"
66
76
  }
67
77
  }
68
78
  },
@@ -74,9 +84,12 @@
74
84
  ],
75
85
  "meta": {
76
86
  "title": "文本",
77
- "description": "文本内容",
87
+ "description": "用于展示页面中的文本内容。",
78
88
  "category": "文本",
79
89
  "componentOrder": 100,
80
90
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Text.svg"
91
+ },
92
+ "configMeta": {
93
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Text"
81
94
  }
82
95
  }
@@ -0,0 +1,141 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "properties": {
5
+ "text": {
6
+ "title": "按钮标题",
7
+ "default": "获取用户手机号",
8
+ "remarks": "按钮组件的标题",
9
+ "type": "string",
10
+ "x-category": "基础属性",
11
+ "x-platforms": [
12
+ "MP"
13
+ ],
14
+ "x-index": 1
15
+ },
16
+ "type": {
17
+ "title": "按钮风格",
18
+ "type": "string",
19
+ "default": "wechat",
20
+ "remarks": "按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格",
21
+ "enum": [
22
+ {
23
+ "label": "默认",
24
+ "value": "default"
25
+ },
26
+ {
27
+ "label": "微信",
28
+ "value": "wechat"
29
+ },
30
+ {
31
+ "label": "主要",
32
+ "value": "primary"
33
+ },
34
+ {
35
+ "label": "警告",
36
+ "value": "warn"
37
+ }
38
+ ],
39
+ "x-category": "基础属性",
40
+ "x-platforms": [
41
+ "MP"
42
+ ],
43
+ "x-index": 2
44
+ },
45
+ "size": {
46
+ "title": "按钮大小",
47
+ "type": "string",
48
+ "default": "default",
49
+ "remarks": "按钮的大小",
50
+ "enum": [
51
+ {
52
+ "label": "中",
53
+ "value": "default"
54
+ },
55
+ {
56
+ "label": "小",
57
+ "value": "mini"
58
+ },
59
+ {
60
+ "label": "大",
61
+ "value": "large"
62
+ }
63
+ ],
64
+ "x-category": "基础属性",
65
+ "x-platforms": [
66
+ "MP"
67
+ ],
68
+ "x-index": 3
69
+ }
70
+ }
71
+ },
72
+ "events": [
73
+ {
74
+ "title": "手机号授权成功",
75
+ "name": "phonesuccess",
76
+ "remarks": "弹窗中点击了允许按钮后触发的事件",
77
+ "x-platforms": [
78
+ "MP"
79
+ ],
80
+ "detail": {
81
+ "phoneNumber": {
82
+ "type": "string",
83
+ "title": "区号+手机号",
84
+ "x-index": 1
85
+ },
86
+ "purePhoneNumber": {
87
+ "type": "string",
88
+ "title": "无区号手机号",
89
+ "x-index": 2
90
+ },
91
+ "countryCode": {
92
+ "type": "string",
93
+ "title": "区号",
94
+ "x-index": 3
95
+ },
96
+ "timestamp": {
97
+ "type": "string",
98
+ "title": "授权时间",
99
+ "x-index": 4
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "title": "手机号授权失败",
105
+ "remarks": "弹窗中点击了拒绝按钮后触发的事件",
106
+ "name": "phonefail",
107
+ "x-platforms": [
108
+ "MP"
109
+ ]
110
+ }
111
+ ],
112
+ "meta": {
113
+ "title": "获取用户手机号",
114
+ "description": "在小程序运行态对用户的手机号进行获取。",
115
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Phone.svg",
116
+ "category": "微信开放能力",
117
+ "categoryOrder": 100,
118
+ "componentOrder": 2,
119
+ "platform": [
120
+ "MP"
121
+ ],
122
+ "visible": [
123
+ "APP"
124
+ ],
125
+ "validate": [
126
+ {
127
+ "rule": "checkBusiness",
128
+ "options": {
129
+ "allowFailure": true,
130
+ "title": "小程序组件(获取用户手机号)",
131
+ "description": "组件功能依赖企业主体小程序",
132
+ "type": "mp",
133
+ "version": ""
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ "configMeta": {
139
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/Phone"
140
+ }
141
+ }
@@ -0,0 +1,121 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "properties": {
5
+ "text": {
6
+ "title": "按钮标题",
7
+ "default": "获取用户手机号授权令牌",
8
+ "remarks": "按钮组件的标题",
9
+ "type": "string",
10
+ "x-category": "基础属性",
11
+ "x-platforms": [
12
+ "MP"
13
+ ],
14
+ "x-index": 1
15
+ },
16
+ "type": {
17
+ "title": "按钮风格",
18
+ "type": "string",
19
+ "default": "wechat",
20
+ "remarks": "按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格",
21
+ "enum": [
22
+ {
23
+ "label": "默认",
24
+ "value": "default"
25
+ },
26
+ {
27
+ "label": "微信",
28
+ "value": "wechat"
29
+ },
30
+ {
31
+ "label": "主要",
32
+ "value": "primary"
33
+ },
34
+ {
35
+ "label": "警告",
36
+ "value": "warn"
37
+ }
38
+ ],
39
+ "x-category": "基础属性",
40
+ "x-platforms": [
41
+ "MP"
42
+ ],
43
+ "x-index": 2
44
+ },
45
+ "size": {
46
+ "title": "按钮大小",
47
+ "type": "string",
48
+ "default": "default",
49
+ "remarks": "按钮的大小",
50
+ "enum": [
51
+ {
52
+ "label": "中",
53
+ "value": "default"
54
+ },
55
+ {
56
+ "label": "小",
57
+ "value": "mini"
58
+ },
59
+ {
60
+ "label": "大",
61
+ "value": "large"
62
+ }
63
+ ],
64
+ "x-category": "基础属性",
65
+ "x-platforms": [
66
+ "MP"
67
+ ],
68
+ "x-index": 3
69
+ }
70
+ }
71
+ },
72
+ "events": [
73
+ {
74
+ "title": "获取手机号授权令牌成功",
75
+ "name": "phoneCodeSuccess",
76
+ "remarks": "弹窗中点击了允许按钮后触发的事件",
77
+ "x-platforms": [
78
+ "MP"
79
+ ],
80
+ "detail": {
81
+ "code": {
82
+ "type": "string",
83
+ "title": "手机号授权令牌",
84
+ "x-index": 1
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "title": "获取手机号授权令牌失败",
90
+ "remarks": "弹窗中点击了拒绝按钮后触发的事件",
91
+ "name": "phoneCodeFail",
92
+ "x-platforms": [
93
+ "MP"
94
+ ]
95
+ }
96
+ ],
97
+ "meta": {
98
+ "title": "获取用户手机号授权令牌",
99
+ "description": "获取用户手机号授权令牌组件",
100
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Phone.svg",
101
+ "category": "微信开放能力",
102
+ "categoryOrder": 100,
103
+ "componentOrder": 2,
104
+ "platform": [
105
+ "MP"
106
+ ],
107
+ "visible": [],
108
+ "validate": [
109
+ {
110
+ "rule": "checkBusiness",
111
+ "options": {
112
+ "allowFailure": true,
113
+ "title": "小程序组件(获取用户手机号授权令牌)",
114
+ "description": "组件功能依赖企业主体小程序",
115
+ "type": "mp",
116
+ "version": ""
117
+ }
118
+ }
119
+ ]
120
+ }
121
+ }