@cloudbase/weda-ui 3.13.4 → 3.13.5

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.
@@ -1,834 +0,0 @@
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
- "description": "支持饼形和环形,本文以饼形为例"
23
- },
24
- "isTitle": {
25
- "title": "显示标题",
26
- "type": "boolean",
27
- "default": true,
28
- "x-index": 20,
29
- "x-linkages": [
30
- {
31
- "type": "value:visible",
32
- "target": "*(title)",
33
- "condition": "{{ $self.value }}"
34
- }
35
- ]
36
- },
37
- "title": {
38
- "title": "图表标题",
39
- "default": "饼图标题",
40
- "type": "string",
41
- "x-index": 30
42
- },
43
- "dataSource": {
44
- "type": "object",
45
- "title": "数据源",
46
- "x-index": 40,
47
- "x-component": "chart-datasource-select",
48
- "display": false,
49
- "x-props": {
50
- "data-hidebind": true
51
- },
52
- "x-component-props": {
53
- "postChange": {
54
- "addOrUpdateComponentDataBinds": {
55
- "dataBind": {
56
- "propertyPath": "filterData",
57
- "bindDataPath": "[]",
58
- "type": "expression",
59
- "extra": {}
60
- }
61
- }
62
- }
63
- },
64
- "x-linkages": [
65
- {
66
- "type": "value:visible",
67
- "target": "*(filterData)",
68
- "condition": "{{ ($self.value && $self.value.type ==='database') || ($self.value && $self.value.type ==='cloud-integration') }}"
69
- },
70
- {
71
- "type": "value:schema",
72
- "condition": "{{ $self.value && !!$self.value.name }}",
73
- "target": "filterData",
74
- "schema": {
75
- "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
76
- }
77
- },
78
- {
79
- "type": "value:visible",
80
- "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
81
- "condition": "{{ $self.value && $self.value.type ==='database' }}"
82
- }
83
- ],
84
- "description": "已废弃数据源配置"
85
- },
86
- "dataSourceType": {
87
- "x-index": 42,
88
- "title": "数据源",
89
- "x-category": "基础属性",
90
- "type": "string",
91
- "default": "data-model",
92
- "enum": [
93
- {
94
- "label": "数据模型",
95
- "value": "data-model"
96
- },
97
- {
98
- "label": "APIs",
99
- "value": "custom-connector"
100
- },
101
- {
102
- "label": "变量",
103
- "value": "variable"
104
- }
105
- ],
106
- "x-linkages": [
107
- {
108
- "_comment": "数据模型才显示的",
109
- "type": "value:state",
110
- "condition": "{{$self.value === 'data-model'}}",
111
- "target": "*(dataModel,filterData,xFieldShow,xField,xStatistics,xIsCountEmpty,yFieldSubTitle,yField,groupKey)",
112
- "state": {
113
- "display": true
114
- }
115
- },
116
- {
117
- "_comment": "数据模型不显示的",
118
- "type": "value:state",
119
- "condition": "{{$self.value === 'data-model'}}",
120
- "target": "*(connector,connectorMethod,connectorParams,datasourceVariable)",
121
- "state": {
122
- "display": false
123
- }
124
- },
125
- {
126
- "_comment": "APIs才显示的",
127
- "type": "value:state",
128
- "target": "*(connector,connectorMethod,connectorParams)",
129
- "condition": "{{$self.value === 'custom-connector'}}",
130
- "state": {
131
- "display": true
132
- }
133
- },
134
- {
135
- "_comment": "APIs隐藏的",
136
- "type": "value:state",
137
- "target": "*(groupKey,filterData,xFieldShow,xField,yFieldSubTitle,yField,datasourceVariable,dataModel,xStatistics)",
138
- "condition": "{{$self.value === 'custom-connector'}}",
139
- "state": {
140
- "display": false
141
- }
142
- },
143
- {
144
- "_comment": "变量时才显示",
145
- "type": "value:state",
146
- "target": "*(datasourceVariable)",
147
- "condition": "{{$self.value === 'variable'}}",
148
- "state": {
149
- "display": true
150
- }
151
- },
152
- {
153
- "_comment": "变量时不显示",
154
- "type": "value:state",
155
- "target": "*(connector,dataModel,xStatistics,groupKey,filterData,xFieldShow,xField,yFieldSubTitle,yField,connectorMethod,connectorParams)",
156
- "condition": "{{$self.value === 'variable'}}",
157
- "state": {
158
- "display": false
159
- }
160
- },
161
- {
162
- "_comment": "给 connector-selector 设value属性",
163
- "type": "value:schema",
164
- "target": "connector",
165
- "schema": {
166
- "x-component-props": "{{{value:$value}}}"
167
- }
168
- }
169
- ],
170
- "x-props": {
171
- "data-hidebind": true
172
- },
173
- "description": "数据源类型选择"
174
- },
175
- "dataModel": {
176
- "x-index": 43,
177
- "title": "数据模型",
178
- "type": "object",
179
- "required": true,
180
- "x-category": "基础属性",
181
- "properties": {
182
- "name": {
183
- "title": "数据模型名",
184
- "type": "string"
185
- },
186
- "extra": {
187
- "title": "数据模型属性",
188
- "type": "object",
189
- "properties": {
190
- "viewId": {
191
- "title": "数据模型视图id",
192
- "type": "string"
193
- },
194
- "methodName": {
195
- "title": "数据模型方法名",
196
- "type": "object"
197
- }
198
- }
199
- }
200
- },
201
- "x-component": "datasource-selector",
202
- "x-component-props": {
203
- "methodName": "wedaAggregateData"
204
- },
205
- "x-props": {
206
- "data-hidebind": true
207
- },
208
- "x-linkages": [
209
- {
210
- "type": "value:visible",
211
- "target": "*(filterData)",
212
- "condition": "{{ Boolean($self.value && $self.value.extra)}}"
213
- },
214
- {
215
- "type": "value:schema",
216
- "condition": "{{ $self.value && !!$self.value.name }}",
217
- "target": "filterData",
218
- "schema": {
219
- "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
220
- }
221
- },
222
- {
223
- "type": "value:visible",
224
- "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
225
- "condition": "{{ (Boolean($self.value && $self.value.extra)) }}"
226
- }
227
- ],
228
- "description": "展示模型数据的数据来源"
229
- },
230
- "datasourceVariable": {
231
- "type": "array",
232
- "x-index": 44,
233
- "title": "数据源变量",
234
- "x-category": "基础属性",
235
- "description": "数据源变量",
236
- "display": false,
237
- "required": true,
238
- "x-component": "variable-expression"
239
- },
240
- "connector": {
241
- "title": "APIs",
242
- "type": "object",
243
- "x-component": "connector-select",
244
- "required": true,
245
- "x-props": {
246
- "data-hidebind": true
247
- },
248
- "x-index": 45,
249
- "x-category": "基础属性",
250
- "x-linkages": [
251
- {
252
- "type": "value:schema",
253
- "target": "connectorMethod",
254
- "schema": {
255
- "x-component-props": {
256
- "value": "{{$self.value}}"
257
- }
258
- }
259
- }
260
- ],
261
- "description": "展示数据的APIs来源选择",
262
- "properties": {
263
- "datasource": {
264
- "type": "object",
265
- "properties": {
266
- "title": {
267
- "type": "string",
268
- "title": "API名"
269
- },
270
- "id": {
271
- "type": "string",
272
- "title": "ID"
273
- },
274
- "name": {
275
- "type": "string",
276
- "title": "数据源标识"
277
- }
278
- }
279
- }
280
- }
281
- },
282
- "connectorMethod": {
283
- "title": "调用方法",
284
- "type": "object",
285
- "required": true,
286
- "x-component": "connector-method-select",
287
- "x-index": 46,
288
- "x-category": "基础属性",
289
- "x-component-props": {
290
- "docUrl": "https://cloud.tencent.com/document/product/1301/71197#.E6.9F.B1.E7.8A.B6.E5.9B.BE.E3.80.81.E6.8A.98.E7.BA.BF.E5.9B.BE.E3.80.81.E9.A5.BC.E5.9B.BE",
291
- "paramsSchema": {
292
- "type": "object",
293
- "properties": {
294
- "outParams": {
295
- "type": "object",
296
- "properties": {
297
- "properties": {
298
- "type": "object",
299
- "properties": {
300
- "result": {
301
- "type": "object",
302
- "properties": {
303
- "type": {
304
- "const": "array"
305
- },
306
- "items": {
307
- "type": "object",
308
- "properties": {
309
- "type": {
310
- "const": "object"
311
- },
312
- "properties": {
313
- "type": "object",
314
- "properties": {
315
- "XLabel": {
316
- "type": "object",
317
- "properties": {
318
- "type": {
319
- "const": "object"
320
- },
321
- "properties": {
322
- "type": "object",
323
- "properties": {
324
- "Value": {
325
- "type": "object",
326
- "properties": {
327
- "type": {
328
- "const": "string"
329
- }
330
- }
331
- }
332
- },
333
- "required": ["Value"]
334
- }
335
- }
336
- },
337
- "YLabels": {
338
- "type": "object",
339
- "properties": {
340
- "type": {
341
- "const": "array"
342
- },
343
- "items": {
344
- "type": "object",
345
- "properties": {
346
- "type": {
347
- "const": "object"
348
- },
349
- "properties": {
350
- "type": "object",
351
- "properties": {
352
- "Name": {
353
- "type": "object",
354
- "properties": {
355
- "type": {
356
- "const": "string"
357
- }
358
- }
359
- },
360
- "Value": {
361
- "type": "object",
362
- "properties": {
363
- "type": {
364
- "const": "number"
365
- }
366
- }
367
- }
368
- },
369
- "required": ["Name", "Value"]
370
- }
371
- }
372
- }
373
- }
374
- }
375
- },
376
- "required": ["XLabel", "YLabels"]
377
- }
378
- }
379
- }
380
- }
381
- }
382
- },
383
- "required": ["result"]
384
- }
385
- }
386
- }
387
- }
388
- }
389
- },
390
- "x-helper-text": "方法的出入参需满足组件要求,[查看文档](https://cloud.tencent.com/document/product/1301/71197#.E6.9F.B1.E7.8A.B6.E5.9B.BE.E3.80.81.E6.8A.98.E7.BA.BF.E5.9B.BE.E3.80.81.E9.A5.BC.E5.9B.BE)",
391
- "x-helper-text-color": "#E37318",
392
- "description": "展示数据的APIs调用方法选择"
393
- },
394
- "connectorParams": {
395
- "title": "查询入参",
396
- "type": "string",
397
- "x-component": "property-object-params-field",
398
- "x-component-props": {
399
- "dataSourceKeyName": "connector",
400
- "dataSourceValuePath": "datasource.name",
401
- "methodNameKeyName": "connectorMethod",
402
- "methodValuePath": "name",
403
- "paramsKeyName": "connectorParams"
404
- },
405
- "x-index": 47,
406
- "x-category": "基础属性",
407
- "description": "对APIs调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}"
408
- },
409
- "filterData": {
410
- "title": "数据筛选",
411
- "x-index": 50,
412
- "x-component": "condition-select",
413
- "x-component-props": {
414
- "dataSourceNamePropKey": "dataModel",
415
- "customRelOptions": {
416
- "string": [
417
- {
418
- "value": "eq",
419
- "text": "等于"
420
- },
421
- {
422
- "value": "neq",
423
- "text": "不等于"
424
- },
425
- {
426
- "value": "in",
427
- "text": "包含"
428
- },
429
- {
430
- "value": "nin",
431
- "text": "不包含"
432
- }
433
- ],
434
- "boolean": [
435
- {
436
- "value": "eq",
437
- "text": "等于"
438
- }
439
- ],
440
- "number": [
441
- {
442
- "value": "eq",
443
- "text": "等于",
444
- "type": "equal"
445
- },
446
- {
447
- "value": "neq",
448
- "text": "不等于",
449
- "type": "unequal"
450
- },
451
- {
452
- "value": "gt",
453
- "text": "大于",
454
- "type": "greater"
455
- },
456
- {
457
- "value": "gte",
458
- "text": "大于等于",
459
- "type": "greater_or_equal"
460
- },
461
- {
462
- "value": "lt",
463
- "text": "小于",
464
- "type": "less"
465
- },
466
- {
467
- "value": "lte",
468
- "text": "小于等于",
469
- "type": "less_or_equal"
470
- }
471
- ],
472
- "array": [
473
- {
474
- "value": "eq",
475
- "text": "等于"
476
- },
477
- {
478
- "value": "in",
479
- "text": "包含"
480
- }
481
- ],
482
- "object": [
483
- {
484
- "value": "eq",
485
- "text": "等于"
486
- },
487
- {
488
- "value": "in",
489
- "text": "包含"
490
- }
491
- ],
492
- "keyVarType": [
493
- {
494
- "value": "eq",
495
- "text": "等于"
496
- },
497
- {
498
- "value": "neq",
499
- "text": "不等于"
500
- },
501
- {
502
- "value": "gt",
503
- "text": "大于"
504
- },
505
- {
506
- "value": "lt",
507
- "text": "小于"
508
- }
509
- ]
510
- }
511
- },
512
- "x-props": {
513
- "data-hidebind": true,
514
- "data-hideBindValue": true,
515
- "data-withBindMeta": true
516
- },
517
- "description": "可配置数据取值范围,可参见 数据筛选配置"
518
- },
519
- "setColor": {
520
- "type": "array",
521
- "title": "配色",
522
- "x-index": 60,
523
- "default": [
524
- "#2A70E2",
525
- "#46B690",
526
- "#EDB539",
527
- "#E46961",
528
- "#4FB3D2",
529
- "#805FDC"
530
- ],
531
- "x-component": "color-plate",
532
- "description": "当有多个数值字段或维度字段分组时,不同类别将按照不同配色展示,支持自定义色卡"
533
- },
534
- "dimensionalityShow": {
535
- "x-index": 70,
536
- "x-category": "基础属性",
537
- "x-component": "sub-category-title",
538
- "x-component-props": {
539
- "text": "维度"
540
- }
541
- },
542
- "xField": {
543
- "type": "object",
544
- "title": "字段选择",
545
- "x-index": 80,
546
- "x-category": "基础属性",
547
- "x-component": "data-source-field-select",
548
- "x-component-props": {
549
- "dataSourceNamePropKey": "dataModel",
550
- "isMethod": true
551
- },
552
- "x-linkages": [
553
- {
554
- "type": "value:schema",
555
- "condition": "{{ !!$self.value }}",
556
- "target": "xStatistics",
557
- "schema": {
558
- "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'}] : []) }}"
559
- }
560
- },
561
- {
562
- "type": "value:visible",
563
- "target": "*(xStatistics)",
564
- "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
565
- },
566
- {
567
- "type": "value:visible",
568
- "target": "*(xIsCountEmpty)",
569
- "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
570
- }
571
- ],
572
- "description": "X轴数值字段选择"
573
- },
574
- "xStatistics": {
575
- "title": "统计维度",
576
- "type": "string",
577
- "x-category": "基础属性",
578
- "x-index": 90,
579
- "enum": []
580
- },
581
- "xIsCountEmpty": {
582
- "title": "显示空值坐标",
583
- "type": "boolean",
584
- "default": false,
585
- "x-index": 100
586
- },
587
- "yFieldSubTitle": {
588
- "x-index": 105,
589
- "x-component": "sub-category-title",
590
- "x-component-props": {
591
- "text": "数值"
592
- }
593
- },
594
- "yField": {
595
- "type": "object",
596
- "title": "字段选择",
597
- "x-index": 110,
598
- "x-category": "基础属性",
599
- "x-component": "chart-y-field-select",
600
- "x-component-props": {
601
- "text": "编辑Y轴字段",
602
- "isMethod": true,
603
- "dataSourceNamePropKey": "dataModel",
604
- "maxFieldCount": 1
605
- },
606
- "description": "Y轴数值字段选择"
607
- },
608
- "legendShow": {
609
- "x-index": 120,
610
- "x-category": "基础属性",
611
- "x-component": "sub-category-title",
612
- "x-component-props": {
613
- "text": "图例"
614
- }
615
- },
616
- "isLegend": {
617
- "title": "显示图例",
618
- "type": "boolean",
619
- "default": true,
620
- "x-category": "基础属性",
621
- "x-index": 130,
622
- "x-linkages": [
623
- {
624
- "type": "value:visible",
625
- "target": "*(legend)",
626
- "condition": "{{ $self.value }}"
627
- }
628
- ]
629
- },
630
- "legend": {
631
- "title": "图例位置",
632
- "type": "string",
633
- "default": "bottom",
634
- "x-category": "基础属性",
635
- "x-index": 150,
636
- "enum": [
637
- {
638
- "value": "top",
639
- "label": "上方"
640
- },
641
- {
642
- "value": "bottom",
643
- "label": "下方"
644
- }
645
- ]
646
- },
647
- "dataTagShow": {
648
- "x-index": 160,
649
- "x-category": "高级属性",
650
- "x-component": "sub-category-title",
651
- "x-component-props": {
652
- "text": "数据标签"
653
- }
654
- },
655
- "isSeriesShowSymbol": {
656
- "title": "显示数值",
657
- "type": "boolean",
658
- "x-index": 170,
659
- "default": true,
660
- "x-category": "高级属性",
661
- "description": "数据标签字段选择"
662
- },
663
- "isPercent": {
664
- "title": "显示百分比",
665
- "type": "boolean",
666
- "x-index": 180,
667
- "default": false,
668
- "x-category": "高级属性"
669
- },
670
- "unitShow": {
671
- "x-index": 190,
672
- "x-category": "高级属性",
673
- "x-component": "sub-category-title",
674
- "x-component-props": {
675
- "text": "显示单位"
676
- }
677
- },
678
- "isUnit": {
679
- "title": "显示单位",
680
- "type": "boolean",
681
- "x-index": 200,
682
- "default": false,
683
- "x-category": "高级属性",
684
- "x-linkages": [
685
- {
686
- "type": "value:visible",
687
- "target": "*(unit,decimalDigits,suffix)",
688
- "condition": "{{ $self.value }}"
689
- }
690
- ]
691
- },
692
- "unit": {
693
- "type": "number",
694
- "title": "数值量级",
695
- "default": 1,
696
- "x-category": "高级属性",
697
- "x-index": 210,
698
- "enum": [
699
- {
700
- "label": "个",
701
- "value": 1
702
- },
703
- {
704
- "label": "十",
705
- "value": 10
706
- },
707
- {
708
- "label": "百",
709
- "value": 100
710
- },
711
- {
712
- "label": "千",
713
- "value": 1000
714
- },
715
- {
716
- "label": "万",
717
- "value": 10000
718
- },
719
- {
720
- "label": "十万",
721
- "value": 100000
722
- },
723
- {
724
- "label": "百万",
725
- "value": 1000000
726
- },
727
- {
728
- "label": "千万",
729
- "value": 10000000
730
- },
731
- {
732
- "label": "亿",
733
- "value": 100000000
734
- }
735
- ],
736
- "x-linkages": [
737
- {
738
- "type": "value:state",
739
- "target": "suffix",
740
- "condition": "{{ $self.inputed && $self.value!==1 }}",
741
- "state": {
742
- "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
743
- }
744
- },
745
- {
746
- "type": "value:state",
747
- "target": "suffix",
748
- "condition": "{{ $self.inputed && $self.value===1 }}",
749
- "state": {
750
- "value": ""
751
- }
752
- }
753
- ]
754
- },
755
- "decimalDigits": {
756
- "title": "小数位数",
757
- "type": "number",
758
- "default": 0,
759
- "x-props": {
760
- "max": 10,
761
- "min": 0
762
- },
763
- "x-index": 220,
764
- "x-category": "高级属性",
765
- "x-linkages": [
766
- {
767
- "type": "value:state",
768
- "target": "decimalDigits",
769
- "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
770
- "state": {
771
- "value": 0
772
- }
773
- }
774
- ]
775
- },
776
- "suffix": {
777
- "title": "后缀",
778
- "type": "string",
779
- "default": "",
780
- "x-index": 230,
781
- "x-category": "高级属性"
782
- }
783
- }
784
- },
785
- "events": [],
786
- "meta": {
787
- "title": "饼图",
788
- "description": "用于报表场景下表示数据在总体中的占比。",
789
- "figureIcon": "../../figureIcons/Pie.svg",
790
- "icon": "../../icons/Pie.svg",
791
- "category": "图表",
792
- "categoryOrder": 600,
793
- "componentOrder": 560,
794
- "visible": ["APP"],
795
- "inlineStyleForm": {
796
- "fontSize": {
797
- "visible": false
798
- },
799
- "color": {
800
- "visible": false
801
- },
802
- "fontWeight": {
803
- "visible": false
804
- },
805
- "lineHeight": {
806
- "visible": false
807
- },
808
- "justifyContent": {
809
- "visible": false
810
- },
811
- "flexDirection": {
812
- "visible": false
813
- },
814
- "border": {
815
- "visible": false
816
- },
817
- "background": {
818
- "visible": false
819
- },
820
- "boxShadow": {
821
- "visible": false
822
- },
823
- "opacity": {
824
- "visible": false
825
- },
826
- "alignItems": {
827
- "visible": false
828
- }
829
- }
830
- },
831
- "configMeta": {
832
- "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Pie"
833
- }
834
- }