@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
@@ -51,7 +51,7 @@
51
51
  }
52
52
  }
53
53
  ],
54
- "remarks":"展示数据的数据来源"
54
+ "remarks": "展示数据的数据来源"
55
55
  },
56
56
  "where": {
57
57
  "x-index": 20,
@@ -69,16 +69,8 @@
69
69
  }
70
70
  ],
71
71
  "blackListConfig": {
72
- "format": [
73
- "related",
74
- "father-son",
75
- "x-file",
76
- "x-image"
77
- ],
78
- "type": [
79
- "object",
80
- "array"
81
- ]
72
+ "format": ["related", "father-son", "x-file", "x-image"],
73
+ "type": ["object", "array"]
82
74
  },
83
75
  "customRelOptions": {
84
76
  "number": [
@@ -120,7 +112,7 @@
120
112
  "data-hideBindValue": true,
121
113
  "data-withBindMeta": true
122
114
  },
123
- "remarks":"对数据进行筛选过滤"
115
+ "remarks": "对数据进行筛选过滤"
124
116
  }
125
117
  }
126
118
  },
@@ -128,17 +120,17 @@
128
120
  {
129
121
  "name": "queryEmpty",
130
122
  "title": "查询为空",
131
- "remarks":"数据查询为空时触发"
123
+ "remarks": "数据查询为空时触发"
132
124
  },
133
125
  {
134
126
  "name": "querySuccess",
135
127
  "title": "查询成功",
136
- "remarks":"数据查询成功时触发"
128
+ "remarks": "数据查询成功时触发"
137
129
  },
138
130
  {
139
131
  "name": "queryFail",
140
132
  "title": "查询失败",
141
- "remarks":"数据查询失败时触发"
133
+ "remarks": "数据查询失败时触发"
142
134
  }
143
135
  ],
144
136
  "compConfig": {
@@ -30,8 +30,14 @@
30
30
  "x-index": 5,
31
31
  "default": "m",
32
32
  "enum": [
33
- { "label": "小尺寸(360px)", "value": "m" },
34
- { "label": "大尺寸(800px)", "value": "l" }
33
+ {
34
+ "label": "小尺寸(360px)",
35
+ "value": "m"
36
+ },
37
+ {
38
+ "label": "大尺寸(800px)",
39
+ "value": "l"
40
+ }
35
41
  ],
36
42
  "x-category": "高级属性"
37
43
  },
@@ -63,8 +69,14 @@
63
69
  "x-index": 10,
64
70
  "default": "right",
65
71
  "enum": [
66
- { "label": "右侧出来", "value": "right" },
67
- { "label": "左侧出来", "value": "left" }
72
+ {
73
+ "label": "右侧出来",
74
+ "value": "right"
75
+ },
76
+ {
77
+ "label": "左侧出来",
78
+ "value": "left"
79
+ }
68
80
  ],
69
81
  "x-category": "高级属性"
70
82
  },
@@ -83,8 +95,14 @@
83
95
  }
84
96
  },
85
97
  "events": [
86
- { "name": "onClose", "title": "点击关闭图标或抽屉外区域的回调" },
87
- { "name": "onExited", "title": "抽屉关闭动画结束时回调" }
98
+ {
99
+ "name": "onClose",
100
+ "title": "点击关闭图标或抽屉外区域的回调"
101
+ },
102
+ {
103
+ "name": "onExited",
104
+ "title": "抽屉关闭动画结束时回调"
105
+ }
88
106
  ],
89
107
  "platforms": ["web"],
