@cloudbase/weda-ui 0.2.16 → 1.0.24

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 (194) hide show
  1. package/README.md +41 -169
  2. package/package.json +23 -11
  3. package/src/configs/components/calendar.json +4 -1
  4. package/src/configs/components/chart/bar.json +724 -0
  5. package/src/configs/components/chart/line.json +679 -0
  6. package/src/configs/components/chart/pie.json +497 -0
  7. package/src/configs/components/chart/statisticsCard.json +61 -13
  8. package/src/configs/components/container.json +7 -2
  9. package/src/configs/components/dataView.json +21 -6
  10. package/src/configs/components/form/checkbox.json +97 -5
  11. package/src/configs/components/form/radio.json +96 -4
  12. package/src/configs/components/form/select.json +245 -11
  13. package/src/configs/components/graphicCard.json +84 -73
  14. package/src/configs/components/image.json +7 -2
  15. package/src/configs/components/link.json +19 -3
  16. package/src/configs/components/listView.json +65 -18
  17. package/src/configs/components/lottery.json +151 -0
  18. package/src/configs/components/modal.json +37 -5
  19. package/src/configs/components/navLayout.json +87 -75
  20. package/src/configs/components/navigationBar.json +59 -0
  21. package/src/configs/components/richtextview.json +4 -1
  22. package/src/configs/components/scrollVeiw.json +74 -22
  23. package/src/configs/components/swiper.json +4 -1
  24. package/src/configs/components/tabs.json +51 -8
  25. package/src/configs/components/text.json +33 -25
  26. package/src/configs/components/wxOpenApi/phone.json +141 -0
  27. package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
  28. package/src/configs/components/wxOpenApi/share.json +167 -0
  29. package/src/configs/components/wxOpenApi/userInfo.json +174 -0
  30. package/src/configs/index.js +20 -0
  31. package/src/index.js +2 -0
  32. package/src/mp/components/button/index.wxml +1 -2
  33. package/src/mp/components/chart/bar/index.js +258 -0
  34. package/src/mp/components/chart/bar/index.json +6 -0
  35. package/src/mp/components/chart/bar/index.wxml +3 -0
  36. package/src/mp/components/chart/bar/index.wxss +9 -0
  37. package/src/mp/components/chart/common/config/bar.js +50 -0
  38. package/src/mp/components/chart/common/config/global.js +16 -0
  39. package/src/mp/components/chart/common/config/line.js +48 -0
  40. package/src/mp/components/chart/common/config/pie.js +36 -0
  41. package/src/mp/components/chart/common/core/eChartBar.js +263 -0
  42. package/src/mp/components/chart/common/core/eChartBase.js +375 -0
  43. package/src/mp/components/chart/common/core/eChartLine.js +229 -0
  44. package/src/mp/components/chart/common/core/eChartPie.js +166 -0
  45. package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
  46. package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
  47. package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
  48. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
  49. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
  50. package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
  51. package/src/mp/components/chart/line/index.js +247 -0
  52. package/src/mp/components/chart/line/index.json +6 -0
  53. package/src/mp/components/chart/line/index.wxml +3 -0
  54. package/src/mp/components/chart/line/index.wxss +9 -0
  55. package/src/mp/components/chart/pie/index.js +182 -0
  56. package/src/mp/components/chart/pie/index.json +6 -0
  57. package/src/mp/components/chart/pie/index.wxml +4 -0
  58. package/src/mp/components/chart/pie/index.wxss +9 -0
  59. package/src/mp/components/chart/statisticsCard/index.js +33 -6
  60. package/src/mp/components/form/checkbox/index.js +41 -2
  61. package/src/mp/components/form/checkbox/index.wxml +1 -1
  62. package/src/mp/components/form/form/index.wxml +1 -2
  63. package/src/mp/components/form/input/index.js +1 -1
  64. package/src/mp/components/form/location/index.js +43 -2
  65. package/src/mp/components/form/radio/index.js +38 -0
  66. package/src/mp/components/form/select/index.js +348 -40
  67. package/src/mp/components/form/select/index.wxml +21 -6
  68. package/src/mp/components/form/select/region/index.js +101 -0
  69. package/src/mp/components/form/textarea/index.wxml +6 -5
  70. package/src/mp/components/form/uploader/index.js +76 -44
  71. package/src/mp/components/form/uploader/index.wxml +15 -3
  72. package/src/mp/components/form/uploaderFile/index.js +61 -29
  73. package/src/mp/components/graphicCard/index.js +26 -28
  74. package/src/mp/components/listView/index.js +52 -64
  75. package/src/mp/components/listView/index.wxml +2 -2
  76. package/src/mp/components/listView/index.wxss +5 -0
  77. package/src/mp/components/lottery/index.js +270 -0
  78. package/src/mp/components/lottery/index.json +4 -0
  79. package/src/mp/components/lottery/index.wxml +43 -0
  80. package/src/mp/components/lottery/index.wxss +317 -0
  81. package/src/mp/components/navLayout/index.js +3 -3
  82. package/src/mp/components/navigationBar/index.js +193 -0
  83. package/src/mp/components/navigationBar/index.json +6 -0
  84. package/src/mp/components/navigationBar/index.wxml +88 -0
  85. package/src/mp/components/navigationBar/index.wxss +1257 -0
  86. package/src/mp/components/tabs/index.js +7 -2
  87. package/src/mp/components/tabs/index.wxml +2 -1
  88. package/src/mp/components/text/index.js +0 -25
  89. package/src/mp/components/text/index.wxml +3 -3
  90. package/src/mp/components/wxOpenApi/phone/index.js +117 -0
  91. package/src/mp/components/wxOpenApi/phone/index.json +4 -0
  92. package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
  93. package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
  94. package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
  95. package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
  96. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
  97. package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
  98. package/src/mp/components/wxOpenApi/share/index.js +117 -0
  99. package/src/mp/components/wxOpenApi/share/index.json +4 -0
  100. package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
  101. package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
  102. package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
  103. package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
  104. package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
  105. package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
  106. package/src/mp/index.json +10 -1
  107. package/src/mp/style/weda-ui.wxss +2 -0
  108. package/src/mp/utils/constant.js +15 -0
  109. package/src/mp/utils/destr.js +48 -0
  110. package/src/mp/utils/lodash.js +2 -0
  111. package/src/mp/utils/platform.js +25 -0
  112. package/src/mp/utils/tcb.js +44 -0
  113. package/src/setupTests.js +2 -1
  114. package/src/web/components/button/index.css +8 -1
  115. package/src/web/components/button/index.tsx +3 -2
  116. package/src/web/components/chart/bar/index.tsx +140 -0
  117. package/src/web/components/chart/common/config/bar.js +49 -0
  118. package/src/web/components/chart/common/config/global.js +16 -0
  119. package/src/web/components/chart/common/config/line.js +50 -0
  120. package/src/web/components/chart/common/config/pie.js +37 -0
  121. package/src/web/components/chart/common/core/eChartBar.js +265 -0
  122. package/src/web/components/chart/common/core/eChartBase.ts +383 -0
  123. package/src/web/components/chart/common/core/eChartLine.js +231 -0
  124. package/src/web/components/chart/common/core/eChartPie.js +170 -0
  125. package/src/web/components/chart/common/core/type.ts +34 -0
  126. package/src/web/components/chart/common/echart.css +106 -0
  127. package/src/web/components/chart/common/echarts.ts +33 -0
  128. package/src/web/components/chart/common/useChart.tsx +69 -0
  129. package/src/web/components/chart/line/index.tsx +136 -0
  130. package/src/web/components/chart/pie/index.tsx +99 -0
  131. package/src/web/components/chart/statisticsCard/index.tsx +29 -8
  132. package/src/web/components/form/checkbox/index.tsx +61 -23
  133. package/src/web/components/form/formcell/index.tsx +10 -5
  134. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
  135. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
  136. package/src/web/components/form/radio/index.tsx +90 -53
  137. package/src/web/components/form/select/h5.tsx +371 -72
  138. package/src/web/components/form/select/index.css +10 -0
  139. package/src/web/components/form/select/index.tsx +392 -145
  140. package/src/web/components/form/select/region/index.ts +122 -31
  141. package/src/web/components/form/select/time.jsx +90 -0
  142. package/src/web/components/form/select/year.tsx +170 -0
  143. package/src/web/components/form/tips/index.css +4 -0
  144. package/src/web/components/form/tips/index.tsx +4 -3
  145. package/src/web/components/form/uploader/uploader.h5.tsx +28 -19
  146. package/src/web/components/form/uploader/uploader.pc.tsx +17 -20
  147. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +48 -44
  148. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +28 -26
  149. package/src/web/components/graphicCard/index.css +1 -5
  150. package/src/web/components/graphicCard/index.tsx +4 -3
  151. package/src/web/components/image/image.tsx +1 -1
  152. package/src/web/components/image/index.tsx +1 -1
  153. package/src/web/components/index.js +13 -2
  154. package/src/web/components/link/index.tsx +6 -3
  155. package/src/web/components/listView/index.css +4 -0
  156. package/src/web/components/listView/index.tsx +10 -18
  157. package/src/web/components/lottery/index.css +327 -0
  158. package/src/web/components/lottery/index.tsx +567 -0
  159. package/src/web/components/lottery/lotteryUtil.ts +130 -0
  160. package/src/web/components/modal/index.tsx +3 -1
  161. package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
  162. package/src/web/components/navigationBar/common.tsx +198 -0
  163. package/src/web/components/navigationBar/h5Menu.tsx +179 -0
  164. package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
  165. package/src/web/components/navigationBar/index.css +762 -0
  166. package/src/web/components/navigationBar/index.tsx +231 -0
  167. package/src/web/components/navigationBar/type.d.ts +111 -0
  168. package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
  169. package/src/web/components/phone/index.css +0 -0
  170. package/src/web/components/phone/index.tsx +22 -0
  171. package/src/web/components/phoneCode/index.css +0 -0
  172. package/src/web/components/phoneCode/index.tsx +22 -0
  173. package/src/web/components/richTextView/index.tsx +3 -5
  174. package/src/web/components/share/index.css +0 -0
  175. package/src/web/components/share/index.tsx +38 -0
  176. package/src/web/components/tabs/index.tsx +2 -0
  177. package/src/web/components/tabs/tabs.h5.tsx +43 -33
  178. package/src/web/components/tabs/tabs.pc.tsx +23 -10
  179. package/src/web/components/text/index.tsx +6 -14
  180. package/src/web/components/userInfo/index.css +0 -0
  181. package/src/web/components/userInfo/index.tsx +30 -0
  182. package/src/web/utils/{constant.js → constant.ts} +17 -2
  183. package/src/web/utils/lodash.ts +2 -0
  184. package/src/web/utils/platform.js +10 -1
  185. package/src/web/utils/tcb.js +20 -6
  186. package/src/web/weda-ui.css +2 -0
  187. package/CHANGELOG.md +0 -240
  188. package/src/.DS_Store +0 -0
  189. package/src/configs/.DS_Store +0 -0
  190. package/src/mp/.gitignore +0 -10
  191. package/src/web/.DS_Store +0 -0
  192. package/src/web/components/form/select/region/cities.ts +0 -2410
  193. package/src/web/components/form/select/region/provinces.ts +0 -240
  194. package/src/web/components/form/select/region/regions.ts +0 -20645
