@cloudbase/weda-ui 3.10.2 → 3.11.0

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 (85) hide show
  1. package/dist/configs/components/button.js +1 -1
  2. package/dist/configs/components/chart/bar.d.ts +146 -0
  3. package/dist/configs/components/chart/bar.js +1147 -0
  4. package/dist/configs/components/dataView.js +0 -16
  5. package/dist/configs/components/image.js +1 -1
  6. package/dist/configs/components/listView.js +0 -16
  7. package/dist/configs/components/lottery.js +1 -1
  8. package/dist/configs/components/navigationBar.json +1 -1
  9. package/dist/configs/components/wd-audio.js +1 -1
  10. package/dist/configs/components/wd-button.js +2 -2
  11. package/dist/configs/components/wd-icon.js +1 -1
  12. package/dist/configs/components/wd-image.js +1 -1
  13. package/dist/configs/components/wd-input-email.d.ts +2 -2
  14. package/dist/configs/components/wd-input-phone.d.ts +2 -2
  15. package/dist/configs/components/wd-input-url.d.ts +2 -2
  16. package/dist/configs/components/wd-link.js +1 -1
  17. package/dist/configs/components/wd-rating.js +2 -2
  18. package/dist/configs/components/wd-select-multiple.d.ts +23 -0
  19. package/dist/configs/components/wd-select-multiple.js +26 -1
  20. package/dist/configs/components/wd-select.d.ts +23 -0
  21. package/dist/configs/components/wd-select.js +25 -0
  22. package/dist/configs/components/wd-side-tab.js +2 -2
  23. package/dist/configs/components/wd-table.d.ts +1 -1
  24. package/dist/configs/components/wd-table.js +1 -0
  25. package/dist/configs/components/wd-top-tab.js +2 -2
  26. package/dist/configs/components/wd-upload-image.js +1 -1
  27. package/dist/configs/components/wedaVideo.js +3 -3
  28. package/dist/configs/components/wxOpenApi/share.js +1 -1
  29. package/dist/configs/index.d.ts +1674 -2996
  30. package/dist/configs/index.js +1 -1
  31. package/dist/configs/type-utils/type-form.d.ts +6 -0
  32. package/dist/configs/type-utils/type-form.js +63 -22
  33. package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
  34. package/dist/configs/type-utils/x-runtime-default.js +1 -0
  35. package/dist/enum/index.js +5 -1
  36. package/dist/style/index.css +2 -0
  37. package/dist/style/index.scss +1 -1
  38. package/dist/style/weda-ui.min.css +2 -2
  39. package/dist/web/components/form/select/index.css +2 -2
  40. package/dist/web/components/form/select/request.d.ts +3 -3
  41. package/dist/web/components/form/select/request.js +1 -0
  42. package/dist/web/components/form/select/status/index.d.ts +3 -1
  43. package/dist/web/components/form/select/status/index.js +3 -1
  44. package/dist/web/components/form/selectMultiple/dropdown-select/index.css +5 -5
  45. package/dist/web/components/form-date/index.d.ts +1 -1
  46. package/dist/web/components/form-email/index.d.ts +1 -1
  47. package/dist/web/components/form-input/index.d.ts +1 -1
  48. package/dist/web/components/form-input-hooks/index.js +10 -1
  49. package/dist/web/components/form-input-hooks/validator.d.ts +1 -0
  50. package/dist/web/components/form-input-hooks/validator.js +6 -2
  51. package/dist/web/components/form-phone/index.d.ts +1 -1
  52. package/dist/web/components/form-time/index.d.ts +1 -1
  53. package/dist/web/components/form-url/index.d.ts +1 -1
  54. package/dist/web/components/wd-date/elements/Modal.h5.d.ts +2 -0
  55. package/dist/web/components/wd-date/elements/Modal.h5.js +3 -3
  56. package/dist/web/components/wd-form/index.js +1 -1
  57. package/dist/web/components/wd-form-item/wd-form-item-read-only.d.ts +1 -0
  58. package/dist/web/components/wd-input/wd-input.d.ts +1 -1
  59. package/dist/web/components/wd-input-email/wd-input-email.d.ts +1 -1
  60. package/dist/web/components/wd-input-phone/wd-input-phone.d.ts +1 -1
  61. package/dist/web/components/wd-input-url/wd-input-url.d.ts +1 -1
  62. package/dist/web/components/wd-select/relationSelect/relationSelect.d.ts +4 -0
  63. package/dist/web/components/wd-select/relationSelect/relationSelect.js +202 -0
  64. package/dist/web/components/wd-select/{relationalSetting.js → relationSelect/relationalSetting.js} +4 -4
  65. package/dist/web/components/wd-select/select/index.d.ts +2 -0
  66. package/dist/web/components/wd-select/select/index.js +8 -0
  67. package/dist/web/components/wd-select/select/selectUI.d.ts +3 -0
  68. package/dist/web/components/wd-select/select/selectUI.js +190 -0
  69. package/dist/web/components/wd-select/style.d.ts +2 -0
  70. package/dist/web/components/wd-select/style.js +2 -0
  71. package/dist/web/components/wd-select/wd-select.css +83 -0
  72. package/dist/web/components/wd-select/wd-select.d.ts +0 -1
  73. package/dist/web/components/wd-select/wd-select.js +18 -8
  74. package/dist/web/components/wd-select-multiple/style.d.ts +2 -0
  75. package/dist/web/components/wd-select-multiple/style.js +2 -0
  76. package/dist/web/components/wd-select-multiple/wd-select-multiple.css +30 -4
  77. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +18 -7
  78. package/dist/web/components/wd-table/components/FieldRender/index.d.ts +7 -4
  79. package/dist/web/components/wd-table/components/FieldRender/index.js +23 -7
  80. package/dist/web/components/wd-table/hooks/useChooseList.d.ts +1 -0
  81. package/dist/web/components/wd-table/hooks/useChooseList.js +55 -26
  82. package/dist/web/utils/platform.js +3 -3
  83. package/package.json +2 -2
  84. package/dist/configs/components/chart/bar.json +0 -1144
  85. /package/dist/web/components/wd-select/{relationalSetting.d.ts → relationSelect/relationalSetting.d.ts} +0 -0
