@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
package/README.md CHANGED
@@ -121,6 +121,9 @@ export default function Container({ children, events, ...args }) {
121
121
 
122
122
  组件配置默认存放在 `src/configs` 目录下。
123
123
 
124
+ #### 组件代码模版生成
125
+ 可以通过 `npm run new` 生成上述文件
126
+
124
127
  ### 调试组件库
125
128
 
126
129
  组件编写完成后,在腾讯云微搭低代码编辑器调试组件库,在当前目录执行:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/weda-ui",
3
- "version": "0.2.17",
3
+ "version": "2.0.8",
4
4
  "main": "./src/index.js",
5
5
  "module": "./src/index",
6
6
  "miniprogram": "mpdist",
@@ -44,7 +44,8 @@
44
44
  "build-npm": "rimraf dist && mkdir dist && cp -r src/web dist/ && cp -r src/configs dist/ && cp src/index.js dist/",
45
45
  "build-mp": "rimraf mpdist && cp -r src/mp mpdist",
46
46
  "clear:snap": "rimraf ./src/test/__snapshots__",
47
- "size": "npm run build:cli && size-limit"
47
+ "size": "npm run build:cli && size-limit",
48
+ "new": "npx hygen comp new"
48
49
  },
49
50
  "keywords": [
50
51
  "weda",
@@ -58,11 +59,12 @@
58
59
  "@cloudbase/ui-react": "^1.0.4",
59
60
  "@loadable/component": "^5.15.2",
60
61
  "@react-hookz/web": "^12.3.0",
61
- "@tcwd/style-wedatheme": "^1.0.0",
62
+ "@tcwd/style-wedatheme": "^1.0.1",
62
63
  "@use-gesture/react": "^10.2.4",
63
64
  "braft-editor": "^2.3.9",
64
65
  "braft-utils": "^3.0.12",
65
66
  "dayjs": "^1.10.7",
67
+ "destr": "^1.1.1",
66
68
  "echarts": "^5.3.0",
67
69
  "lodash.isequal": "^4.5.0",
68
70
  "object.fromentries": "^2.0.5",
@@ -82,6 +84,7 @@
82
84
  "@babel/preset-env": "^7.16.5",
83
85
  "@babel/preset-react": "^7.16.5",
84
86
  "@babel/preset-typescript": "^7.16.5",
87
+ "@cloudbase/cli": "^1.12.4",
85
88
  "@cloudbase/lowcode-build-dependence": "^0.9.0",
86
89
  "@commitlint/cli": "^16.0.2",
87
90
  "@commitlint/config-conventional": "^13.2.0",
@@ -101,7 +104,7 @@
101
104
  "@types/jest": "^27.0.3",
102
105
  "@types/resize-observer-browser": "^0.1.6",
103
106
  "@typescript-eslint/eslint-plugin": "^5.9.0",
104
- "@typescript-eslint/parser": "^5.11.0",
107
+ "@typescript-eslint/parser": "^5.21.0",
105
108
  "babel-jest": "^27.4.5",
106
109
  "babel-loader": "^8.2.3",
107
110
  "babel-plugin-istanbul": "^6.1.1",
@@ -110,7 +113,9 @@
110
113
  "cypress": "~9.5.1",
111
114
  "eslint": "^8.9.0",
112
115
  "eslint-config-tencent": "^1.0.3",
116
+ "eslint-import-resolver-typescript": "^2.7.1",
113
117
  "eslint-plugin-cypress": "^2.12.1",
118
+ "eslint-plugin-import": "^2.26.0",
114
119
  "eslint-plugin-jest": "^26.1.2",
115
120
  "eslint-plugin-react": "^7.28.0",
116
121
  "eslint-plugin-rulesdir": "^0.2.1",
@@ -144,7 +149,7 @@
144
149
  {
145
150
  "path": ".temp/dist/*.main.*",
146
151
  "webpack": false,
147
- "limit": "970 KB"
152
+ "limit": "1000 KB"
148
153
  }
149
154
  ],
150
155
  "nyc": {
@@ -103,10 +103,8 @@
103
103
  ],