90
108
  "meta": {
@@ -2,6 +2,25 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
+ "layout": {
6
+ "x-platforms": ["PCWEB"],
7
+ "enum": [
8
+ {
9
+ "label": "水平",
10
+ "value": "horizontal"
11
+ },
12
+ {
13
+ "label": "垂直",
14
+ "value": "vertical"
15
+ }
16
+ ],
17
+ "type": "string",
18
+ "title": "布局方式",
19
+ "default": "horizontal",
20
+ "x-index": 50,
21
+ "x-category": "基础属性",
22
+ "remarks": "设置当前容器内表单类组件的标题和输入选择区域为左右布局或上下布局"
23
+ },
5
24
  "contentSlot": {
6
25
  "type": "slot",
7
26
  "title": "控制区"
@@ -130,10 +130,25 @@
130
130
  "category": "表单"
131
131
  },
132
132
  "events": [
133
- { "name": "change", "title": "输入改变" },
134
- { "name": "focus", "title": "聚焦" },
135
- { "name": "blur", "title": "失焦" },
136
- { "name": "confirm", "title": "确认" },
137
- { "name": "clear", "title": "清除内容" }
133
+ {
134
+ "name": "change",
135
+ "title": "输入改变"
136
+ },
137
+ {
138
+ "name": "focus",
139
+ "title": "聚焦"
140
+ },
141
+ {
142
+ "name": "blur",
143
+ "title": "失焦"
144
+ },
145
+ {
146
+ "name": "confirm",
147
+ "title": "确认"
148
+ },
149
+ {
150
+ "name": "clear",
151
+ "title": "清除内容"
152
+ }
138
153
  ]
139
154
  }