@@ -1,1144 +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
- "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
- "description": "支持横向和纵向。纵向维度为 X 轴,数值为 Y 轴,横向反之。本文属性设置以纵向为例"
65
- },
66
- "isPile": {
67
- "title": "是否堆叠",
68
- "type": "boolean",
69
- "default": false,
70
- "x-index": 20,
71
- "description": "多Y轴时,该属性才生效"
72
- },
73
- "isTitle": {
74
- "title": "显示标题",
75
- "type": "boolean",
76
- "default": true,
77
- "x-index": 30,
78
- "x-linkages": [
79
- {
80
- "type": "value:visible",
81
- "target": "*(title)",
82
- "condition": "{{ $self.value }}"
83
- }
84
- ]
85
- },
86
- "title": {
87
- "title": "图表标题",
88
- "default": "柱状图标题",
89
- "type": "string",
90
- "x-index": 40
91
- },
92
- "dataSource": {
93
- "type": "object",
94
- "title": "数据源(废弃)",
95
- "display": false,
96
- "x-index": 43,
97
- "x-component": "chart-datasource-select",
98
- "x-props": {
99
- "data-hidebind": true
100
- },
101
- "x-component-props": {
102
- "postChange": {
103
- "addOrUpdateComponentDataBinds": {
104
- "dataBind": {
105
- "propertyPath": "filterData",
106
- "bindDataPath": "[]",
107
- "type": "expression",
108
- "extra": {}
109
- }
110
- }
111
- }
112
- },
113
- "x-linkages": [
114
- {
115
- "type": "value:visible",
116
- "target": "*(filterData)",
117
- "condition": "{{ ($self.value && $self.value.type ==='database') || ( $self.value && $self.value.type ==='cloud-integration') }}"
118
- },
119
- {
120
- "type": "value:schema",
121
- "condition": "{{ $self.value&&!!$self.value.name }}",
122
- "target": "filterData",
123
- "schema": {
124
- "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
125
- }
126
- },
127
- {
128
- "type": "value:visible",
129
- "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField,groupKeyTimeSpan)",
130
- "condition": "{{ $self.value && $self.value.type ==='database' }}"
131
- },
132
- {
133
- "type": "value:state",
134
- "condition": "{{ !!$self.value }}",
135
- "target": "yField",
136
- "state": {
137
- "__datasourceName": "{{$self.value.name}}"
138
- }
139
- }
140
- ],
141
- "description": "已废弃数据源配置"
142
- },
143
- "dataSourceType": {
144
- "x-index": 45,
145
- "title": "数据源",
146
- "x-category": "基础属性",
147
- "type": "string",
148
- "default": "data-model",
149
- "enum": [
150
- {
151
- "label": "数据模型",
152
- "value": "data-model"
153
- },
154
- {
155
- "label": "APIs",
156
- "value": "custom-connector"
157
- },
158
- {
159
- "label": "变量",
160
- "value": "variable"
161
- }
162
- ],
163
- "x-linkages": [
164
- {
165
- "_comment": "数据模型才显示的",
166
- "type": "value:state",
167
- "condition": "{{$self.value === 'data-model'}}",
168
- "target": "*(dataModel,filterData,xFieldShow,xField,xStatistics,xIsCountEmpty,yFieldSubTitle,yField,groupKey)",
169
- "state": {
170
- "display": true
171
- }
172
- },
173
- {
174
- "_comment": "数据模型不显示的",
175
- "type": "value:state",
176
- "condition": "{{$self.value === 'data-model'}}",
177
- "target": "*(connector,connectorMethod,connectorParams,datasourceVariable)",
178
- "state": {
179
- "display": false
180
- }
181
- },
182
- {
183
- "_comment": "APIs才显示的",
184
- "type": "value:state",
185
- "target": "*(connector,connectorMethod,connectorParams)",
186
- "condition": "{{$self.value === 'custom-connector'}}",
187
- "state": {
188
- "display": true
189
- }
190
- },
191
- {
192
- "_comment": "APIs隐藏的",
193
- "type": "value:state",
194
- "target": "*(groupKey,filterData,xFieldShow,xField,yFieldSubTitle,yField,datasourceVariable,dataModel,xStatistics)",
195
- "condition": "{{$self.value === 'custom-connector'}}",
196
- "state": {
197
- "display": false
198
- }
199
- },
200
- {
201
- "_comment": "变量时才显示",
202
- "type": "value:state",
203
- "target": "*(datasourceVariable)",
204
- "condition": "{{$self.value === 'variable'}}",
205
- "state": {
206
- "display": true
207
- }
208
- },
209
- {
210
- "_comment": "变量时不显示",
211
- "type": "value:state",
212
- "target": "*(connector,dataModel,xStatistics,groupKey,filterData,xFieldShow,xField,yFieldSubTitle,yField,connectorMethod,connectorParams)",
213
- "condition": "{{$self.value === 'variable'}}",
214
- "state": {
215
- "display": false
216
- }
217
- },
218
- {
219
- "_comment": "给 connector-selector 设value属性",
220
- "type": "value:schema",
221
- "target": "connector",
222
- "schema": {
223
- "x-component-props": "{{{value:$value}}}"
224
- }
225
- }
226
- ],
227
- "x-props": {
228
- "data-hidebind": true
229
- },
230
- "description": "数据源类型选择"
231
- },
232
- "dataModel": {
233
- "x-index": 50,
234
- "title": "数据模型",
235
- "type": "object",
236
- "x-category": "基础属性",
237
- "required": true,
238
- "properties": {
239
- "name": {
240
- "title": "数据模型名",
241
- "type": "string"
242
- },
243
- "extra": {
244
- "title": "数据模型属性",
245
- "type": "object",
246
- "properties": {
247
- "viewId": {
248
- "title": "数据模型视图id",
249
- "type": "string"
250
- },
251
- "methodName": {
252
- "title": "数据模型方法名",
253
- "type": "object"
254
- }
255
- }
256
- }
257
- },
258
- "x-component": "datasource-selector",
259
- "x-component-props": {
260
- "methodName": "wedaAggregateData"
261
- },
262
- "x-props": {
263
- "data-hidebind": true
264
- },
265
- "x-linkages": [
266
- {
267
- "type": "value:visible",
268
- "target": "*(filterData)",
269
- "condition": "{{ Boolean($self.value && $self.value.extra)}}"
270
- },
271
- {
272
- "type": "value:schema",
273
- "condition": "{{ $self.value && !!$self.value.name }}",
274
- "target": "filterData",
275
- "schema": {
276
- "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
277
- }
278
- },
279
- {
280
- "type": "value:visible",
281
- "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
282
- "condition": "{{ (Boolean($self.value && $self.value.extra)) }}"
283
- },
284
- {
285
- "type": "value:state",
286
- "condition": "{{ !!$self.value }}",
287
- "target": "yField",
288
- "state": {
289
- "__datasourceName": "{{$self.value.name}}"
290
- }
291
- }
292
- ],
293
- "description": "展示模型数据的数据来源"
294
- },
295
- "datasourceVariable": {
296
- "type": "array",
297
- "items": {
298
- "type": "object",
299
- "properties": {
300
- "XLabel": {
301
- "type": "object",
302
- "properties": {
303
- "Name": {
304
- "type": "string"
305
- },
306
- "Value": {
307
- "type": "string"
308
- }
309
- },
310
- "required": ["Name", "Value"]
311
- },
312
- "YLabels": {
313
- "type": "array",
314
- "items": {
315
- "type": "object",
316
- "properties": {
317
- "Name": {
318
- "type": "string"
319
- },
320
- "Value": {
321
- "type": "number"
322
- }
323
- },
324
- "required": ["Name", "Value"]
325
- }
326
- }
327
- },
328
- "required": ["XLabel", "YLabels"]
329
- },
330
- "x-index": 53,
331
- "title": "数据源变量",
332
- "x-category": "基础属性",
333
- "description": "数据源变量",
334
- "required": true,
335
- "display": false,
336
- "x-component": "variable-expression"
337
- },
338
- "connector": {
339
- "title": "APIs",
340
- "type": "object",
341
- "x-component": "connector-select",
342
- "x-index": 54,
343
- "required": true,
344
- "x-category": "基础属性",
345
- "x-props": {
346
- "data-hidebind": true
347
- },
348
- "x-linkages": [
349
- {
350
- "type": "value:schema",
351
- "target": "connectorMethod",
352
- "schema": {
353
- "x-component-props": {
354
- "value": "{{$self.value}}"
355
- }
356
- }
357
- }
358
- ],
359
- "description": "展示数据的APIs来源选择",
360
- "properties": {
361
- "datasource": {
362
- "type": "object",
363
- "properties": {
364
- "title": {
365
- "type": "string",
366
- "title": "API名"
367
- },
368
- "id": {
369
- "type": "string",
370
- "title": "ID"
371
- },
372
- "name": {
373
- "type": "string",
374
- "title": "数据源标识"
375
- }
376
- }
377
- }
378
- }
379
- },
380
- "connectorMethod": {
381
- "title": "调用方法",
382
- "type": "object",
383
- "required": true,
384
- "x-component": "connector-method-select",
385
- "x-index": 55,
386
- "x-category": "基础属性",
387
- "x-component-props": {
388
- "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",
389
- "paramsSchema": {
390
- "type": "object",
391
- "properties": {
392
- "outParams": {
393
- "type": "object",
394
- "properties": {
395
- "properties": {
396
- "type": "object",
397
- "properties": {
398
- "result": {
399
- "type": "object",
400
- "properties": {
401
- "type": {
402
- "const": "array"
403
- },
404
- "items": {
405
- "type": "object",
406
- "properties": {
407
- "type": {
408
- "const": "object"
409
- },
410
- "properties": {
411
- "type": "object",
412
- "properties": {
413
- "XLabel": {
414
- "type": "object",
415
- "properties": {
416
- "type": {
417
- "const": "object"
418
- },
419
- "properties": {
420
- "type": "object",
421
- "properties": {
422
- "Value": {
423
- "type": "object",
424
- "properties": {
425
- "type": {
426
- "const": "string"
427
- }
428
- }
429
- }
430
- },
431
- "required": ["Value"]
432
- }
433
- }
434
- },
435
- "YLabels": {
436
- "type": "object",
437
- "properties": {
438
- "type": {
439
- "const": "array"
440
- },
441
- "items": {
442
- "type": "object",
443
- "properties": {
444
- "type": {
445
- "const": "object"
446
- },
447
- "properties": {
448
- "type": "object",
449
- "properties": {
450
- "Name": {
451
- "type": "object",
452
- "properties": {
453
- "type": {
454
- "const": "string"
455
- }
456
- }
457
- },
458
- "Value": {
459
- "type": "object",
460
- "properties": {
461
- "type": {
462
- "const": "number"
463
- }
464
- }
465
- }
466
- },
467
- "required": ["Name", "Value"]
468
- }
469
- }
470
- }
471
- }
472
- }
473
- },
474
- "required": ["XLabel", "YLabels"]
475
- }
476
- }
477
- }
478
- }
479
- }
480
- },
481
- "required": ["result"]
482
- }
483
- }
484
- }
485
- }
486
- }
487
- },
488
- "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)",
489
- "x-helper-text-color": "#E37318",
490
- "description": "展示数据的APIs调用方法选择"
491
- },
492
- "connectorParams": {
493
- "title": "查询入参",
494
- "type": "string",
495
- "x-component": "property-object-params-field",
496
- "x-component-props": {
497
- "dataSourceKeyName": "connector",
498
- "dataSourceValuePath": "datasource.name",
499
- "methodNameKeyName": "connectorMethod",
500
- "methodValuePath": "name",
501
- "paramsKeyName": "connectorParams"
502
- },
503
- "x-index": 56,
504
- "x-category": "基础属性",
505
- "description": "对APIs调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}"
506
- },
507
- "filterData": {
508
- "title": "数据筛选",
509
- "x-index": 60,
510
- "x-component": "condition-select",
511
- "x-component-props": {
512
- "dataSourceNamePropKey": "dataModel",
513
- "customRelOptions": {
514
- "string": [
515
- {
516
- "value": "eq",
517
- "text": "等于"
518
- },
519
- {
520
- "value": "neq",
521
- "text": "不等于"
522
- },
523
- {
524
- "value": "in",
525
- "text": "包含"
526
- },
527
- {
528
- "value": "nin",
529
- "text": "不包含"
530
- }
531
- ],
532
- "boolean": [
533
- {
534
- "value": "eq",
535
- "text": "等于"
536
- }
537
- ],
538
- "number": [
539
- {
540
- "value": "eq",
541
- "text": "等于",
542
- "type": "equal"
543
- },
544
- {
545
- "value": "neq",
546
- "text": "不等于",
547
- "type": "unequal"
548
- },
549
- {
550
- "value": "gt",
551
- "text": "大于",
552
- "type": "greater"
553
- },
554
- {
555
- "value": "gte",
556
- "text": "大于等于",
557
- "type": "greater_or_equal"
558
- },
559
- {
560
- "value": "lt",
561
- "text": "小于",
562
- "type": "less"
563
- },
564
- {
565
- "value": "lte",
566
- "text": "小于等于",
567
- "type": "less_or_equal"
568
- }
569
- ],
570
- "array": [
571
- {
572
- "value": "eq",
573
- "text": "等于"
574
- },
575
- {
576
- "value": "in",
577
- "text": "包含"
578
- }
579
- ],
580
- "object": [
581
- {
582
- "value": "eq",
583
- "text": "等于"
584
- },
585
- {
586
- "value": "in",
587
- "text": "包含"
588
- }
589
- ],
590
- "keyVarType": [
591
- {
592
- "value": "eq",
593
- "text": "等于"
594
- },
595
- {
596
- "value": "neq",
597
- "text": "不等于"
598
- },
599
- {
600
- "value": "gt",
601
- "text": "大于"
602
- },
603
- {
604
- "value": "lt",
605
- "text": "小于"
606
- }
607
- ]
608
- }
609
- },
610
- "x-props": {
611
- "data-hidebind": true,
612
- "data-hideBindValue": true,
613
- "data-withBindMeta": true
614
- },
615
- "description": "可配置数据取值范围,可参见 数据筛选配置"
616
- },
617
- "setColor": {
618
- "type": "array",
619
- "title": "配色",
620
- "x-index": 70,
621
- "default": [
622
- "#2A70E2",
623
- "#46B690",
624
- "#EDB539",
625
- "#E46961",
626
- "#4FB3D2",
627
- "#805FDC"
628
- ],
629
- "x-component": "color-plate",
630
- "description": "当有多个数值字段或维度字段分组时,不同类别将按照不同配色展示,支持自定义色卡"
631
- },
632
- "xFieldShow": {
633
- "x-index": 80,
634
- "x-category": "基础属性",
635
- "x-component": "sub-category-title",
636
- "x-component-props": {
637
- "text": "维度(X轴)"
638
- },
639
- "description": "选择 X 轴字段,支持统计空值。当选择日期、时间、日期时间类型字段时,支持选择统计维度"
640
- },
641
- "xField": {
642
- "type": "object",
643
- "title": "字段选择",
644
- "x-index": 90,
645
- "x-category": "基础属性",
646
- "x-component": "data-source-field-select",
647
- "x-component-props": {
648
- "dataSourceNamePropKey": "dataModel",
649
- "isMethod": true,
650
- "disabledTypes": ["time"]
651
- },
652
- "x-linkages": [
653
- {
654
- "type": "value:schema",
655
- "condition": "{{ !!$self.value }}",
656
- "target": "xStatistics",
657
- "schema": {
658
- "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'}] : []) }}"
659
- }
660
- },
661
- {
662
- "type": "value:visible",
663
- "target": "*(xStatistics)",
664
- "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
665
- },
666
- {
667
- "type": "value:visible",
668
- "target": "*(xIsCountEmpty)",
669
- "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
670
- }
671
- ],
672
- "description": "X轴数值字段选择"
673
- },
674
- "xStatistics": {
675
- "title": "统计维度",
676
- "type": "string",
677
- "x-category": "基础属性",
678
- "x-index": 100,
679
- "enum": []
680
- },
681
- "xIsCountEmpty": {
682
- "title": "显示空值坐标",
683
- "type": "boolean",
684
- "default": false,
685
- "x-index": 110
686
- },
687
- "yFieldSubTitle": {
688
- "x-index": 115,
689
- "x-component": "sub-category-title",
690
- "x-component-props": {
691
- "text": "数值(Y轴)"
692
- }
693
- },
694
- "yField": {
695
- "type": "object",
696
- "title": "字段选择",
697
- "x-index": 120,
698
- "x-category": "基础属性",
699
- "x-component": "chart-y-field-select",
700
- "x-component-props": {
701
- "isMethod": true,
702
- "text": "编辑Y轴字段",
703
- "dataSourceNamePropKey": "dataModel"
704
- },
705
- "x-linkages": [
706
- {
707
- "type": "value:visible",
708
- "target": "*(groupKey)",
709
- "condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
710
- }
711
- ],
712
- "description": "Y轴数值字段选择"
713
- },
714
- "groupKey": {
715
- "type": "object",
716
- "title": "分组",
717
- "x-index": 130,
718
- "x-category": "基础属性",
719
- "x-component": "data-source-field-select",
720
- "x-component-props": {
721
- "dataSourceNamePropKey": "dataModel",
722
- "isMethod": true,
723
- "clearable": true
724
- },
725
- "x-linkages": [
726
- {
727
- "type": "value:state",
728
- "target": "groupKeyTimeSpan",
729
- "condition": "{{ !!$self.value }}",
730
- "state": {
731
- "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
732
- }
733
- },
734
- {
735
- "type": "value:visible",
736
- "target": "*(groupKeyTimeSpan)",
737
- "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
738
- },
739
- {
740
- "type": "value:schema",
741
- "condition": "{{ !!$self.value }}",
742
- "target": "groupKeyTimeSpan",
743
- "schema": {
744
- "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'}]: []) }}"
745
- }
746
- }
747
- ],
748
- "description": "当 Y 轴仅选择一个字段时,支持根据某一固定字段对 X 轴进行分组展示。示例:X 轴为销售人员,分组为销售区域"
749
- },
750
- "groupKeyTimeSpan": {
751
- "title": "分组维度",
752
- "type": "string",
753
- "x-category": "基础属性",
754
- "x-index": 140,
755
- "enum": []
756
- },
757
- "legendShow": {
758
- "x-index": 145,
759
- "x-category": "基础属性",
760
- "x-component": "sub-category-title",
761
- "x-component-props": {
762
- "text": "图例"
763
- }
764
- },
765
- "isLegend": {
766
- "title": "显示图例",
767
- "type": "boolean",
768
- "default": true,
769
- "x-category": "基础属性",
770
- "x-index": 150,
771
- "x-linkages": [
772
- {
773
- "type": "value:visible",
774
- "target": "*(legend)",
775
- "condition": "{{ $self.value }}"
776
- }
777
- ]
778
- },
779
- "legend": {
780
- "title": "图例位置",
781
- "type": "string",
782
- "default": "bottom",
783
- "x-category": "基础属性",
784
- "x-index": 170,
785
- "enum": [
786
- {
787
- "value": "top",
788
- "label": "上方"
789
- },
790
- {
791
- "value": "bottom",
792
- "label": "下方"
793
- }
794
- ]
795
- },
796
- "divider": {
797
- "x-index": 175,
798
- "x-component": "Divider"
799
- },
800
- "propsTitle": {
801
- "x-index": 180,
802
- "x-component": "sub-category-title",
803
- "x-component-props": {
804
- "text": "进阶属性"
805
- }
806
- },
807
- "xFieldShowHight": {
808
- "x-index": 185,
809
- "x-component": "sub-category-title",
810
- "x-component-props": {
811
- "text": "维度(X轴)"
812
- }
813
- },
814
- "isXaxisName": {
815
- "title": "显示坐标轴名称",
816
- "type": "boolean",
817
- "default": true,
818
- "x-index": 190,
819
- "x-linkages": [
820
- {
821
- "type": "value:visible",
822
- "target": "*(xAxisName)",
823
- "condition": "{{ $self.value }}"
824
- }
825
- ]
826
- },
827
- "xAxisName": {
828
- "title": "名称",
829
- "type": "string",
830
- "default": "",
831
- "x-index": 200
832
- },
833
- "isXaxisAxisLabelShow": {
834
- "title": "显示标签",
835
- "type": "boolean",
836
- "x-index": 210,
837
- "default": true
838
- },
839
- "isXaxisAxisTickShow": {
840
- "title": "显示X轴刻度线",
841
- "type": "boolean",
842
- "x-index": 220,
843
- "default": true
844
- },
845
- "isXaxisAxisLabelRotate": {
846
- "title": "文字自动倾斜",
847
- "type": "boolean",
848
- "x-index": 230,
849
- "default": false
850
- },
851
- "yFieldShow": {
852
- "x-index": 240,
853
- "x-component": "sub-category-title",
854
- "x-component-props": {
855
- "text": "数值(Y轴)"
856
- }
857
- },
858
- "isYAxisSplitlineLinestyleWidth": {
859
- "title": "显示网格线",
860
- "type": "boolean",
861
- "x-index": 250,
862
- "default": true,
863
- "x-linkages": [
864
- {
865
- "type": "value:visible",
866
- "target": "*(yAxisSplitlineLinestyleType)",
867
- "condition": "{{ $self.value }}"
868
- }
869
- ]
870
- },
871
- "yAxisSplitlineLinestyleType": {
872
- "title": "网格线线条",
873
- "type": "string",
874
- "default": "solid",
875
- "x-index": 260,
876
- "enum": [
877
- {
878
- "value": "solid",
879
- "label": "实线"
880
- },
881
- {
882
- "value": "dashed",
883
- "label": "虚线"
884
- },
885
- {
886
- "value": "dotted",
887
- "label": "点线"
888
- }
889
- ]
890
- },
891
- "yAxisMax": {
892
- "title": "最大值",
893
- "type": "number",
894
- "x-index": 270
895
- },
896
- "yAxisMin": {
897
- "title": "最小值",
898
- "type": "number",
899
- "x-index": 280
900
- },
901
- "isYAxisName": {
902
- "title": "显示Y轴名称",
903
- "type": "boolean",
904
- "x-index": 290,
905
- "default": true,
906
- "x-linkages": [
907
- {
908
- "type": "value:visible",
909
- "target": "*(yAxisName)",
910
- "condition": "{{ $self.value }}"
911
- }
912
- ]
913
- },
914
- "yAxisName": {
915
- "title": "名称",
916
- "type": "string",
917
- "default": "",
918
- "x-index": 300
919
- },
920
- "isYAxisShow": {
921
- "title": "显示数值",
922
- "type": "boolean",
923
- "x-index": 310,
924
- "default": true,
925
- "description": "数值(Y轴)显示数值"
926
- },
927
- "dataTagShow": {
928
- "x-index": 320,
929
- "x-component": "sub-category-title",
930
- "x-component-props": {
931
- "text": "数据标签"
932
- }
933
- },
934
- "isSeriesShowSymbol": {
935
- "title": "显示数值",
936
- "type": "boolean",
937
- "x-index": 330,
938
- "default": true,
939
- "description": "数据标签显示数值"
940
- },
941
- "unitShow": {
942
- "x-index": 340,
943
- "x-component": "sub-category-title",
944
- "x-component-props": {
945
- "text": "显示单位"
946
- }
947
- },
948
- "isUnit": {
949
- "title": "显示单位",
950
- "type": "boolean",
951
- "x-index": 350,
952
- "x-props": {
953
- "data-hidebind": true
954
- },
955
- "default": false,
956
- "x-linkages": [
957
- {
958
- "type": "value:visible",
959
- "target": "*(unit,decimalDigits,suffix)",
960
- "condition": "{{ $self.value }}"
961
- }
962
- ]
963
- },
964
- "unit": {
965
- "type": "number",
966
- "title": "数值量级",
967
- "x-index": 360,
968
- "default": 1,
969
- "x-component": "select",
970
- "enum": [
971
- {
972
- "label": "个",
973
- "value": 1
974
- },
975
- {
976
- "label": "十",
977
- "value": 10
978
- },
979
- {
980
- "label": "百",
981
- "value": 100
982
- },
983
- {
984
- "label": "千",
985
- "value": 1000
986
- },
987
- {
988
- "label": "万",
989
- "value": 10000
990
- },
991
- {
992
- "label": "十万",
993
- "value": 100000
994
- },
995
- {
996
- "label": "百万",
997
- "value": 1000000
998
- },
999
- {
1000
- "label": "千万",
1001
- "value": 10000000
1002
- },
1003
- {
1004
- "label": "亿",
1005
- "value": 100000000
1006
- }
1007
- ],
1008
- "x-component-props": {
1009
- "options": [
1010
- {
1011
- "label": "个",
1012
- "value": 1
1013
- },
1014
- {
1015
- "label": "十",
1016
- "value": 10
1017
- },
1018
- {
1019
- "label": "百",
1020
- "value": 100
1021
- },
1022
- {
1023
- "label": "千",
1024
- "value": 1000
1025
- },
1026
- {
1027
- "label": "万",
1028
- "value": 10000
1029
- },
1030
- {
1031
- "label": "十万",
1032
- "value": 100000
1033
- },
1034
- {
1035
- "label": "百万",
1036
- "value": 1000000
1037
- },
1038
- {
1039
- "label": "千万",
1040
- "value": 10000000
1041
- },
1042
- {
1043
- "label": "亿",
1044
- "value": 100000000
1045
- }
1046
- ]
1047
- },
1048
- "x-linkages": [
1049
- {
1050
- "type": "value:state",
1051
- "target": "suffix",
1052
- "condition": "{{ $self.inputed && $self.value!==1 }}",
1053
- "state": {
1054
- "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
1055
- }
1056
- },
1057
- {
1058
- "type": "value:state",
1059
- "target": "suffix",
1060
- "condition": "{{ $self.inputed && $self.value===1 }}",
1061
- "state": {
1062
- "value": ""
1063
- }
1064
- }
1065
- ]
1066
- },
1067
- "decimalDigits": {
1068
- "title": "小数位数",
1069
- "type": "number",
1070
- "default": 0,
1071
- "x-props": {
1072
- "max": 10,
1073
- "min": 0
1074
- },
1075
- "x-index": 370,
1076
- "x-linkages": [
1077
- {
1078
- "type": "value:state",
1079
- "target": "decimalDigits",
1080
- "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
1081
- "state": {
1082
- "value": 0
1083
- }
1084
- }
1085
- ]
1086
- },
1087
- "suffix": {
1088
- "title": "后缀",
1089
- "type": "string",
1090
- "default": "",
1091
- "x-index": 380
1092
- }
1093
- }
1094
- },
1095
- "events": [],
1096
- "meta": {
1097
- "title": "柱状图",
1098
- "description": "用于报表场景下展示数据之间大小的对比。",
1099
- "figureIcon": "../../figureIcons/Bar.svg",
1100
- "icon": "../../icons/Bar.svg",
1101
- "category": "图表",
1102
- "categoryOrder": 600,
1103
- "componentOrder": 550,
1104
- "visible": ["APP"],
1105
- "inlineStyleForm": {
1106
- "fontSize": {
1107
- "visible": false
1108
- },
1109
- "color": {
1110
- "visible": false
1111
- },
1112
- "fontWeight": {
1113
- "visible": false
1114
- },
1115
- "lineHeight": {
1116
- "visible": false
1117
- },
1118
- "justifyContent": {
1119
- "visible": false
1120
- },
1121
- "flexDirection": {
1122
- "visible": false
1123
- },
1124
- "border": {
1125
- "visible": false
1126
- },
1127
- "background": {
1128
- "visible": false
1129
- },
1130
- "boxShadow": {
1131
- "visible": false
1132
- },
1133
- "opacity": {
1134
- "visible": false
1135
- },
1136
- "alignItems": {
1137
- "visible": false
1138
- }
1139
- }
1140
- },
1141
- "configMeta": {
1142
- "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Bar"
1143
- }
1144
- }