104
104
  "enum": [
105
105
  { "label": "无", "value": "" },
106
- { "label": "获取手机号", "value": "getPhoneNumber" },
107
106
  { "label": "打开客服会话", "value": "contact" },
108
107
  { "label": "转发", "value": "share" },
109
- { "label": "获取用户信息", "value": "getUserInfo" },
110
108
  { "label": "打开App", "value": "launchApp" },
111
109
  { "label": "打开授权设置", "value": "openSetting" },
112
110
  { "label": "打开意见反馈", "value": "feedback" }
@@ -6,12 +6,14 @@
6
6
  "type": "date",
7
7
  "title": "日历展示时间",
8
8
  "x-category": "基础属性",
9
- "x-index": 1
9
+ "x-index": 1,
10
+ "remarks":"已选中效果展示的日期"
10
11
  },
11
12
  "configData": {
12
13
  "type": "array",
13
14
  "title": "展示配置",
14
15
  "x-category": "基础属性",
16
+ "remarks":"可设置多个不同日期的特殊显示效果",
15
17
  "x-index": 2,
16
18
  "items": {
17
19
  "type": "object",
@@ -61,15 +63,19 @@
61
63
  "default": true,
62
64
  "title": "时间控制器",
63
65
  "x-category": "基础属性",
64
- "x-index": 3
66
+ "x-index": 3,
67
+ "remarks":"显示切换年月的操作按钮"
65
68
  }
66
69
  }
67
70
  },
68
71
  "meta": {
69
72
  "name": "Calendar",
70
73
  "title": "日历",
71
- "description": "日历组件",
74
+ "description": "用于日历展示,例如考勤数据展示、日程展示。",
72
75
  "category": "展示",
73
76
  "icon": "https://imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Calendar.svg"
77
+ },
78
+ "configMeta": {
79
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Calendar"
74
80
  }
75
81
  }
@@ -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
  "images": {
62
71
  "type": "array",
@@ -60,7 +60,8 @@
60
60
  }
61
61
  }
62
62
  }
63
- ]
63
+ ],
64
+ "remarks": "支持横向和纵向。纵向维度为 X 轴,数值为 Y 轴,横向反之。本文属性设置以纵向为例"
64
65
  },
65
66
  "isPile": {
66
67
  "title": "是否堆叠",
@@ -132,7 +133,8 @@
132
133
  "__datasourceName": "{{$self.value.name}}"
133
134
  }
134
135
  }
135
- ]
136
+ ],
137
+ "remarks": "为统计卡片设置数据源,选择已经建好的 数据模型,单击数据源下拉菜单,选择统计"
136
138
  },
137
139
  "filterData": {
138
140
  "title": "数据筛选",
@@ -241,13 +243,15 @@
241
243
  "data-hidebind": true,
242
244
  "data-hideBindValue": true,
243
245
  "data-withBindMeta": true
244
- }
246
+ },
247
+ "remarks": "可配置数据取值范围,可参见 数据筛选配置"
245
248
  },
246
249
  "setColor": {
247
250
  "type": "array",
248
251
  "title": "配色",
249
252
  "x-index": 70,
250
- "x-component": "color-plate"
253
+ "x-component": "color-plate",
254
+ "remarks": "当有多个数值字段或维度字段分组时,不同类别将按照不同配色展示,支持自定义色卡"
251
255
  },
252
256
  "xFieldShow": {
253
257
  "x-index": 80,
@@ -255,7 +259,8 @@
255
259
  "x-component": "sub-category-title",
256
260
  "x-component-props": {
257
261
  "text": "维度(X轴)"
258
- }
262
+ },
263
+ "remarks": "选择 X 轴字段,支持统计空值。当选择日期、时间、日期时间类型字段时,支持选择统计维度"
259
264
  },
260
265
  "xField": {
261
266
  "type": "object",
@@ -267,7 +272,9 @@
267
272
  "x-component-props": {
268
273
  "dataSourceNamePropKey": "dataSource",
269
274
  "isMethod": true,
270
- "disabledTypes": ["time"]
275
+ "disabledTypes": [
276
+ "time"
277
+ ]
271
278
  },
272
279
  "x-linkages": [
273
280
  {
@@ -347,7 +354,8 @@
347
354
  "x-datasource-method-reset": "",
348
355
  "x-component-props": {
349
356
  "dataSourceNamePropKey": "dataSource",
350
- "isMethod": true
357
+ "isMethod": true,
358
+ "clearable": true
351
359
  },
352
360
  "x-linkages": [
353
361
  {
@@ -371,7 +379,8 @@
371
379
  "enum": "{{$self.value.format ==='datetime' ? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'},{'label':'时','value':'h'},{'label':'分','value':'min'}] : ($self.value.format ==='date'? [{'label':'年','value':'y'},{'label':'季','value':'q'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'}]: []) }}"
372
380
  }
373
381
  }
374
- ]
382
+ ],
383
+ "remarks": "当 Y 轴仅选择一个字段时,支持根据某一固定字段对 X 轴进行分组展示。示例:X 轴为销售人员,分组为销售区域"
375
384
  },
