@cloudbase/weda-ui 0.2.16 → 0.2.17

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 (86) hide show
  1. package/README.md +39 -170
  2. package/package.json +17 -10
  3. package/src/configs/components/chart/bar.json +711 -0
  4. package/src/configs/components/chart/line.json +666 -0
  5. package/src/configs/components/chart/pie.json +487 -0
  6. package/src/configs/components/listView.json +2 -1
  7. package/src/configs/index.js +7 -0
  8. package/src/mp/components/chart/bar/index.js +254 -0
  9. package/src/mp/components/chart/bar/index.json +6 -0
  10. package/src/mp/components/chart/bar/index.wxml +3 -0
  11. package/src/mp/components/chart/bar/index.wxss +9 -0
  12. package/src/mp/components/chart/common/config/bar.js +50 -0
  13. package/src/mp/components/chart/common/config/global.js +16 -0
  14. package/src/mp/components/chart/common/config/line.js +48 -0
  15. package/src/mp/components/chart/common/config/pie.js +36 -0
  16. package/src/mp/components/chart/common/core/eChartBar.js +262 -0
  17. package/src/mp/components/chart/common/core/eChartBase.js +371 -0
  18. package/src/mp/components/chart/common/core/eChartLine.js +228 -0
  19. package/src/mp/components/chart/common/core/eChartPie.js +166 -0
  20. package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
  21. package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
  22. package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
  23. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
  24. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
  25. package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
  26. package/src/mp/components/chart/line/index.js +243 -0
  27. package/src/mp/components/chart/line/index.json +6 -0
  28. package/src/mp/components/chart/line/index.wxml +3 -0
  29. package/src/mp/components/chart/line/index.wxss +9 -0
  30. package/src/mp/components/chart/pie/index.js +178 -0
  31. package/src/mp/components/chart/pie/index.json +6 -0
  32. package/src/mp/components/chart/pie/index.wxml +4 -0
  33. package/src/mp/components/chart/pie/index.wxss +9 -0
  34. package/src/mp/components/dataView/index.json +1 -1
  35. package/src/mp/components/form/radio/index.js +5 -0
  36. package/src/mp/components/form/select/index.wxml +4 -4
  37. package/src/mp/components/form/textarea/index.wxml +6 -5
  38. package/src/mp/components/form/uploader/index.js +42 -22
  39. package/src/mp/components/form/uploader/index.wxml +15 -3
  40. package/src/mp/components/form/uploaderFile/index.js +58 -30
  41. package/src/mp/components/graphicCard/index.js +26 -28
  42. package/src/mp/components/internals/listView/arrow-right-line.svg +3 -0
  43. package/src/mp/components/internals/listView/index.js +286 -0
  44. package/src/mp/components/internals/listView/index.json +4 -0
  45. package/src/mp/components/internals/listView/index.wxml +40 -0
  46. package/src/mp/components/internals/listView/index.wxss +150 -0
  47. package/src/mp/components/internals/listView/more-line.svg +3 -0
  48. package/src/mp/components/listView/index.js +17 -24
  49. package/src/mp/components/listView/index.wxml +1 -1
  50. package/src/mp/components/navLayout/index.js +3 -3
  51. package/src/mp/index.json +3 -0
  52. package/src/mp/utils/platform.js +15 -0
  53. package/src/setupTests.js +2 -1
  54. package/src/web/components/chart/bar/index.tsx +139 -0
  55. package/src/web/components/chart/common/config/bar.js +49 -0
  56. package/src/web/components/chart/common/config/global.js +16 -0
  57. package/src/web/components/chart/common/config/line.js +50 -0
  58. package/src/web/components/chart/common/config/pie.js +37 -0
  59. package/src/web/components/chart/common/core/eChartBar.js +264 -0
  60. package/src/web/components/chart/common/core/eChartBase.ts +379 -0
  61. package/src/web/components/chart/common/core/eChartLine.js +229 -0
  62. package/src/web/components/chart/common/core/eChartPie.js +170 -0
  63. package/src/web/components/chart/common/core/type.ts +34 -0
  64. package/src/web/components/chart/common/echart.css +106 -0
  65. package/src/web/components/chart/common/echarts.ts +33 -0
  66. package/src/web/components/chart/common/useChart.tsx +69 -0
  67. package/src/web/components/chart/line/index.tsx +135 -0
  68. package/src/web/components/chart/pie/index.tsx +99 -0
  69. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
  70. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
  71. package/src/web/components/form/select/h5.tsx +3 -1
  72. package/src/web/components/form/select/time.jsx +1 -0
  73. package/src/web/components/form/uploader/uploader.h5.tsx +19 -17
  74. package/src/web/components/form/uploader/uploader.pc.tsx +13 -16
  75. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +35 -37
  76. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +15 -21
  77. package/src/web/components/graphicCard/index.css +1 -5
  78. package/src/web/components/graphicCard/index.tsx +4 -3
  79. package/src/web/components/index.js +5 -2
  80. package/src/web/utils/platform.js +1 -1
  81. package/src/web/utils/tcb.js +3 -15
  82. package/CHANGELOG.md +0 -240
  83. package/src/.DS_Store +0 -0
  84. package/src/configs/.DS_Store +0 -0
  85. package/src/mp/.gitignore +0 -10
  86. package/src/web/.DS_Store +0 -0
