@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,666 @@
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": "line",
10
+ "x-component": "radio",
11
+ "x-index": 10,
12
+ "enum": [
13
+ {
14
+ "label": "折线",
15
+ "value": "line"
16
+ },
17
+ {
18
+ "label": "曲线",
19
+ "value": "bight"
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
+ "type": "string",
39
+ "default": "折线图标题",
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,groupKeyTimeSpan)",
76
+ "condition": "{{ $self.value.type ==='database' }}"
77
+ },
78
+ {
79
+ "type": "value:state",
80
+ "condition": "{{ !!$self.value }}",
81
+ "target": "yField",
82
+ "state": {
83
+ "__datasourceName": "{{$self.value.name}}"
84
+ }
85
+ }
86
+ ]
87
+ },
88
+ "filterData": {
89
+ "title": "数据筛选",
90
+ "x-index": 50,
91
+ "x-component": "condition-select",
92
+ "x-component-props": {
93
+ "dataSourceNamePropKey": "dataSource",
94
+ "customRelOptions": {
95
+ "string": [
96
+ {
97
+ "value": "eq",
98
+ "text": "等于"
99
+ },
100
+ {
101
+ "value": "neq",
102
+ "text": "不等于"
103
+ },
104
+ {
105
+ "value": "in",
106
+ "text": "包含"
107
+ },
108
+ {
109
+ "value": "nin",
110
+ "text": "不包含"
111
+ }
112
+ ],
113
+ "boolean": [
114
+ {
115
+ "value": "eq",
116
+ "text": "等于"
117
+ }
118
+ ],
119
+ "number": [
120
+ {
121
+ "value": "eq",
122
+ "text": "等于",
123
+ "type": "equal"
124
+ },
125
+ {
126
+ "value": "neq",
127
+ "text": "不等于",
128
+ "type": "unequal"
129
+ },
130
+ {
131
+ "value": "gt",
132
+ "text": "大于",
133
+ "type": "greater"
134
+ },
135
+ {
136
+ "value": "gte",
137
+ "text": "大于等于",
138
+ "type": "greater_or_equal"
139
+ },
140
+ {
141
+ "value": "lt",
142
+ "text": "小于",
143
+ "type": "less"
144
+ },
145
+ {
146
+ "value": "lte",
147
+ "text": "小于等于",
148
+ "type": "less_or_equal"
149
+ }
150
+ ],
151
+ "array": [
152
+ {
153
+ "value": "eq",
154
+ "text": "等于"
155
+ },
156
+ {
157
+ "value": "in",
158
+ "text": "包含"
159
+ }
160
+ ],
161
+ "object": [
162
+ {
163
+ "value": "eq",
164
+ "text": "等于"
165
+ },
166
+ {
167
+ "value": "in",
168
+ "text": "包含"
169
+ }
170
+ ],
171
+ "keyVarType": [
172
+ {
173
+ "value": "eq",
174
+ "text": "等于"
175
+ },
176
+ {
177
+ "value": "neq",
178
+ "text": "不等于"
179
+ },
180
+ {
181
+ "value": "gt",
182
+ "text": "大于"
183
+ },
184
+ {
185
+ "value": "lt",
186
+ "text": "小于"
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ "x-props": {
192
+ "data-hidebind": true,
193
+ "data-hideBindValue": true,
194
+ "data-withBindMeta": true
195
+ }
196
+ },
197
+ "xFieldShow": {
198
+ "x-index": 60,
199
+ "x-category": "基础属性",
200
+ "x-component": "sub-category-title",
201
+ "x-component-props": {
202
+ "text": "维度(X轴)"
203
+ }
204
+ },
205
+ "xField": {
206
+ "type": "object",
207
+ "title": "字段选择",
208
+ "x-index": 70,
209
+ "x-category": "基础属性",
210
+ "x-component": "data-source-field-select",
211
+ "x-datasource-method-reset": "",
212
+ "x-component-props": {
213
+ "dataSourceNamePropKey": "dataSource",
214
+ "isMethod": true,
215
+ "disabledTypes": ["time"]
216
+ },
217
+ "x-linkages": [
218
+ {
219
+ "type": "value:schema",
220
+ "condition": "{{ !!$self.value }}",
221
+ "target": "xStatistics",
222
+ "schema": {
223
+ "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'}]: []) }}"
224
+ }
225
+ },
226
+ {
227
+ "type": "value:state",
228
+ "target": "xStatistics",
229
+ "condition": "{{ !!$self.value }}",
230
+ "state": {
231
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
232
+ }
233
+ },
234
+ {
235
+ "type": "value:visible",
236
+ "target": "*(xStatistics)",
237
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
238
+ },
239
+ {
240
+ "type": "value:visible",
241
+ "target": "*(xIsCountEmpty)",
242
+ "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
243
+ }
244
+ ]
245
+ },
246
+ "xStatistics": {
247
+ "title": "统计维度",
248
+ "type": "string",
249
+ "x-category": "基础属性",
250
+ "x-index": 80,
251
+ "enum": []
252
+ },
253
+ "xIsCountEmpty": {
254
+ "title": "统计空值",
255
+ "type": "boolean",
256
+ "default": false,
257
+ "x-index": 90
258
+ },
259
+ "yFieldSubTitle": {
260
+ "x-index": 95,
261
+ "x-component": "sub-category-title",
262
+ "x-component-props": {
263
+ "text": "数值(Y轴)"
264
+ }
265
+ },
266
+ "yField": {
267
+ "type": "object",
268
+ "title": "字段选择",
269
+ "x-index": 100,
270
+ "x-category": "基础属性",
271
+ "x-component": "chart-y-field-select",
272
+ "x-component-props": {
273
+ "isMethod": true,
274
+ "dataSourceNamePropKey": "dataSource"
275
+ },
276
+ "x-linkages": [
277
+ {
278
+ "type": "value:visible",
279
+ "target": "*(groupKey)",
280
+ "condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
281
+ }
282
+ ],
283
+ "x-datasource-method-reset": {}
284
+ },
285
+ "groupKey": {
286
+ "type": "object",
287
+ "title": "分组",
288
+ "x-index": 110,
289
+ "x-category": "基础属性",
290
+ "x-component": "data-source-field-select",
291
+ "x-datasource-method-reset": "",
292
+ "x-component-props": {
293
+ "dataSourceNamePropKey": "dataSource",
294
+ "isMethod": true
295
+ },
296
+ "x-linkages": [
297
+ {
298
+ "type": "value:state",
299
+ "target": "groupKeyTimeSpan",
300
+ "condition": "{{ !!$self.value }}",
301
+ "state": {
302
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
303
+ }
304
+ },
305
+ {
306
+ "type": "value:visible",
307
+ "target": "*(groupKeyTimeSpan)",
308
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
309
+ },
310
+ {
311
+ "type": "value:schema",
312
+ "condition": "{{ !!$self.value }}",
313
+ "target": "groupKeyTimeSpan",
314
+ "schema": {
315
+ "enum": "{{$self.value.format ==='datetime' ? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'},{'label':'时','value':'h'},{'label':'分','value':'min'}] : ($self.value.format ==='date'? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'}]: []) }}"
316
+ }
317
+ }
318
+ ]
319
+ },
320
+ "groupKeyTimeSpan": {
321
+ "title": "分组维度",
322
+ "type": "string",
323
+ "x-category": "基础属性",
324
+ "x-index": 120,
325
+ "enum": []
326
+ },
327
+ "legendShow": {
328
+ "x-index": 130,
329
+ "x-category": "基础属性",
330
+ "x-component": "sub-category-title",
331
+ "x-component-props": {
332
+ "text": "图例"
333
+ }
334
+ },
335
+ "isLegend": {
336
+ "title": "显示图例",
337
+ "type": "boolean",
338
+ "default": true,
339
+ "x-category": "基础属性",
340
+ "x-index": 140,
341
+ "x-linkages": [
342
+ {
343
+ "type": "value:visible",
344
+ "target": "*(legend)",
345
+ "condition": "{{ $self.value }}"
346
+ }
347
+ ]
348
+ },
349
+ "legend2": {
350
+ "title": "图例位置",
351
+ "type": "string",
352
+ "default": "bottom",
353
+ "x-category": "基础属性",
354
+ "x-index": 150,
355
+ "x-platforms": ["PCWEB"],
356
+ "enum": [
357
+ {
358
+ "value": "top",
359
+ "label": "上方"
360
+ },
361
+ {
362
+ "value": "bottom",
363
+ "label": "下方"
364
+ },
365
+ {
366
+ "value": "left",
367
+ "label": "左侧"
368
+ },
369
+ {
370
+ "value": "right",
371
+ "label": "右侧"
372
+ }
373
+ ],
374
+ "display": false
375
+ },
376
+ "legend": {
377
+ "title": "图例位置",
378
+ "type": "string",
379
+ "default": "bottom",
380
+ "x-category": "基础属性",
381
+ "x-index": 160,
382
+ "x-platforms": ["MOBILEWEB", "MP"],
383
+ "enum": [
384
+ {
385
+ "value": "top",
386
+ "label": "上方"
387
+ },
388
+ {
389
+ "value": "bottom",
390
+ "label": "下方"
391
+ }
392
+ ]
393
+ },
394
+ "xFieldShowHight": {
395
+ "x-index": 170,
396
+ "x-category": "高级属性",
397
+ "x-component": "sub-category-title",
398
+ "x-component-props": {
399
+ "text": "维度(X轴)"
400
+ }
401
+ },
402
+ "isXaxisName": {
403
+ "title": "显示坐标轴名称",
404
+ "type": "boolean",
405
+ "default": true,
406
+ "x-index": 180,
407
+ "x-category": "高级属性",
408
+ "x-linkages": [
409
+ {
410
+ "type": "value:visible",
411
+ "target": "*(xAxisName)",
412
+ "condition": "{{ $self.value }}"
413
+ }
414
+ ]
415
+ },
416
+ "xAxisName": {
417
+ "title": "名称",
418
+ "type": "string",
419
+ "default": "",
420
+ "x-category": "高级属性",
421
+ "x-index": 190
422
+ },
423
+ "isXaxisAxisLabelShow": {
424
+ "title": "显示标签",
425
+ "type": "boolean",
426
+ "x-index": 200,
427
+ "default": true,
428
+ "x-category": "高级属性"
429
+ },
430
+ "isXaxisAxisTickShow": {
431
+ "title": "显示X轴刻度线",
432
+ "type": "boolean",
433
+ "x-index": 210,
434
+ "default": true,
435
+ "x-category": "高级属性"
436
+ },
437
+ "isXaxisAxisLabelRotate": {
438
+ "title": "文字自动倾斜",
439
+ "type": "boolean",
440
+ "x-index": 220,
441
+ "default": false,
442
+ "x-category": "高级属性"
443
+ },
444
+ "yFieldShow": {
445
+ "x-index": 230,
446
+ "x-category": "高级属性",
447
+ "x-component": "sub-category-title",
448
+ "x-component-props": {
449
+ "text": "数值(Y轴)"
450
+ }
451
+ },
452
+ "isYAxisSplitlineLinestyleWidth": {
453
+ "title": "显示网格线",
454
+ "type": "boolean",
455
+ "x-index": 240,
456
+ "default": true,
457
+ "x-category": "高级属性",
458
+ "x-linkages": [
459
+ {
460
+ "type": "value:visible",
461
+ "target": "*(yAxisSplitlineLinestyleType)",
462
+ "condition": "{{ $self.value }}"
463
+ }
464
+ ]
465
+ },
466
+ "yAxisSplitlineLinestyleType": {
467
+ "title": "网格线线条",
468
+ "type": "string",
469
+ "default": "solid",
470
+ "x-category": "高级属性",
471
+ "x-index": 250,
472
+ "enum": [
473
+ {
474
+ "value": "solid",
475
+ "label": "实线"
476
+ },
477
+ {
478
+ "value": "dashed",
479
+ "label": "虚线"
480
+ },
481
+ {
482
+ "value": "dotted",
483
+ "label": "点线"
484
+ }
485
+ ]
486
+ },
487
+ "yAxisMax": {
488
+ "title": "最大值",
489
+ "type": "number",
490
+ "x-index": 260,
491
+ "x-category": "高级属性"
492
+ },
493
+ "yAxisMin": {
494
+ "title": "最小值",
495
+ "type": "number",
496
+ "x-index": 270,
497
+ "x-category": "高级属性"
498
+ },
499
+ "isYAxisName": {
500
+ "title": "显示Y轴名称",
501
+ "type": "boolean",
502
+ "x-index": 280,
503
+ "default": true,
504
+ "x-category": "高级属性",
505
+ "x-linkages": [
506
+ {
507
+ "type": "value:visible",
508
+ "target": "*(yAxisName)",
509
+ "condition": "{{ $self.value }}"
510
+ }
511
+ ]
512
+ },
513
+ "yAxisName": {
514
+ "title": "名称",
515
+ "type": "string",
516
+ "default": "",
517
+ "x-category": "高级属性",
518
+ "x-index": 290
519
+ },
520
+ "isYAxisShow": {
521
+ "title": "显示数值",
522
+ "type": "boolean",
523
+ "x-index": 300,
524
+ "default": true,
525
+ "x-category": "高级属性"
526
+ },
527
+ "dataTagShow": {
528
+ "x-index": 310,
529
+ "x-category": "高级属性",
530
+ "x-component": "sub-category-title",
531
+ "x-component-props": {
532
+ "text": "数据标签"
533
+ }
534
+ },
535
+ "isSeriesShowSymbol": {
536
+ "title": "显示数值",
537
+ "type": "boolean",
538
+ "x-index": 320,
539
+ "default": true,
540
+ "x-category": "高级属性"
541
+ },
542
+ "unitShow": {
543
+ "x-index": 330,
544
+ "x-category": "高级属性",
545
+ "x-component": "sub-category-title",
546
+ "x-component-props": {
547
+ "text": "显示单位"
548
+ }
549
+ },
550
+ "isUnit": {
551
+ "title": "显示单位",
552
+ "type": "boolean",
553
+ "x-index": 340,
554
+ "default": false,
555
+ "x-category": "高级属性",
556
+ "x-linkages": [
557
+ {
558
+ "type": "value:visible",
559
+ "target": "*(unit,decimalDigits,suffix)",
560
+ "condition": "{{ $self.value }}"
561
+ }
562
+ ]
563
+ },
564
+ "unit": {
565
+ "type": "number",
566
+ "title": "数值量级",
567
+ "x-category": "高级属性",
568
+ "x-index": 350,
569
+ "default": 1,
570
+ "enum": [
571
+ {
572
+ "label": "个",
573
+ "value": 1
574
+ },
575
+ {
576
+ "label": "十",
577
+ "value": 10
578
+ },
579
+ {
580
+ "label": "百",
581
+ "value": 100
582
+ },
583
+ {
584
+ "label": "千",
585
+ "value": 1000
586
+ },
587
+ {
588
+ "label": "万",
589
+ "value": 10000
590
+ },
591
+ {
592
+ "label": "十万",
593
+ "value": 100000
594
+ },
595
+ {
596
+ "label": "百万",
597
+ "value": 1000000
598
+ },
599
+ {
600
+ "label": "千万",
601
+ "value": 10000000
602
+ },
603
+ {
604
+ "label": "亿",
605
+ "value": 100000000
606
+ }
607
+ ],
608
+ "x-linkages": [
609
+ {
610
+ "type": "value:state",
611
+ "target": "suffix",
612
+ "condition": "{{ $self.inputed && $self.value!==1 }}",
613
+ "state": {
614
+ "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
615
+ }
616
+ },
617
+ {
618
+ "type": "value:state",
619
+ "target": "suffix",
620
+ "condition": "{{ $self.inputed && $self.value===1 }}",
621
+ "state": {
622
+ "value": ""
623
+ }
624
+ }
625
+ ]
626
+ },
627
+ "decimalDigits": {
628
+ "title": "小数位数",
629
+ "type": "number",
630
+ "default": 0,
631
+ "x-props": {
632
+ "max": 10,
633
+ "min": 0
634
+ },
635
+ "x-index": 360,
636
+ "x-category": "高级属性",
637
+ "x-linkages": [
638
+ {
639
+ "type": "value:state",
640
+ "target": "decimalDigits",
641
+ "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
642
+ "state": {
643
+ "value": 0
644
+ }
645
+ }
646
+ ]
647
+ },
648
+ "suffix": {
649
+ "title": "后缀",
650
+ "type": "string",
651
+ "default": "",
652
+ "x-index": 370,
653
+ "x-category": "高级属性"
654
+ }
655
+ }
656
+ },
657
+ "events": [],
658
+ "meta": {
659
+ "title": "折线图",
660
+ "description": "折线图",
661
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/LineChart.svg",
662
+ "category": "图表组件",
663
+ "componentOrder": 1,
664
+ "visible": ["APP"]
665
+ }
666
+ }