376
385
  "groupKeyTimeSpan": {
377
386
  "title": "分组维度",
@@ -408,7 +417,9 @@
408
417
  "default": "bottom",
409
418
  "x-category": "基础属性",
410
419
  "x-index": 160,
411
- "x-platforms": ["PCWEB"],
420
+ "x-platforms": [
421
+ "PCWEB"
422
+ ],
412
423
  "enum": [
413
424
  {
414
425
  "value": "top",
@@ -434,7 +445,10 @@
434
445
  "default": "bottom",
435
446
  "x-category": "基础属性",
436
447
  "x-index": 170,
437
- "x-platforms": ["MOBILEWEB", "MP"],
448
+ "x-platforms": [
449
+ "MOBILEWEB",
450
+ "MP"
451
+ ],
438
452
  "enum": [
439
453
  {
440
454
  "value": "top",
@@ -702,10 +716,15 @@
702
716
  "events": [],
703
717
  "meta": {
704
718
  "title": "柱状图",
705
- "description": "柱状图",
719
+ "description": "柱状图组件主要用于报表场景下展示数据之间大小的对比,支持小程序、H5 和 PC Web 端。",
706
720
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Histogram.svg",
707
721
  "category": "图表组件",
708
722
  "componentOrder": 1,
709
- "visible": ["APP"]
723
+ "visible": [
724
+ "APP"
725
+ ]
726
+ },
727
+ "configMeta": {
728
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Bar"
710
729
  }
711
730
  }
@@ -18,7 +18,8 @@
18
18
  "label": "曲线",
19
19
  "value": "bight"
20
20
  }
21
- ]
21
+ ],
22
+ "remarks": "支持折线和曲线"
22
23
  },
23
24
  "isTitle": {
24
25
  "title": "显示标题",
@@ -83,7 +84,8 @@
83
84
  "__datasourceName": "{{$self.value.name}}"
84
85
  }
85
86
  }
86
- ]
87
+ ],
88
+ "remarks": "为统计卡片设置数据源,选择已经建好的 数据模型,单击数据源下拉菜单,选择统计"
87
89
  },
88
90
  "filterData": {
89
91
  "title": "数据筛选",
@@ -192,7 +194,8 @@
192
194
  "data-hidebind": true,
193
195
  "data-hideBindValue": true,
194
196
  "data-withBindMeta": true
195
- }
197
+ },
198
+ "remarks": "可配置数据取值范围,可参见 数据筛选配置"
196
199
  },
197
200
  "xFieldShow": {
198
201
  "x-index": 60,
@@ -212,7 +215,9 @@
212
215
  "x-component-props": {
213
216
  "dataSourceNamePropKey": "dataSource",
214
217
  "isMethod": true,
215
- "disabledTypes": ["time"]
218
+ "disabledTypes": [
219
+ "time"
220
+ ]
216
221
  },
217
222
  "x-linkages": [
218
223
  {
@@ -291,7 +296,8 @@
291
296
  "x-datasource-method-reset": "",
292
297
  "x-component-props": {
293
298
  "dataSourceNamePropKey": "dataSource",
294
- "isMethod": true
299
+ "isMethod": true,
300
+ "clearable": true
295
301
  },
296
302
  "x-linkages": [
297
303
  {
@@ -315,7 +321,8 @@
315
321
  "enum": "{{$self.value.format ==='datetime' ? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'},{'label':'时','value':'h'},{'label':'分','value':'min'}] : ($self.value.format ==='date'? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'}]: []) }}"
316
322
  }
317
323
  }
318
- ]
324
+ ],
325
+ "remarks": "当 Y 轴仅选择一个字段时,支持根据某一固定字段对 X 轴进行分组展示。示例:X 轴为销售人员,分组为销售区域"
319
326
  },