@@ -0,0 +1,711 @@
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": ["time"]
271
+ },
272
+ "x-linkages": [
273
+ {
274
+ "type": "value:schema",
275
+ "condition": "{{ !!$self.value }}",
276
+ "target": "xStatistics",
277
+ "schema": {
278
+ "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'}] : []) }}"
279
+ }
280
+ },
281
+ {
282
+ "type": "value:state",
283
+ "target": "xStatistics",
284
+ "condition": "{{ !!$self.value }}",
285
+ "state": {
286
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
287
+ }
288
+ },
289
+ {
290
+ "type": "value:visible",
291
+ "target": "*(xStatistics)",
292
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
293
+ },
294
+ {
295
+ "type": "value:visible",
296
+ "target": "*(xIsCountEmpty)",
297
+ "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
298
+ }
299
+ ]
300
+ },
301
+ "xStatistics": {
302
+ "title": "统计维度",
303
+ "type": "string",
304
+ "x-category": "基础属性",
305
+ "x-index": 100,
306
+ "enum": []
307
+ },
308
+ "xIsCountEmpty": {
309
+ "title": "统计空值",
310
+ "type": "boolean",
311
+ "default": false,
312
+ "x-index": 110
313
+ },
314
+ "yFieldSubTitle": {
315
+ "x-index": 115,
316
+ "x-component": "sub-category-title",
317
+ "x-component-props": {
318
+ "text": "数值(Y轴)"
319
+ }
320
+ },
321
+ "yField": {
322
+ "type": "object",
323
+ "title": "字段选择",
324
+ "x-index": 120,
325
+ "x-category": "基础属性",
326
+ "x-component": "chart-y-field-select",
327
+ "x-component-props": {
328
+ "isMethod": true,
329
+ "text": "添加字段",
330
+ "dataSourceNamePropKey": "dataSource"
331
+ },
332
+ "x-datasource-method-reset": {},
333
+ "x-linkages": [
334
+ {
335
+ "type": "value:visible",
336
+ "target": "*(groupKey)",
337
+ "condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
338
+ }
339
+ ]
340
+ },
341
+ "groupKey": {
342
+ "type": "object",
343
+ "title": "分组",
344
+ "x-index": 130,
345
+ "x-category": "基础属性",
346
+ "x-component": "data-source-field-select",
347
+ "x-datasource-method-reset": "",
348
+ "x-component-props": {
349
+ "dataSourceNamePropKey": "dataSource",
350
+ "isMethod": true
351
+ },
352
+ "x-linkages": [
353
+ {
354
+ "type": "value:state",
355
+ "target": "groupKeyTimeSpan",
356
+ "condition": "{{ !!$self.value }}",
357
+ "state": {
358
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
359
+ }
360
+ },
361
+ {
362
+ "type": "value:visible",
363
+ "target": "*(groupKeyTimeSpan)",
364
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
365
+ },
366
+ {
367
+ "type": "value:schema",
368
+ "condition": "{{ !!$self.value }}",
369
+ "target": "groupKeyTimeSpan",
370
+ "schema": {
371
+ "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
+ }
373
+ }
374
+ ]
375
+ },
376
+ "groupKeyTimeSpan": {
377
+ "title": "分组维度",
378
+ "type": "string",
379
+ "x-category": "基础属性",
380
+ "x-index": 140,
381
+ "enum": []
382
+ },
383
+ "legendShow": {
384
+ "x-index": 145,
385
+ "x-category": "基础属性",
386
+ "x-component": "sub-category-title",
387
+ "x-component-props": {
388
+ "text": "图例"
389
+ }
390
+ },
391
+ "isLegend": {
392
+ "title": "显示图例",
393
+ "type": "boolean",
394
+ "default": true,
395
+ "x-category": "基础属性",
396
+ "x-index": 150,
397
+ "x-linkages": [
398
+ {
399
+ "type": "value:visible",
400
+ "target": "*(legend)",
401
+ "condition": "{{ $self.value }}"
402
+ }
403
+ ]
404
+ },
405
+ "legend2": {
406
+ "title": "图例位置",
407
+ "type": "string",
408
+ "default": "bottom",
409
+ "x-category": "基础属性",
410
+ "x-index": 160,
411
+ "x-platforms": ["PCWEB"],
412
+ "enum": [
413
+ {
414
+ "value": "top",
415
+ "label": "上方"
416
+ },
417
+ {
418
+ "value": "bottom",
419
+ "label": "下方"
420
+ },
421
+ {
422
+ "value": "left",
423
+ "label": "左侧"
424
+ },
425
+ {
426
+ "value": "right",
427
+ "label": "右侧"
428
+ }
429
+ ]
430
+ },
431
+ "legend": {
432
+ "title": "图例位置",
433
+ "type": "string",
434
+ "default": "bottom",
435
+ "x-category": "基础属性",
436
+ "x-index": 170,
437
+ "x-platforms": ["MOBILEWEB", "MP"],
438
+ "enum": [
439
+ {
440
+ "value": "top",
441
+ "label": "上方"
442
+ },
443
+ {
444
+ "value": "bottom",
445
+ "label": "下方"
446
+ }
447
+ ]
448
+ },
449
+ "divider": {
450
+ "x-index": 175,
451
+ "x-component": "Divider"
452
+ },
453
+ "propsTitle": {
454
+ "x-index": 180,
455
+ "x-component": "sub-category-title",
456
+ "x-component-props": {
457
+ "text": "进阶属性"
458
+ }
459
+ },
460
+ "xFieldShowHight": {
461
+ "x-index": 185,
462
+ "x-component": "sub-category-title",
463
+ "x-component-props": {
464
+ "text": "维度(X轴)"
465
+ }
466
+ },
467
+ "isXaxisName": {
468
+ "title": "显示坐标轴名称",
469
+ "type": "boolean",
470
+ "default": true,
471
+ "x-index": 190,
472
+ "x-linkages": [
473
+ {
474
+ "type": "value:visible",
475
+ "target": "*(xAxisName)",
476
+ "condition": "{{ $self.value }}"
477
+ }
478
+ ]
479
+ },
480
+ "xAxisName": {
481
+ "title": "名称",
482
+ "type": "string",
483
+ "default": "",
484
+ "x-index": 200
485
+ },
486
+ "isXaxisAxisLabelShow": {
487
+ "title": "显示标签",
488
+ "type": "boolean",
489
+ "x-index": 210,
490
+ "default": true
491
+ },
492
+ "isXaxisAxisTickShow": {
493
+ "title": "显示X轴刻度线",
494
+ "type": "boolean",
495
+ "x-index": 220,
496
+ "default": true
497
+ },
498
+ "isXaxisAxisLabelRotate": {
499
+ "title": "文字自动倾斜",
500
+ "type": "boolean",
501
+ "x-index": 230,
502
+ "default": false
503
+ },
504
+ "yFieldShow": {
505
+ "x-index": 240,
506
+ "x-component": "sub-category-title",
507
+ "x-component-props": {
508
+ "text": "数值(Y轴)"
509
+ }
510
+ },
511
+ "isYAxisSplitlineLinestyleWidth": {
512
+ "title": "显示网格线",
513
+ "type": "boolean",
514
+ "x-index": 250,
515
+ "default": true,
516
+ "x-linkages": [
517
+ {
518
+ "type": "value:visible",
519
+ "target": "*(yAxisSplitlineLinestyleType)",
520
+ "condition": "{{ $self.value }}"
521
+ }
522
+ ]
523
+ },
524
+ "yAxisSplitlineLinestyleType": {
525
+ "title": "网格线线条",
526
+ "type": "string",
527
+ "default": "solid",
528
+ "x-index": 260,
529
+ "enum": [
530
+ {
531
+ "value": "solid",
532
+ "label": "实线"
533
+ },
534
+ {
535
+ "value": "dashed",
536
+ "label": "虚线"
537
+ },
538
+ {
539
+ "value": "dotted",
540
+ "label": "点线"
541
+ }
542
+ ]
543
+ },
544
+ "yAxisMax": {
545
+ "title": "最大值",
546
+ "type": "number",
547
+ "x-index": 270
548
+ },
549
+ "yAxisMin": {
550
+ "title": "最小值",
551
+ "type": "number",
552
+ "x-index": 280
553
+ },
554
+ "isYAxisName": {
555
+ "title": "显示Y轴名称",
556
+ "type": "boolean",
557
+ "x-index": 290,
558
+ "default": true,
559
+ "x-linkages": [
560
+ {
561
+ "type": "value:visible",
562
+ "target": "*(yAxisName)",
563
+ "condition": "{{ $self.value }}"
564
+ }
565
+ ]
566
+ },
567
+ "yAxisName": {
568
+ "title": "名称",
569
+ "type": "string",
570
+ "default": "",
571
+ "x-index": 300
572
+ },
573
+ "isYAxisShow": {
574
+ "title": "显示数值",
575
+ "type": "boolean",
576
+ "x-index": 310,
577
+ "default": true
578
+ },
579
+ "dataTagShow": {
580
+ "x-index": 320,
581
+ "x-component": "sub-category-title",
582
+ "x-component-props": {
583
+ "text": "数据标签"
584
+ }
585
+ },
586
+ "isSeriesShowSymbol": {
587
+ "title": "显示数值",
588
+ "type": "boolean",
589
+ "x-index": 330,
590
+ "default": true
591
+ },
592
+ "unitShow": {
593
+ "x-index": 340,
594
+ "x-component": "sub-category-title",
595
+ "x-component-props": {
596
+ "text": "显示单位"
597
+ }
598
+ },
599
+ "isUnit": {
600
+ "title": "显示单位",
601
+ "type": "boolean",
602
+ "x-index": 350,
603
+ "default": false,
604
+ "x-linkages": [
605
+ {
606
+ "type": "value:visible",
607
+ "target": "*(unit,decimalDigits,suffix)",
608
+ "condition": "{{ $self.value }}"
609
+ }
610
+ ]
611
+ },
612
+ "unit": {
613
+ "type": "number",
614
+ "title": "数值量级",
615
+ "x-index": "360",
616
+ "default": 1,
617
+ "enum": [
618
+ {
619
+ "label": "个",
620
+ "value": 1
621
+ },
622
+ {
623
+ "label": "十",
624
+ "value": 10
625
+ },
626
+ {
627
+ "label": "百",
628
+ "value": 100
629
+ },
630
+ {
631
+ "label": "千",
632
+ "value": 1000
633
+ },
634
+ {
635
+ "label": "万",
636
+ "value": 10000
637
+ },
638
+ {
639
+ "label": "十万",
640
+ "value": 100000
641
+ },
642
+ {
643
+ "label": "百万",
644
+ "value": 1000000
645
+ },
646
+ {
647
+ "label": "千万",
648
+ "value": 10000000
649
+ },
650
+ {
651
+ "label": "亿",
652
+ "value": 100000000
653
+ }
654
+ ],
655
+ "x-linkages": [
656
+ {
657
+ "type": "value:state",
658
+ "target": "suffix",
659
+ "condition": "{{ $self.inputed && $self.value!==1 }}",
660
+ "state": {
661
+ "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
662
+ }
663
+ },
664
+ {
665
+ "type": "value:state",
666
+ "target": "suffix",
667
+ "condition": "{{ $self.inputed && $self.value===1 }}",
668
+ "state": {
669
+ "value": ""
670
+ }
671
+ }
672
+ ]
673
+ },
674
+ "decimalDigits": {
675
+ "title": "小数位数",
676
+ "type": "number",
677
+ "default": 0,
678
+ "x-props": {
679
+ "max": 10,
680
+ "min": 0
681
+ },
682
+ "x-index": 370,
683
+ "x-linkages": [
684
+ {
685
+ "type": "value:state",
686
+ "target": "decimalDigits",
687
+ "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
688
+ "state": {
689
+ "value": 0
690
+ }
691
+ }
692
+ ]
693
+ },
694
+ "suffix": {
695
+ "title": "后缀",
696
+ "type": "string",
697
+ "default": "",
698
+ "x-index": 380
699
+ }
700
+ }
701
+ },
702
+ "events": [],
703
+ "meta": {
704
+ "title": "柱状图",
705
+ "description": "柱状图",
706
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Histogram.svg",
707
+ "category": "图表组件",
708
+ "componentOrder": 1,
709
+ "visible": ["APP"]
710
+ }
711
+ }