@@ -0,0 +1,724 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "type": "object",
5
+ "properties": {
6
+ "directionType": {
7
+ "title": "柱形图方向",
8
+ "type": "string",
9
+ "default": "lengthways",
10
+ "x-component": "radio",
11
+ "x-index": 10,
12
+ "enum": [
13
+ {
14
+ "label": "横向",
15
+ "value": "crosswise"
16
+ },
17
+ {
18
+ "label": "纵向",
19
+ "value": "lengthways"
20
+ }
21
+ ],
22
+ "x-linkages": [
23
+ {
24
+ "target": "*(xFieldShow,xFieldShowHight)",
25
+ "type": "value:schema",
26
+ "condition": "{{ $self.value ==='lengthways' }}",
27
+ "schema": {
28
+ "x-component-props": {
29
+ "text": "维度(X轴)"
30
+ }
31
+ }
32
+ },
33
+ {
34
+ "target": "*(xFieldShow,xFieldShowHight)",
35
+ "type": "value:schema",
36
+ "condition": "{{ $self.value ==='crosswise' }}",
37
+ "schema": {
38
+ "x-component-props": {
39
+ "text": "维度(Y轴)"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "target": "*(yFieldSubTitle,yFieldShow)",
45
+ "type": "value:schema",
46
+ "condition": "{{ $self.value ==='crosswise' }}",
47
+ "schema": {
48
+ "x-component-props": {
49
+ "text": "数值(X轴)"
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "target": "*(yFieldSubTitle,yFieldShow)",
55
+ "type": "value:schema",
56
+ "condition": "{{ $self.value ==='lengthways' }}",
57
+ "schema": {
58
+ "x-component-props": {
59
+ "text": "数值(Y轴)"
60
+ }
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ "isPile": {
66
+ "title": "是否堆叠",
67
+ "type": "boolean",
68
+ "default": false,
69
+ "x-index": 20,
70
+ "description": "多Y轴时,该属性才生效"
71
+ },
72
+ "isTitle": {
73
+ "title": "显示标题",
74
+ "type": "boolean",
75
+ "default": true,
76
+ "x-index": 30,
77
+ "x-linkages": [
78
+ {
79
+ "type": "value:visible",
80
+ "target": "*(title)",
81
+ "condition": "{{ $self.value }}"
82
+ }
83
+ ]
84
+ },
85
+ "title": {
86
+ "title": "图表标题",
87
+ "default": "柱状图标题",
88
+ "type": "string",
89
+ "x-index": 40
90
+ },
91
+ "dataSource": {
92
+ "type": "object",
93
+ "title": "数据源",
94
+ "x-index": 50,
95
+ "x-component": "chart-datasource-select",
96
+ "x-component-props": {
97
+ "postChange": {
98
+ "addOrUpdateComponentDataBinds": {
99
+ "dataBind": {
100
+ "propertyPath": "filterData",
101
+ "bindDataPath": "[]",
102
+ "type": "expression",
103
+ "extra": {}
104
+ }
105
+ }
106
+ }
107
+ },
108
+ "x-linkages": [
109
+ {
110
+ "type": "value:visible",
111
+ "target": "*(filterData)",
112
+ "condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
113
+ },
114
+ {
115
+ "type": "value:schema",
116
+ "condition": "{{ !!$self.value.name }}",
117
+ "target": "filterData",
118
+ "schema": {
119
+ "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
120
+ }
121
+ },
122
+ {
123
+ "type": "value:visible",
124
+ "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField,groupKeyTimeSpan)",
125
+ "condition": "{{ $self.value.type ==='database' }}"
126
+ },
127
+ {
128
+ "type": "value:state",
129
+ "condition": "{{ !!$self.value }}",
130
+ "target": "yField",
131
+ "state": {
132
+ "__datasourceName": "{{$self.value.name}}"
133
+ }
134
+ }
135
+ ]
136
+ },
137
+ "filterData": {
138
+ "title": "数据筛选",
139
+ "x-index": 60,
140
+ "x-component": "condition-select",
141
+ "x-component-props": {
142
+ "dataSourceNamePropKey": "dataSource",
143
+ "customRelOptions": {
144
+ "string": [
145
+ {
146
+ "value": "eq",
147
+ "text": "等于"
148
+ },
149
+ {
150
+ "value": "neq",
151
+ "text": "不等于"
152
+ },
153
+ {
154
+ "value": "in",
155
+ "text": "包含"
156
+ },
157
+ {
158
+ "value": "nin",
159
+ "text": "不包含"
160
+ }
161
+ ],
162
+ "boolean": [
163
+ {
164
+ "value": "eq",
165
+ "text": "等于"
166
+ }
167
+ ],
168
+ "number": [
169
+ {
170
+ "value": "eq",
171
+ "text": "等于",
172
+ "type": "equal"
173
+ },
174
+ {
175
+ "value": "neq",
176
+ "text": "不等于",
177
+ "type": "unequal"
178
+ },
179
+ {
180
+ "value": "gt",
181
+ "text": "大于",
182
+ "type": "greater"
183
+ },
184
+ {
185
+ "value": "gte",
186
+ "text": "大于等于",
187
+ "type": "greater_or_equal"
188
+ },
189
+ {
190
+ "value": "lt",
191
+ "text": "小于",
192
+ "type": "less"
193
+ },
194
+ {
195
+ "value": "lte",
196
+ "text": "小于等于",
197
+ "type": "less_or_equal"
198
+ }
199
+ ],
200
+ "array": [
201
+ {
202
+ "value": "eq",
203
+ "text": "等于"
204
+ },
205
+ {
206
+ "value": "in",
207
+ "text": "包含"
208
+ }
209
+ ],
210
+ "object": [
211
+ {
212
+ "value": "eq",
213
+ "text": "等于"
214
+ },
215
+ {
216
+ "value": "in",
217
+ "text": "包含"
218
+ }
219
+ ],
220
+ "keyVarType": [
221
+ {
222
+ "value": "eq",
223
+ "text": "等于"
224
+ },
225
+ {
226
+ "value": "neq",
227
+ "text": "不等于"
228
+ },
229
+ {
230
+ "value": "gt",
231
+ "text": "大于"
232
+ },
233
+ {
234
+ "value": "lt",
235
+ "text": "小于"
236
+ }
237
+ ]
238
+ }
239
+ },
240
+ "x-props": {
241
+ "data-hidebind": true,
242
+ "data-hideBindValue": true,
243
+ "data-withBindMeta": true
244
+ }
245
+ },
246
+ "setColor": {
247
+ "type": "array",
248
+ "title": "配色",
249
+ "x-index": 70,
250
+ "x-component": "color-plate"
251
+ },
252
+ "xFieldShow": {
253
+ "x-index": 80,
254
+ "x-category": "基础属性",
255
+ "x-component": "sub-category-title",
256
+ "x-component-props": {
257
+ "text": "维度(X轴)"
258
+ }
259
+ },
260
+ "xField": {
261
+ "type": "object",
262
+ "title": "字段选择",
263
+ "x-index": 90,
264
+ "x-category": "基础属性",
265
+ "x-component": "data-source-field-select",
266
+ "x-datasource-method-reset": "",
267
+ "x-component-props": {
268
+ "dataSourceNamePropKey": "dataSource",
269
+ "isMethod": true,
270
+ "disabledTypes": [
271
+ "time"
272
+ ]
273
+ },
274
+ "x-linkages": [
275
+ {
276
+ "type": "value:schema",
277
+ "condition": "{{ !!$self.value }}",
278
+ "target": "xStatistics",
279
+ "schema": {
280
+ "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'}] : []) }}"
281
+ }
282
+ },
283
+ {
284
+ "type": "value:state",
285
+ "target": "xStatistics",
286
+ "condition": "{{ !!$self.value }}",
287
+ "state": {
288
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
289
+ }
290
+ },
291
+ {
292
+ "type": "value:visible",
293
+ "target": "*(xStatistics)",
294
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
295
+ },
296
+ {
297
+ "type": "value:visible",
298
+ "target": "*(xIsCountEmpty)",
299
+ "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
300
+ }
301
+ ]
302
+ },
303
+ "xStatistics": {
304
+ "title": "统计维度",
305
+ "type": "string",
306
+ "x-category": "基础属性",
307
+ "x-index": 100,
308
+ "enum": []
309
+ },
310
+ "xIsCountEmpty": {
311
+ "title": "统计空值",
312
+ "type": "boolean",
313
+ "default": false,
314
+ "x-index": 110
315
+ },
316
+ "yFieldSubTitle": {
317
+ "x-index": 115,
318
+ "x-component": "sub-category-title",
319
+ "x-component-props": {
320
+ "text": "数值(Y轴)"
321
+ }
322
+ },
323
+ "yField": {
324
+ "type": "object",
325
+ "title": "字段选择",
326
+ "x-index": 120,
327
+ "x-category": "基础属性",
328
+ "x-component": "chart-y-field-select",
329
+ "x-component-props": {
330
+ "isMethod": true,
331
+ "text": "添加字段",
332
+ "dataSourceNamePropKey": "dataSource"
333
+ },
334
+ "x-datasource-method-reset": {},
335
+ "x-linkages": [
336
+ {
337
+ "type": "value:visible",
338
+ "target": "*(groupKey)",
339
+ "condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
340
+ }
341
+ ]
342
+ },
343
+ "groupKey": {
344
+ "type": "object",
345
+ "title": "分组",
346
+ "x-index": 130,
347
+ "x-category": "基础属性",
348
+ "x-component": "data-source-field-select",
349
+ "x-datasource-method-reset": "",
350
+ "x-component-props": {
351
+ "dataSourceNamePropKey": "dataSource",
352
+ "isMethod": true,
353
+ "clearable": true
354
+ },
355
+ "x-linkages": [
356
+ {
357
+ "type": "value:state",
358
+ "target": "groupKeyTimeSpan",
359
+ "condition": "{{ !!$self.value }}",
360
+ "state": {
361
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
362
+ }
363
+ },
364
+ {
365
+ "type": "value:visible",
366
+ "target": "*(groupKeyTimeSpan)",
367
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
368
+ },
369
+ {
370
+ "type": "value:schema",
371
+ "condition": "{{ !!$self.value }}",
372
+ "target": "groupKeyTimeSpan",
373
+ "schema": {
374
+ "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'}]: []) }}"
375
+ }
376
+ }
377
+ ]
378
+ },
379
+ "groupKeyTimeSpan": {
380
+ "title": "分组维度",
381
+ "type": "string",
382
+ "x-category": "基础属性",
383
+ "x-index": 140,
384
+ "enum": []
385
+ },
386
+ "legendShow": {
387
+ "x-index": 145,
388
+ "x-category": "基础属性",
389
+ "x-component": "sub-category-title",
390
+ "x-component-props": {
391
+ "text": "图例"
392
+ }
393
+ },
394
+ "isLegend": {
395
+ "title": "显示图例",
396
+ "type": "boolean",
397
+ "default": true,
398
+ "x-category": "基础属性",
399
+ "x-index": 150,
400
+ "x-linkages": [
401
+ {
402
+ "type": "value:visible",
403
+ "target": "*(legend)",
404
+ "condition": "{{ $self.value }}"
405
+ }
406
+ ]
407
+ },
408
+ "legend2": {
409
+ "title": "图例位置",
410
+ "type": "string",
411
+ "default": "bottom",
412
+ "x-category": "基础属性",
413
+ "x-index": 160,
414
+ "x-platforms": [
415
+ "PCWEB"
416
+ ],
417
+ "enum": [
418
+ {
419
+ "value": "top",
420
+ "label": "上方"
421
+ },
422
+ {
423
+ "value": "bottom",
424
+ "label": "下方"
425
+ },
426
+ {
427
+ "value": "left",
428
+ "label": "左侧"
429
+ },
430
+ {
431
+ "value": "right",
432
+ "label": "右侧"
433
+ }
434
+ ]
435
+ },
436
+ "legend": {
437
+ "title": "图例位置",
438
+ "type": "string",
439
+ "default": "bottom",
440
+ "x-category": "基础属性",
441
+ "x-index": 170,
442
+ "x-platforms": [
443
+ "MOBILEWEB",
444
+ "MP"
445
+ ],
446
+ "enum": [
447
+ {
448
+ "value": "top",
449
+ "label": "上方"
450
+ },
451
+ {
452
+ "value": "bottom",
453
+ "label": "下方"
454
+ }
455
+ ]
456
+ },
457
+ "divider": {
458
+ "x-index": 175,
459
+ "x-component": "Divider"
460
+ },
461
+ "propsTitle": {
462
+ "x-index": 180,
463
+ "x-component": "sub-category-title",
464
+ "x-component-props": {
465
+ "text": "进阶属性"
466
+ }
467
+ },
468
+ "xFieldShowHight": {
469
+ "x-index": 185,
470
+ "x-component": "sub-category-title",
471
+ "x-component-props": {
472
+ "text": "维度(X轴)"
473
+ }
474
+ },
475
+ "isXaxisName": {
476
+ "title": "显示坐标轴名称",
477
+ "type": "boolean",
478
+ "default": true,
479
+ "x-index": 190,
480
+ "x-linkages": [
481
+ {
482
+ "type": "value:visible",
483
+ "target": "*(xAxisName)",
484
+ "condition": "{{ $self.value }}"
485
+ }
486
+ ]
487
+ },
488
+ "xAxisName": {
489
+ "title": "名称",
490
+ "type": "string",
491
+ "default": "",
492
+ "x-index": 200
493
+ },
494
+ "isXaxisAxisLabelShow": {
495
+ "title": "显示标签",
496
+ "type": "boolean",
497
+ "x-index": 210,
498
+ "default": true
499
+ },
500
+ "isXaxisAxisTickShow": {
501
+ "title": "显示X轴刻度线",
502
+ "type": "boolean",
503
+ "x-index": 220,
504
+ "default": true
505
+ },
506
+ "isXaxisAxisLabelRotate": {
507
+ "title": "文字自动倾斜",
508
+ "type": "boolean",
509
+ "x-index": 230,
510
+ "default": false
511
+ },
512
+ "yFieldShow": {
513
+ "x-index": 240,
514
+ "x-component": "sub-category-title",
515
+ "x-component-props": {
516
+ "text": "数值(Y轴)"
517
+ }
518
+ },
519
+ "isYAxisSplitlineLinestyleWidth": {
520
+ "title": "显示网格线",
521
+ "type": "boolean",
522
+ "x-index": 250,
523
+ "default": true,
524
+ "x-linkages": [
525
+ {
526
+ "type": "value:visible",
527
+ "target": "*(yAxisSplitlineLinestyleType)",
528
+ "condition": "{{ $self.value }}"
529
+ }
530
+ ]
531
+ },
532
+ "yAxisSplitlineLinestyleType": {
533
+ "title": "网格线线条",
534
+ "type": "string",
535
+ "default": "solid",
536
+ "x-index": 260,
537
+ "enum": [
538
+ {
539
+ "value": "solid",
540
+ "label": "实线"
541
+ },
542
+ {
543
+ "value": "dashed",
544
+ "label": "虚线"
545
+ },
546
+ {
547
+ "value": "dotted",
548
+ "label": "点线"
549
+ }
550
+ ]
551
+ },
552
+ "yAxisMax": {
553
+ "title": "最大值",
554
+ "type": "number",
555
+ "x-index": 270
556
+ },
557
+ "yAxisMin": {
558
+ "title": "最小值",
559
+ "type": "number",
560
+ "x-index": 280
561
+ },
562
+ "isYAxisName": {
563
+ "title": "显示Y轴名称",
564
+ "type": "boolean",
565
+ "x-index": 290,
566
+ "default": true,
567
+ "x-linkages": [
568
+ {
569
+ "type": "value:visible",
570
+ "target": "*(yAxisName)",
571
+ "condition": "{{ $self.value }}"
572
+ }
573
+ ]
574
+ },
575
+ "yAxisName": {
576
+ "title": "名称",
577
+ "type": "string",
578
+ "default": "",
579
+ "x-index": 300
580
+ },
581
+ "isYAxisShow": {
582
+ "title": "显示数值",
583
+ "type": "boolean",
584
+ "x-index": 310,
585
+ "default": true
586
+ },
587
+ "dataTagShow": {
588
+ "x-index": 320,
589
+ "x-component": "sub-category-title",
590
+ "x-component-props": {
591
+ "text": "数据标签"
592
+ }
593
+ },
594
+ "isSeriesShowSymbol": {
595
+ "title": "显示数值",
596
+ "type": "boolean",
597
+ "x-index": 330,
598
+ "default": true
599
+ },
600
+ "unitShow": {
601
+ "x-index": 340,
602
+ "x-component": "sub-category-title",
603
+ "x-component-props": {
604
+ "text": "显示单位"
605
+ }
606
+ },
607
+ "isUnit": {
608
+ "title": "显示单位",
609
+ "type": "boolean",
610
+ "x-index": 350,
611
+ "default": false,
612
+ "x-linkages": [
613
+ {
614
+ "type": "value:visible",
615
+ "target": "*(unit,decimalDigits,suffix)",
616
+ "condition": "{{ $self.value }}"
617
+ }
618
+ ]
619
+ },
620
+ "unit": {
621
+ "type": "number",
622
+ "title": "数值量级",
623
+ "x-index": "360",
624
+ "default": 1,
625
+ "enum": [
626
+ {
627
+ "label": "个",
628
+ "value": 1
629
+ },
630
+ {
631
+ "label": "十",
632
+ "value": 10
633
+ },
634
+ {
635
+ "label": "百",
636
+ "value": 100
637
+ },
638
+ {
639
+ "label": "千",
640
+ "value": 1000
641
+ },
642
+ {
643
+ "label": "万",
644
+ "value": 10000
645
+ },
646
+ {
647
+ "label": "十万",
648
+ "value": 100000
649
+ },
650
+ {
651
+ "label": "百万",
652
+ "value": 1000000
653
+ },
654
+ {
655
+ "label": "千万",
656
+ "value": 10000000
657
+ },
658
+ {
659
+ "label": "亿",
660
+ "value": 100000000
661
+ }
662
+ ],
663
+ "x-linkages": [
664
+ {
665
+ "type": "value:state",
666
+ "target": "suffix",
667
+ "condition": "{{ $self.inputed && $self.value!==1 }}",
668
+ "state": {
669
+ "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
670
+ }
671
+ },
672
+ {
673
+ "type": "value:state",
674
+ "target": "suffix",
675
+ "condition": "{{ $self.inputed && $self.value===1 }}",
676
+ "state": {
677
+ "value": ""
678
+ }
679
+ }
680
+ ]
681
+ },
682
+ "decimalDigits": {
683
+ "title": "小数位数",
684
+ "type": "number",
685
+ "default": 0,
686
+ "x-props": {
687
+ "max": 10,
688
+ "min": 0
689
+ },
690
+ "x-index": 370,
691
+ "x-linkages": [
692
+ {
693
+ "type": "value:state",
694
+ "target": "decimalDigits",
695
+ "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
696
+ "state": {
697
+ "value": 0
698
+ }
699
+ }
700
+ ]
701
+ },
702
+ "suffix": {
703
+ "title": "后缀",
704
+ "type": "string",
705
+ "default": "",
706
+ "x-index": 380
707
+ }
708
+ }
709
+ },
710
+ "events": [],
711
+ "meta": {
712
+ "title": "柱状图",
713
+ "description": "柱状图组件主要用于报表场景下展示数据之间大小的对比,支持小程序、H5 和 PC Web 端。",
714
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Histogram.svg",
715
+ "category": "图表组件",
716
+ "componentOrder": 1,
717
+ "visible": [
718
+ "APP"
719
+ ]
720
+ },
721
+ "configMeta": {
722
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Bar"
723
+ }
724
+ }