320
327
  "groupKeyTimeSpan": {
321
328
  "title": "分组维度",
@@ -352,7 +359,9 @@
352
359
  "default": "bottom",
353
360
  "x-category": "基础属性",
354
361
  "x-index": 150,
355
- "x-platforms": ["PCWEB"],
362
+ "x-platforms": [
363
+ "PCWEB"
364
+ ],
356
365
  "enum": [
357
366
  {
358
367
  "value": "top",
@@ -379,7 +388,10 @@
379
388
  "default": "bottom",
380
389
  "x-category": "基础属性",
381
390
  "x-index": 160,
382
- "x-platforms": ["MOBILEWEB", "MP"],
391
+ "x-platforms": [
392
+ "MOBILEWEB",
393
+ "MP"
394
+ ],
383
395
  "enum": [
384
396
  {
385
397
  "value": "top",
@@ -657,10 +669,15 @@
657
669
  "events": [],
658
670
  "meta": {
659
671
  "title": "折线图",
660
- "description": "折线图",
672
+ "description": "折线图组件主要用于报表场景下展示数据随时间变化产生的趋势,支持小程序、H5 和 PC Web 端。",
661
673
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/LineChart.svg",
662
674
  "category": "图表组件",
663
675
  "componentOrder": 1,
664
- "visible": ["APP"]
676
+ "visible": [
677
+ "APP"
678
+ ]
679
+ },
680
+ "configMeta": {
681
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Line"
665
682
  }
666
683
  }
@@ -18,7 +18,8 @@
18
18
  "label": "环形",
19
19
  "value": "ring"
20
20
  }
21
- ]
21
+ ],
22
+ "remarks": "支持饼形和环形,本文以饼形为例"
22
23
  },
23
24
  "isTitle": {
24
25
  "title": "显示标题",
@@ -75,7 +76,8 @@
75
76
  "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
76
77
  "condition": "{{ $self.value.type ==='database' }}"
77
78
  }
78
- ]
79
+ ],
80
+ "remarks": "为统计卡片设置数据源,选择已经建好的数据模型,单击数据源下拉菜单,选择统计"
79
81
  },
80
82
  "filterData": {
81
83
  "title": "数据筛选",
@@ -184,13 +186,15 @@
184
186
  "data-hidebind": true,
185
187
  "data-hideBindValue": true,
186
188
  "data-withBindMeta": true
187
- }
189
+ },
190
+ "remarks": "可配置数据取值范围,可参见 数据筛选配置"
188
191
  },
189
192
  "setColor": {
190
193
  "type": "array",
191
194
  "title": "配色",
192
195
  "x-index": 60,
193
- "x-component": "color-plate"
196
+ "x-component": "color-plate",
197
+ "remarks": "当有多个数值字段或维度字段分组时,不同类别将按照不同配色展示,支持自定义色卡"
194
198
  },
