@cloudbase/weda-ui 0.2.15 → 1.0.21

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 (250) hide show
  1. package/README.md +41 -169
  2. package/package.json +28 -15
  3. package/src/configs/components/calendar.json +78 -0
  4. package/src/configs/components/carousel.json +273 -0
  5. package/src/configs/components/chart/bar.json +724 -0
  6. package/src/configs/components/chart/line.json +679 -0
  7. package/src/configs/components/chart/pie.json +497 -0
  8. package/src/configs/components/chart/statisticsCard.json +379 -0
  9. package/src/configs/components/container.json +7 -2
  10. package/src/configs/components/dataView.json +154 -0
  11. package/src/configs/components/form/checkbox.json +97 -5
  12. package/src/configs/components/form/location.json +152 -0
  13. package/src/configs/components/form/radio.json +96 -4
  14. package/src/configs/components/form/select.json +245 -11
  15. package/src/configs/components/form/uploaderFile.json +2 -1
  16. package/src/configs/components/graphicCard.json +410 -0
  17. package/src/configs/components/image.json +7 -2
  18. package/src/configs/components/link.json +20 -4
  19. package/src/configs/components/listView.json +277 -0
  20. package/src/configs/components/modal.json +37 -5
  21. package/src/configs/components/navLayout.json +362 -0
  22. package/src/configs/components/navigationBar.json +59 -0
  23. package/src/configs/components/richtextview.json +4 -1
  24. package/src/configs/components/scrollVeiw.json +74 -22
  25. package/src/configs/components/swiper.json +6 -3
  26. package/src/configs/components/tabs.json +51 -8
  27. package/src/configs/components/text.json +33 -25
  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 +34 -0
  33. package/src/mp/components/button/index.js +12 -13
  34. package/src/mp/components/button/index.wxml +1 -1
  35. package/src/mp/components/calendar/arrowright--line.svg +11 -0
  36. package/src/mp/components/calendar/index.js +238 -0
  37. package/src/mp/components/calendar/index.json +4 -0
  38. package/src/mp/components/calendar/index.wxml +37 -0
  39. package/src/mp/components/calendar/index.wxss +178 -0
  40. package/src/mp/components/carousel/index.js +88 -0
  41. package/src/mp/components/carousel/index.json +7 -0
  42. package/src/mp/components/carousel/index.wxml +6 -0
  43. package/src/mp/components/chart/bar/index.js +258 -0
  44. package/src/mp/components/chart/bar/index.json +6 -0
  45. package/src/mp/components/chart/bar/index.wxml +3 -0
  46. package/src/mp/components/chart/bar/index.wxss +9 -0
  47. package/src/mp/components/chart/common/config/bar.js +50 -0
  48. package/src/mp/components/chart/common/config/global.js +16 -0
  49. package/src/mp/components/chart/common/config/line.js +48 -0
  50. package/src/mp/components/chart/common/config/pie.js +36 -0
  51. package/src/mp/components/chart/common/core/eChartBar.js +263 -0
  52. package/src/mp/components/chart/common/core/eChartBase.js +375 -0
  53. package/src/mp/components/chart/common/core/eChartLine.js +229 -0
  54. package/src/mp/components/chart/common/core/eChartPie.js +166 -0
  55. package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
  56. package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
  57. package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
  58. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
  59. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
  60. package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
  61. package/src/mp/components/chart/line/index.js +247 -0
  62. package/src/mp/components/chart/line/index.json +6 -0
  63. package/src/mp/components/chart/line/index.wxml +3 -0
  64. package/src/mp/components/chart/line/index.wxss +9 -0
  65. package/src/mp/components/chart/pie/index.js +182 -0
  66. package/src/mp/components/chart/pie/index.json +6 -0
  67. package/src/mp/components/chart/pie/index.wxml +4 -0
  68. package/src/mp/components/chart/pie/index.wxss +9 -0
  69. package/src/mp/components/chart/statisticsCard/index.js +253 -0
  70. package/src/mp/components/chart/statisticsCard/index.json +4 -0
  71. package/src/mp/components/chart/statisticsCard/index.wxml +9 -0
  72. package/src/mp/components/chart/statisticsCard/index.wxss +45 -0
  73. package/src/mp/components/dataView/index.js +34 -0
  74. package/src/mp/components/dataView/index.json +7 -0
  75. package/src/mp/components/dataView/index.wxml +15 -0
  76. package/src/mp/components/dataView/index.wxss +0 -0
  77. package/src/mp/components/form/checkbox/index.js +41 -2
  78. package/src/mp/components/form/checkbox/index.wxml +1 -1
  79. package/src/mp/components/form/input/index.js +1 -1
  80. package/src/mp/components/form/location/components/mapChoose/index.js +201 -0
  81. package/src/mp/components/form/location/components/mapChoose/index.json +4 -0
  82. package/src/mp/components/form/location/components/mapChoose/index.wxml +42 -0
  83. package/src/mp/components/form/location/components/mapChoose/index.wxss +188 -0
  84. package/src/mp/components/form/location/index.js +382 -0
  85. package/src/mp/components/form/location/index.json +6 -0
  86. package/src/mp/components/form/location/index.wxml +25 -0
  87. package/src/mp/components/form/location/index.wxss +91 -0
  88. package/src/mp/components/form/radio/index.js +38 -0
  89. package/src/mp/components/form/select/index.js +360 -40
  90. package/src/mp/components/form/select/index.wxml +21 -6
  91. package/src/mp/components/form/select/region/index.js +98 -0
  92. package/src/mp/components/form/textarea/index.wxml +6 -5
  93. package/src/mp/components/form/uploader/index.js +84 -48
  94. package/src/mp/components/form/uploader/index.wxml +15 -3
  95. package/src/mp/components/form/uploaderFile/index.js +106 -27
  96. package/src/mp/components/graphicCard/chevron-right.svg +3 -0
  97. package/src/mp/components/graphicCard/index.js +203 -0
  98. package/src/mp/components/graphicCard/index.json +4 -0
  99. package/src/mp/components/graphicCard/index.wxml +29 -0
  100. package/src/mp/components/graphicCard/index.wxss +157 -0
  101. package/src/mp/components/image/index.js +0 -1
  102. package/src/mp/components/listView/arrow-right-line.svg +3 -0
  103. package/src/mp/components/listView/index.js +285 -0
  104. package/src/mp/components/listView/index.json +4 -0
  105. package/src/mp/components/listView/index.wxml +40 -0
  106. package/src/mp/components/listView/index.wxss +155 -0
  107. package/src/mp/components/listView/more-line.svg +3 -0
  108. package/src/mp/components/navLayout/index.js +123 -0
  109. package/src/mp/components/navLayout/index.json +7 -0
  110. package/src/mp/components/navLayout/index.wxml +25 -0
  111. package/src/mp/components/navLayout/index.wxss +1193 -0
  112. package/src/mp/components/navigationBar/index.js +193 -0
  113. package/src/mp/components/navigationBar/index.json +6 -0
  114. package/src/mp/components/navigationBar/index.wxml +88 -0
  115. package/src/mp/components/navigationBar/index.wxss +1257 -0
  116. package/src/mp/components/swiper/index.wxml +2 -0
  117. package/src/mp/components/tabs/index.js +7 -2
  118. package/src/mp/components/tabs/index.wxml +2 -1
  119. package/src/mp/components/text/index.js +0 -25
  120. package/src/mp/components/text/index.wxml +3 -3
  121. package/src/mp/components/wxOpenApi/phone/index.js +117 -0
  122. package/src/mp/components/wxOpenApi/phone/index.json +4 -0
  123. package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
  124. package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
  125. package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
  126. package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
  127. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
  128. package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
  129. package/src/mp/components/wxOpenApi/share/index.js +117 -0
  130. package/src/mp/components/wxOpenApi/share/index.json +4 -0
  131. package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
  132. package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
  133. package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
  134. package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
  135. package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
  136. package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
  137. package/src/mp/index.json +18 -2
  138. package/src/mp/style/weda-ui.wxss +2 -0
  139. package/src/mp/utils/debounce.js +133 -0
  140. package/src/mp/utils/destr.js +48 -0
  141. package/src/mp/utils/dr_square_point.js +25 -0
  142. package/src/mp/utils/platform.js +25 -0
  143. package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +1336 -0
  144. package/src/mp/utils/spark-md5.js +776 -0
  145. package/src/mp/utils/tcb.js +62 -0
  146. package/src/setupTests.js +2 -1
  147. package/src/web/components/button/index.css +8 -1
  148. package/src/web/components/button/index.tsx +3 -2
  149. package/src/web/components/calendar/index.css +382 -0
  150. package/src/web/components/calendar/index.jsx +312 -0
  151. package/src/web/components/calendar/util.js +90 -0
  152. package/src/web/components/carousel/index.css +119 -0
  153. package/src/web/components/carousel/index.tsx +417 -0
  154. package/src/web/components/chart/bar/index.tsx +140 -0
  155. package/src/web/components/chart/common/config/bar.js +49 -0
  156. package/src/web/components/chart/common/config/global.js +16 -0
  157. package/src/web/components/chart/common/config/line.js +50 -0
  158. package/src/web/components/chart/common/config/pie.js +37 -0
  159. package/src/web/components/chart/common/core/eChartBar.js +265 -0
  160. package/src/web/components/chart/common/core/eChartBase.ts +383 -0
  161. package/src/web/components/chart/common/core/eChartLine.js +231 -0
  162. package/src/web/components/chart/common/core/eChartPie.js +170 -0
  163. package/src/web/components/chart/common/core/type.ts +34 -0
  164. package/src/web/components/chart/common/echart.css +106 -0
  165. package/src/web/components/chart/common/echarts.ts +33 -0
  166. package/src/web/components/chart/common/useChart.tsx +69 -0
  167. package/src/web/components/chart/line/index.tsx +136 -0
  168. package/src/web/components/chart/pie/index.tsx +99 -0
  169. package/src/web/components/chart/statisticsCard/index.css +62 -0
  170. package/src/web/components/chart/statisticsCard/index.tsx +307 -0
  171. package/src/web/components/chart/statisticsCard/interface.ts +14 -0
  172. package/src/web/components/dataView/index.tsx +20 -0
  173. package/src/web/components/dataView/interface.ts +6 -0
  174. package/src/web/components/form/checkbox/index.tsx +55 -23
  175. package/src/web/components/form/location/common/mapChoose.css +178 -0
  176. package/src/web/components/form/location/common/mapChoose.jsx +343 -0
  177. package/src/web/components/form/location/common/mapView.jsx +190 -0
  178. package/src/web/components/form/location/common/propsConfig.js +54 -0
  179. package/src/web/components/form/location/common/selectModal.css +44 -0
  180. package/src/web/components/form/location/common/selectModal.jsx +82 -0
  181. package/src/web/components/form/location/common/useLocationInfo.js +100 -0
  182. package/src/web/components/form/location/components/LocationH5/index.css +243 -0
  183. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +403 -0
  184. package/src/web/components/form/location/components/LocationPC/Header.jsx +109 -0
  185. package/src/web/components/form/location/components/LocationPC/index.css +44 -0
  186. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +323 -0
  187. package/src/web/components/form/location/constants.js +4 -0
  188. package/src/web/components/form/location/index.css +0 -0
  189. package/src/web/components/form/location/index.jsx +25 -0
  190. package/src/web/components/form/radio/index.tsx +84 -53
  191. package/src/web/components/form/select/h5.tsx +389 -71
  192. package/src/web/components/form/select/index.css +10 -0
  193. package/src/web/components/form/select/index.tsx +404 -144
  194. package/src/web/components/form/select/region/index.ts +122 -31
  195. package/src/web/components/form/select/time.jsx +90 -0
  196. package/src/web/components/form/select/year.tsx +170 -0
  197. package/src/web/components/form/uploader/uploader.h5.tsx +19 -4
  198. package/src/web/components/form/uploader/uploader.pc.tsx +8 -7
  199. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +132 -113
  200. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +16 -11
  201. package/src/web/components/graphicCard/index.css +159 -0
  202. package/src/web/components/graphicCard/index.tsx +310 -0
  203. package/src/web/components/image/image.tsx +1 -2
  204. package/src/web/components/image/index.tsx +1 -1
  205. package/src/web/components/index.js +24 -2
  206. package/src/web/components/link/index.tsx +6 -3
  207. package/src/web/components/listView/arrow-right-line.svg +3 -0
  208. package/src/web/components/listView/index.css +143 -0
  209. package/src/web/components/listView/index.tsx +359 -0
  210. package/src/web/components/listView/interface.ts +98 -0
  211. package/src/web/components/modal/index.tsx +3 -1
  212. package/src/web/components/navLayout/index.css +332 -0
  213. package/src/web/components/navLayout/index.tsx +247 -0
  214. package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
  215. package/src/web/components/navigationBar/common.tsx +198 -0
  216. package/src/web/components/navigationBar/h5Menu.tsx +179 -0
  217. package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
  218. package/src/web/components/navigationBar/index.css +762 -0
  219. package/src/web/components/navigationBar/index.tsx +231 -0
  220. package/src/web/components/navigationBar/type.d.ts +111 -0
  221. package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
  222. package/src/web/components/phone/index.css +0 -0
  223. package/src/web/components/phone/index.tsx +22 -0
  224. package/src/web/components/phoneCode/index.css +0 -0
  225. package/src/web/components/phoneCode/index.tsx +22 -0
  226. package/src/web/components/richTextView/index.tsx +3 -5
  227. package/src/web/components/share/index.css +0 -0
  228. package/src/web/components/share/index.tsx +38 -0
  229. package/src/web/components/tabs/index.tsx +4 -2
  230. package/src/web/components/tabs/tabs.h5.tsx +50 -37
  231. package/src/web/components/tabs/tabs.pc.tsx +23 -10
  232. package/src/web/components/text/index.tsx +6 -14
  233. package/src/web/components/uploaderFileView/index.css +9 -9
  234. package/src/web/components/uploaderFileView/index.jsx +32 -23
  235. package/src/web/components/userInfo/index.css +0 -0
  236. package/src/web/components/userInfo/index.tsx +30 -0
  237. package/src/web/types.d.ts +15 -14
  238. package/src/web/utils/debounce.js +98 -0
  239. package/src/web/utils/platform.js +40 -0
  240. package/src/web/utils/tcb.js +49 -0
  241. package/src/web/utils/tmap.js +4 -0
  242. package/src/web/weda-ui.css +2 -0
  243. package/CHANGELOG.md +0 -240
  244. package/src/.DS_Store +0 -0
  245. package/src/configs/.DS_Store +0 -0
  246. package/src/mp/.gitignore +0 -10
  247. package/src/web/.DS_Store +0 -0
  248. package/src/web/components/form/select/region/cities.ts +0 -2410
  249. package/src/web/components/form/select/region/provinces.ts +0 -240
  250. package/src/web/components/form/select/region/regions.ts +0 -20645