@@ -2,16 +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
- "dataSource": {
6
- "type": "object",
7
- "default": {},
8
- "title": "数据源属性"
9
- },
10
- "label": {
11
- "type": "string",
12
- "default": "地图定位",
13
- "title": "标题"
14
- },
15
5
  "locationType": {
16
6
  "enum": [
17
7
  {
@@ -37,62 +27,72 @@
37
27
  "title": "位置输入",
38
28
  "x-index": 4,
39
29
  "x-category": "基础属性",
40
- "properties":{
41
- "latitude":{
30
+ "properties": {
31
+ "latitude": {
42
32
  "title": "纬度",
43
- "type":"number",
44
- "default":22.540366
33
+ "type": "number",
34
+ "default": 22.540366
45
35
  },
46
- "longitude":{
36
+ "longitude": {
47
37
  "title": "经度",
48
- "type":"number",
49
- "default":113.934559
38
+ "type": "number",
39
+ "default": 113.934559
50
40
  },
51
- "poiname":{
41
+ "poiname": {
52
42
  "title": "详细位置",
53
- "type":"string",
54
- "default":"深圳市南山区深南大道10000号腾讯大厦"
43
+ "type": "string",
44
+ "default": "深圳市南山区深南大道10000号腾讯大厦"
55
45
  }
56
46
  },
57
47
  "default": {
58
- "latitude":22.540366,
59
- "longitude":113.934559,
60
- "poiname":"深圳市南山区深南大道10000号腾讯大厦"
48
+ "latitude": 22.540366,
49
+ "longitude": 113.934559,
50
+ "poiname": "深圳市南山区深南大道10000号腾讯大厦"
61
51
  }
62
52
  },
53
+ "dataSource": {
54
+ "type": "object",
55
+ "default": {},
56
+ "title": "数据源属性"
57
+ },
58
+ "label": {
59
+ "type": "string",
60
+ "default": "地图定位",
61
+ "title": "标题"
62
+ },
63
63
  "value": {
64
64
  "type": "object",
65
65
  "title": "默认值",
66
66
  "x-category": "基础属性",
67
67
  "x-component": "jsontext",
68
- "properties":{
68
+ "properties": {
69
69
  "address": {
70
- "description":"地点名称",
71
- "type":"string",
72
- "default":""
70
+ "description": "地点名称",
71
+ "type": "string",
72
+ "default": ""
73
73
  },
74
- "geopoint":{
75
- "description": "经纬度",
76
- "type": "object",
77
- "properties": {
78
- "coordinates": {
79
- "x-required": true,
80
- "type": "array",
81
- "items": {
82
- "minItems": 2,
83
- "maxItems": 2,
84
- "type": "number"
85
- }
86
- },
87
- "type": {
88
- "x-required": true,
89
- "type": "string"
74
+ "geopoint": {
75
+ "description": "经纬度",
76
+ "type": "object",
77
+ "properties": {
78
+ "coordinates": {
79
+ "x-required": true,
80
+ "type": "array",
81
+ "items": {
82
+ "minItems": 2,
83
+ "maxItems": 2,
84
+ "type": "number"
90
85
  }
91
- },
92
- "default":{
93
- "coordinates":[39.98410411,116.307503],
94
- "type":"Point"
86
+ },
87
+ "type": {
88
+ "x-required": true,
89
+ "type": "string"
95
90
  }
91
+ },
92
+ "default": {
93
+ "coordinates": [39.98410411, 116.307503],
94
+ "type": "Point"
95
+ }
96
96
  }
97
97
  },
98
98
  "default": {
@@ -147,6 +147,9 @@
147
147
  "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/FormLocation.svg"
148
148
  },
149
149
  "events": [
150
- { "name": "change", "title": "选择定位坐标改变" }
150
+ {
151
+ "name": "change",
152
+ "title": "选择定位坐标改变"
153
+ }
151
154
  ]
152
155
  }
@@ -151,9 +151,7 @@
151
151
  "title": "大小",
152
152
  "default": "l",
153
153
  "x-category": "高级属性",
154
- "x-platforms": [
155
- "PCWEB"
156
- ]
154
+ "x-platforms": ["PCWEB"]
157
155
  },
158
156
  "enumName": {
159
157
  "type": "string",
@@ -7,21 +7,21 @@
7
7
  "default": "标题",
8
8
  "title": "标题",
9
9
  "x-category": "基础属性",
10
- "x-index":1
10
+ "x-index": 1
11
11
  },
12
12
  "labelVisible": {
13
13
  "type": "boolean",
14
14
  "default": true,
15
15
  "title": "是否显示标题",
16
16
  "x-category": "基础属性",
17
- "x-index":2
17
+ "x-index": 2
18
18
  },
19
19
  "requiredFlag": {
20
20
  "type": "boolean",
21
21
  "default": false,
22
22
  "title": "是否显示必填标记",
23
23
  "x-category": "基础属性",
24
- "x-index":3
24
+ "x-index": 3
25
25
  },
26
26
  "layout": {
27
27
  "title": "布局方式",
@@ -38,35 +38,35 @@
38
38
  }
39
39
  ],
40
40
  "x-category": "基础属性",
41
- "x-index":4
41
+ "x-index": 4
42
42
  },
43
43
  "name": {
44
44
  "type": "string",
45
45
  "default": "formRichText",
46
46
  "title": "提交后台所用字段",
47
47
  "x-category": "基础属性",
48
- "x-index":5
48
+ "x-index": 5
49
49
  },
50
50
  "value": {
51
51
  "type": "string",
52
52
  "default": "",
53
53
  "title": "初始值",
54
54
  "x-category": "基础属性",
55
- "x-index":6
55
+ "x-index": 6
56
56
  },
57
57
  "readOnly": {
58
58
  "type": "boolean",
59
59
  "default": false,
60
60
  "title": "是否只读",
61
61
  "x-category": "基础属性",
62
- "x-index":7
62
+ "x-index": 7
63
63
  },
64
64
  "maxSize": {
65
- "type":"number",
65
+ "type": "number",
66
66
  "default": 10,
67
67
  "title": "单张图片最大(M)",
68
68
  "x-category": "基础属性",
69
- "x-index":8
69
+ "x-index": 8
70
70
  },
71
71
  "acceptTypes": {
72
72
  "type": "array",
@@ -106,15 +106,15 @@
106
106
  ]
107
107
  },
108
108
  "x-category": "基础属性",
109
- "x-index":9
109
+ "x-index": 9
110
110
  }
111
111
  }
112
112
  },
113
113
  "meta": {
114
- "title": "富文本",
115
- "description": "富文本编辑器",
116
- "category": "表单",
117
- "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/RichText.svg"
114
+ "title": "富文本",
115
+ "description": "富文本编辑器",
116
+ "category": "表单",
117
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/RichText.svg"
118
118
  },
119
119
  "events": [
120
120
  {
@@ -2,6 +2,65 @@
2
2
  "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
3
  "data": {
4
4
  "properties": {
5
+ "where": {
6
+ "x-index": 20,
7
+ "title": "选项筛选",
8
+ "x-category": "基础属性",
9
+ "type": "array",
10
+ "items": {},
11
+ "x-component": "condition-select",
12
+ "x-component-props": {
13
+ "selectedDataSourceName": "",
14
+ "customLogicOptions": [
15
+ {
16
+ "text": "且",
17
+ "value": "and"
18
+ }
19
+ ],
20
+ "blackListConfig": {
21
+ "format": ["related", "father-son", "x-file", "x-image"],
22
+ "type": ["object", "array"]
23
+ },
24
+ "customRelOptions": {
25
+ "number": [
26
+ {
27
+ "value": "equal",
28
+ "text": "等于",
29
+ "type": "equal"
30
+ },
31
+ {
32
+ "value": "unequal",
33
+ "text": "不等于"
34
+ },
35
+ {
36
+ "value": "greater",
37
+ "text": "大于",
38
+ "type": "greate"
39
+ },
40
+ {
41
+ "value": "greater_or_equal",
42
+ "text": "大于等于",
43
+ "type": "greater_or_equal"
44
+ },
45
+ {
46
+ "value": "less",
47
+ "text": "小于",
48
+ "type": "less"
49
+ },
50
+ {
51
+ "value": "less_or_equal",
52
+ "text": "小于等于",
53
+ "type": "less_or_equal"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ "x-props": {
59
+ "data-hidebind": true,
60
+ "data-hideBindValue": true,
61
+ "data-withBindMeta": true
62
+ }
63
+ },
5
64
  "defaultValue": {
6
65
  "type": "string",
7
66
  "default": "",
@@ -26,13 +85,7 @@
26
85
  "type": "string",
27
86
  "default": "selector",
28
87
  "title": "类型",
29
- "enum": [
30
- "selector",
31
- "date",
32
- "time",
33
- "region",
34
- "mutiRegion"
35
- ],
88
+ "enum": ["selector", "date", "time", "region", "mutiRegion"],
36
89
  "x-linkages": [
37
90
  {
38
91
  "type": "value:visible",
@@ -83,9 +136,7 @@
83
136
  "value": "full"
84
137
  }
85
138
  ],
86
- "x-platforms": [
87
- "PCWEB"
88
- ]
139
+ "x-platforms": ["PCWEB"]
89
140
  },
90
141
  "startTime": {
91
142
  "type": "string",
@@ -140,11 +191,7 @@
140
191
  "items": {
141
192
  "type": "string"
142
193
  },
143
- "default": [
144
- "北京市",
145
- "北京市",
146
- "东城区"
147
- ]
194
+ "default": ["北京市", "北京市", "东城区"]
148
195
  },
149
196
  "regionType": {
150
197
  "type": "string",
@@ -256,73 +303,6 @@
256
303
  }
257
304
  ]
258
305
  },
259
- "where": {
260
- "x-index": 20,
261
- "title": "选项筛选",
262
- "x-category": "基础属性",
263
- "type": "array",
264
- "items": {},
265
- "x-component": "condition-select",
266
- "x-component-props": {
267
- "selectedDataSourceName": "",
268
- "customLogicOptions": [
269
- {
270
- "text": "且",
271
- "value": "and"
272
- }
273
- ],
274
- "blackListConfig": {
275
- "format": [
276
- "related",
277
- "father-son",
278
- "x-file",
279
- "x-image"
280
- ],
281
- "type": [
282
- "object",
283
- "array"
284
- ]
285
- },
286
- "customRelOptions": {
287
- "number": [
288
- {
289
- "value": "equal",
290
- "text": "等于",
291
- "type": "equal"
292
- },
293
- {
294
- "value": "unequal",
295
- "text": "不等于"
296
- },
297
- {
298
- "value": "greater",
299
- "text": "大于",
300
- "type": "greate"
301
- },
302
- {
303
- "value": "greater_or_equal",
304
- "text": "大于等于",
305
- "type": "greater_or_equal"
306
- },
307
- {
308
- "value": "less",
309
- "text": "小于",
310
- "type": "less"
311
- },
312
- {
313
- "value": "less_or_equal",
314
- "text": "小于等于",
315
- "type": "less_or_equal"
316
- }
317
- ]
318
- }
319
- },
320
- "x-props": {
321
- "data-hidebind": true,
322
- "data-hideBindValue": true,
323
- "data-withBindMeta": true
324
- }
325
- },
326
306
  "range": {
327
307
  "type": "array",
328
308
  "default": [
@@ -99,5 +99,18 @@
99
99
  "description": "多行输入框",
100
100
  "category": "表单"
101
101
  },
102
- "events": [{ "name": "change", "title": "输入改变" }]
102
+ "events": [
103
+ {
104
+ "name": "change",
105
+ "title": "输入改变"
106
+ },
107
+ {
108
+ "name": "focus",
109
+ "title": "聚焦"
110
+ },
111
+ {
112
+ "name": "blur",
113
+ "title": "失焦"
114
+ }
115
+ ]
103
116
  }