195
199
  "dimensionalityShow": {
196
200
  "x-index": 70,
@@ -300,7 +304,9 @@
300
304
  "default": "bottom",
301
305
  "x-category": "基础属性",
302
306
  "x-index": 140,
303
- "x-platforms": ["PCWEB"],
307
+ "x-platforms": [
308
+ "PCWEB"
309
+ ],
304
310
  "enum": [
305
311
  {
306
312
  "value": "top",
@@ -326,7 +332,10 @@
326
332
  "default": "bottom",
327
333
  "x-category": "基础属性",
328
334
  "x-index": 150,
329
- "x-platforms": ["MOBILEWEB", "MP"],
335
+ "x-platforms": [
336
+ "MOBILEWEB",
337
+ "MP"
338
+ ],
330
339
  "enum": [
331
340
  {
332
341
  "value": "top",
@@ -478,10 +487,15 @@
478
487
  "events": [],
479
488
  "meta": {
480
489
  "title": "饼图",
481
- "description": "饼图",
490
+ "description": "饼图组件主要用于报表场景下表示数据在总体中的占比,支持小程序、H5 和 PC Web 端。",
482
491
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/PieChart.svg",
483
492
  "category": "图表组件",
484
493
  "componentOrder": 1,
485
- "visible": ["APP"]
494
+ "visible": [
495
+ "APP"
496
+ ]
497
+ },
498
+ "configMeta": {
499
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Pie"
486
500
  }
487
501
  }
@@ -58,16 +58,36 @@
58
58
  "x-component-props": {
59
59
  "dataSourceNamePropKey": "dataSource",
60
60
  "blackListConfig": {
61
- "type": ["object", "array"]
61
+ "type": [
62
+ "object",
63
+ "array"
64
+ ]
62
65
  },
63
66
  "customRelOptions": {
64
67
  "string": [
65
- { "text": "等于", "value": "eq" },
66
- { "text": "不等于", "value": "neq" },
67
- { "text": "包含", "value": "in" },
68
- { "text": "不包含", "value": "nin" }
68
+ {
69
+ "text": "等于",
70
+ "value": "eq"
71
+ },
72
+ {
73
+ "text": "不等于",
74
+ "value": "neq"
75
+ },
76
+ {
77
+ "text": "包含",
78
+ "value": "in"
79
+ },
80
+ {
81
+ "text": "不包含",
82
+ "value": "nin"
83
+ }
84
+ ],
85
+ "boolean": [
86
+ {
87
+ "text": "等于",
88
+ "value": "eq"
89
+ }
69
90
  ],
70
- "boolean": [{ "text": "等于", "value": "eq" }],
71
91
  "keyVarType": [
72
92
  {
73
93
  "value": "eq",
@@ -87,11 +107,31 @@
87
107
  }
88
108
  ],
89
109
  "number": [
90
- { "text": "等于", "value": "eq", "type": "equal" },
91
- { "text": "不等于", "value": "neq", "type": "unequal" },
92
- { "text": "小于", "value": "lt", "type": "less" },
93
- { "text": "小于或等于", "value": "lte", "type": "less_or_equal" },
94
- { "text": "大于", "value": "gt", "type": "greater" },
110
+ {
111
+ "text": "等于",
112
+ "value": "eq",
113
+ "type": "equal"
114
+ },
115
+ {
116
+ "text": "不等于",
117
+ "value": "neq",
118
+ "type": "unequal"
119
+ },
120
+ {
121
+ "text": "小于",
122
+ "value": "lt",
123
+ "type": "less"
124
+ },
125
+ {
126
+ "text": "小于或等于",
127
+ "value": "lte",
128
+ "type": "less_or_equal"
129
+ },
130
+ {
131
+ "text": "大于",
132
+ "value": "gt",
133
+ "type": "greater"
134
+ },
95
135
  {
96
136
  "text": "大于或等于",
97
137
  "value": "gte",
@@ -320,12 +360,20 @@
320
360
  }
321
361
  }
322
362
  },
323
- "events": [{ "title": "点击", "name": "tap" }],
363
+ "events": [
364
+ {
365
+ "title": "点击",
366
+ "name": "tap"
367
+ }
368
+ ],
324
369
  "meta": {
325
370
  "title": "统计卡片",
326
- "description": "统计卡片",
371
+ "description": "统计卡片组件主要提供报表场景下的指标数据统计并展示功能,支持小程序、H5 和 PC Web 端。",
327
372
  "icon": "//qcloudimg.tencent-cloud.cn/raw/8475042e83e7cb5731983a9432de9e30.svg",
328
373
  "category": "图表组件",
329
374
  "componentOrder": 1
375
+ },
376
+ "configMeta": {
377
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/statisticsCard"
330
378
  }
331
379
  }
@@ -6,7 +6,9 @@
6
6
  "title": "容器备注",
7
7
  "type": "string",
8
8
  "description": "鼠标 hover 后的提示",
9
- "x-platforms": ["PCWEB"]
9
+ "x-platforms": [
10
+ "PCWEB"
11
+ ]
10
12
  }
11
13
  }
12
14
  },
@@ -40,8 +42,11 @@
40
42
  "meta": {
41
43
  "title": "普通容器",
42
44
  "category": "布局容器",
43
- "description": "通用块状容器",
45
+ "description": "容器中可放入多个组件,常用于在前端中对页面布局进行管理的场景。 同时也可以通过容器组件绑定数据对容器内的组件进行循环遍历。",
44
46
  "componentOrder": 1000,
45
47
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Container.svg"
48
+ },
49
+ "configMeta": {
50
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/Container"
46
51
  }
47
52
  }