@@ -0,0 +1,497 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "type": "object",
5
+ "properties": {
6
+ "chartType": {
7
+ "title": "图形类型",
8
+ "type": "string",
9
+ "default": "pie",
10
+ "x-component": "radio",
11
+ "x-index": 10,
12
+ "enum": [
13
+ {
14
+ "label": "饼形",
15
+ "value": "pie"
16
+ },
17
+ {
18
+ "label": "环形",
19
+ "value": "ring"
20
+ }
21
+ ]
22
+ },
23
+ "isTitle": {
24
+ "title": "显示标题",
25
+ "type": "boolean",
26
+ "default": true,
27
+ "x-index": 20,
28
+ "x-linkages": [
29
+ {
30
+ "type": "value:visible",
31
+ "target": "*(title)",
32
+ "condition": "{{ $self.value }}"
33
+ }
34
+ ]
35
+ },
36
+ "title": {
37
+ "title": "图表标题",
38
+ "default": "饼图标题",
39
+ "type": "string",
40
+ "x-index": 30
41
+ },
42
+ "dataSource": {
43
+ "type": "object",
44
+ "title": "数据源",
45
+ "x-index": 40,
46
+ "x-component": "chart-datasource-select",
47
+ "x-component-props": {
48
+ "postChange": {
49
+ "addOrUpdateComponentDataBinds": {
50
+ "dataBind": {
51
+ "propertyPath": "filterData",
52
+ "bindDataPath": "[]",
53
+ "type": "expression",
54
+ "extra": {}
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "x-linkages": [
60
+ {
61
+ "type": "value:visible",
62
+ "target": "*(filterData)",
63
+ "condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
64
+ },
65
+ {
66
+ "type": "value:schema",
67
+ "condition": "{{ !!$self.value.name }}",
68
+ "target": "filterData",
69
+ "schema": {
70
+ "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
71
+ }
72
+ },
73
+ {
74
+ "type": "value:visible",
75
+ "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
76
+ "condition": "{{ $self.value.type ==='database' }}"
77
+ }
78
+ ]
79
+ },
80
+ "filterData": {
81
+ "title": "数据筛选",
82
+ "x-index": 50,
83
+ "x-component": "condition-select",
84
+ "x-component-props": {
85
+ "dataSourceNamePropKey": "dataSource",
86
+ "customRelOptions": {
87
+ "string": [
88
+ {
89
+ "value": "eq",
90
+ "text": "等于"
91
+ },
92
+ {
93
+ "value": "neq",
94
+ "text": "不等于"
95
+ },
96
+ {
97
+ "value": "in",
98
+ "text": "包含"
99
+ },
100
+ {
101
+ "value": "nin",
102
+ "text": "不包含"
103
+ }
104
+ ],
105
+ "boolean": [
106
+ {
107
+ "value": "eq",
108
+ "text": "等于"
109
+ }
110
+ ],
111
+ "number": [
112
+ {
113
+ "value": "eq",
114
+ "text": "等于",
115
+ "type": "equal"
116
+ },
117
+ {
118
+ "value": "neq",
119
+ "text": "不等于",
120
+ "type": "unequal"
121
+ },
122
+ {
123
+ "value": "gt",
124
+ "text": "大于",
125
+ "type": "greater"
126
+ },
127
+ {
128
+ "value": "gte",
129
+ "text": "大于等于",
130
+ "type": "greater_or_equal"
131
+ },
132
+ {
133
+ "value": "lt",
134
+ "text": "小于",
135
+ "type": "less"
136
+ },
137
+ {
138
+ "value": "lte",
139
+ "text": "小于等于",
140
+ "type": "less_or_equal"
141
+ }
142
+ ],
143
+ "array": [
144
+ {
145
+ "value": "eq",
146
+ "text": "等于"
147
+ },
148
+ {
149
+ "value": "in",
150
+ "text": "包含"
151
+ }
152
+ ],
153
+ "object": [
154
+ {
155
+ "value": "eq",
156
+ "text": "等于"
157
+ },
158
+ {
159
+ "value": "in",
160
+ "text": "包含"
161
+ }
162
+ ],
163
+ "keyVarType": [
164
+ {
165
+ "value": "eq",
166
+ "text": "等于"
167
+ },
168
+ {
169
+ "value": "neq",
170
+ "text": "不等于"
171
+ },
172
+ {
173
+ "value": "gt",
174
+ "text": "大于"
175
+ },
176
+ {
177
+ "value": "lt",
178
+ "text": "小于"
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ "x-props": {
184
+ "data-hidebind": true,
185
+ "data-hideBindValue": true,
186
+ "data-withBindMeta": true
187
+ }
188
+ },
189
+ "setColor": {
190
+ "type": "array",
191
+ "title": "配色",
192
+ "x-index": 60,
193
+ "x-component": "color-plate"
194
+ },
195
+ "dimensionalityShow": {
196
+ "x-index": 70,
197
+ "x-category": "基础属性",
198
+ "x-component": "sub-category-title",
199
+ "x-component-props": {
200
+ "text": "维度"
201
+ }
202
+ },
203
+ "xField": {
204
+ "type": "object",
205
+ "title": "字段选择",
206
+ "x-index": 80,
207
+ "x-category": "基础属性",
208
+ "x-component": "data-source-field-select",
209
+ "x-datasource-method-reset": "",
210
+ "x-component-props": {
211
+ "dataSourceNamePropKey": "dataSource",
212
+ "isMethod": true
213
+ },
214
+ "x-linkages": [
215
+ {
216
+ "type": "value:schema",
217
+ "condition": "{{ $self.inputed && !!$self.value }}",
218
+ "target": "xStatistics",
219
+ "schema": {
220
+ "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'}] : []) }}"
221
+ }
222
+ },
223
+ {
224
+ "type": "value:state",
225
+ "target": "xStatistics",
226
+ "condition": "{{ $self.inputed && !!$self.value }}",
227
+ "state": {
228
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
229
+ }
230
+ },
231
+ {
232
+ "type": "value:visible",
233
+ "target": "*(xStatistics)",
234
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
235
+ },
236
+ {
237
+ "type": "value:visible",
238
+ "target": "*(xIsCountEmpty)",
239
+ "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
240
+ }
241
+ ]
242
+ },
243
+ "xStatistics": {
244
+ "title": "统计维度",
245
+ "type": "string",
246
+ "x-category": "基础属性",
247
+ "x-index": 90,
248
+ "enum": []
249
+ },
250
+ "xIsCountEmpty": {
251
+ "title": "统计空值",
252
+ "type": "boolean",
253
+ "default": false,
254
+ "x-index": 100
255
+ },
256
+ "yFieldSubTitle": {
257
+ "x-index": 105,
258
+ "x-component": "sub-category-title",
259
+ "x-component-props": {
260
+ "text": "数值"
261
+ }
262
+ },
263
+ "yField": {
264
+ "type": "object",
265
+ "title": "字段选择",
266
+ "x-index": 110,
267
+ "x-category": "基础属性",
268
+ "x-component": "chart-y-field-select",
269
+ "x-component-props": {
270
+ "isMethod": true,
271
+ "dataSourceNamePropKey": "dataSource",
272
+ "maxFieldCount": 1
273
+ }
274
+ },
275
+ "legendShow": {
276
+ "x-index": 120,
277
+ "x-category": "基础属性",
278
+ "x-component": "sub-category-title",
279
+ "x-component-props": {
280
+ "text": "图例"
281
+ }
282
+ },
283
+ "isLegend": {
284
+ "title": "显示图例",
285
+ "type": "boolean",
286
+ "default": true,
287
+ "x-category": "基础属性",
288
+ "x-index": 130,
289
+ "x-linkages": [
290
+ {
291
+ "type": "value:visible",
292
+ "target": "*(legend)",
293
+ "condition": "{{ $self.value }}"
294
+ }
295
+ ]
296
+ },
297
+ "legend2": {
298
+ "title": "图例位置",
299
+ "type": "string",
300
+ "default": "bottom",
301
+ "x-category": "基础属性",
302
+ "x-index": 140,
303
+ "x-platforms": [
304
+ "PCWEB"
305
+ ],
306
+ "enum": [
307
+ {
308
+ "value": "top",
309
+ "label": "上方"
310
+ },
311
+ {
312
+ "value": "bottom",
313
+ "label": "下方"
314
+ },
315
+ {
316
+ "value": "left",
317
+ "label": "左侧"
318
+ },
319
+ {
320
+ "value": "right",
321
+ "label": "右侧"
322
+ }
323
+ ]
324
+ },
325
+ "legend": {
326
+ "title": "图例位置",
327
+ "type": "string",
328
+ "default": "bottom",
329
+ "x-category": "基础属性",
330
+ "x-index": 150,
331
+ "x-platforms": [
332
+ "MOBILEWEB",
333
+ "MP"
334
+ ],
335
+ "enum": [
336
+ {
337
+ "value": "top",
338
+ "label": "上方"
339
+ },
340
+ {
341
+ "value": "bottom",
342
+ "label": "下方"
343
+ }
344
+ ]
345
+ },
346
+ "dataTagShow": {
347
+ "x-index": 160,
348
+ "x-category": "高级属性",
349
+ "x-component": "sub-category-title",
350
+ "x-component-props": {
351
+ "text": "数据标签"
352
+ }
353
+ },
354
+ "isSeriesShowSymbol": {
355
+ "title": "显示数值",
356
+ "type": "boolean",
357
+ "x-index": 170,
358
+ "default": true,
359
+ "x-category": "高级属性"
360
+ },
361
+ "isPercent": {
362
+ "title": "显示百分比",
363
+ "type": "boolean",
364
+ "x-index": 180,
365
+ "default": false,
366
+ "x-category": "高级属性"
367
+ },
368
+ "unitShow": {
369
+ "x-index": 190,
370
+ "x-category": "高级属性",
371
+ "x-component": "sub-category-title",
372
+ "x-component-props": {
373
+ "text": "显示单位"
374
+ }
375
+ },
376
+ "isUnit": {
377
+ "title": "显示单位",
378
+ "type": "boolean",
379
+ "x-index": 200,
380
+ "default": false,
381
+ "x-category": "高级属性",
382
+ "x-linkages": [
383
+ {
384
+ "type": "value:visible",
385
+ "target": "*(unit,decimalDigits,suffix)",
386
+ "condition": "{{ $self.value }}"
387
+ }
388
+ ]
389
+ },
390
+ "unit": {
391
+ "type": "number",
392
+ "title": "数值量级",
393
+ "default": 1,
394
+ "x-category": "高级属性",
395
+ "x-index": 210,
396
+ "enum": [
397
+ {
398
+ "label": "个",
399
+ "value": 1
400
+ },
401
+ {
402
+ "label": "十",
403
+ "value": 10
404
+ },
405
+ {
406
+ "label": "百",
407
+ "value": 100
408
+ },
409
+ {
410
+ "label": "千",
411
+ "value": 1000
412
+ },
413
+ {
414
+ "label": "万",
415
+ "value": 10000
416
+ },
417
+ {
418
+ "label": "十万",
419
+ "value": 100000
420
+ },
421
+ {
422
+ "label": "百万",
423
+ "value": 1000000
424
+ },
425
+ {
426
+ "label": "千万",
427
+ "value": 10000000
428
+ },
429
+ {
430
+ "label": "亿",
431
+ "value": 100000000
432
+ }
433
+ ],
434
+ "x-linkages": [
435
+ {
436
+ "type": "value:state",
437
+ "target": "suffix",
438
+ "condition": "{{ $self.inputed && $self.value!==1 }}",
439
+ "state": {
440
+ "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
441
+ }
442
+ },
443
+ {
444
+ "type": "value:state",
445
+ "target": "suffix",
446
+ "condition": "{{ $self.inputed && $self.value===1 }}",
447
+ "state": {
448
+ "value": ""
449
+ }
450
+ }
451
+ ]
452
+ },
453
+ "decimalDigits": {
454
+ "title": "小数位数",
455
+ "type": "number",
456
+ "default": 0,
457
+ "x-props": {
458
+ "max": 10,
459
+ "min": 0
460
+ },
461
+ "x-index": 220,
462
+ "x-category": "高级属性",
463
+ "x-linkages": [
464
+ {
465
+ "type": "value:state",
466
+ "target": "decimalDigits",
467
+ "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
468
+ "state": {
469
+ "value": 0
470
+ }
471
+ }
472
+ ]
473
+ },
474
+ "suffix": {
475
+ "title": "后缀",
476
+ "type": "string",
477
+ "default": "",
478
+ "x-index": 230,
479
+ "x-category": "高级属性"
480
+ }
481
+ }
482
+ },
483
+ "events": [],
484
+ "meta": {
485
+ "title": "饼图",
486
+ "description": "饼图组件主要用于报表场景下表示数据在总体中的占比,支持小程序、H5 和 PC Web 端。",
487
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/PieChart.svg",
488
+ "category": "图表组件",
489
+ "componentOrder": 1,
490
+ "visible": [
491
+ "APP"
492
+ ]
493
+ },
494
+ "configMeta": {
495
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Pie"
496
+ }
497
+ }