@cloudbase/weda-ui 3.4.4 → 3.4.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.
Files changed (41) hide show
  1. package/dist/configs/components/chart/bar.json +113 -8
  2. package/dist/configs/components/chart/line.js +113 -8
  3. package/dist/configs/components/chart/pie.json +113 -8
  4. package/dist/configs/components/chart/statisticsCard.json +57 -0
  5. package/dist/configs/components/dataView.js +7 -7
  6. package/dist/configs/components/graphicCard.json +1 -1
  7. package/dist/configs/components/listView.js +113 -9
  8. package/dist/configs/components/navLayout.json +1 -1
  9. package/dist/configs/components/table.json +124 -9
  10. package/dist/style/index.scss +1 -1
  11. package/dist/web/components/chart/common/data-transform.js +1 -1
  12. package/dist/web/components/chart/statisticsCard/index.js +1 -1
  13. package/dist/web/components/flow/components/UserSelectModel/UserSelect.js +9 -11
  14. package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.js +2 -6
  15. package/dist/web/components/flow/modules/chart/index.css +0 -3
  16. package/dist/web/components/flow/modules/control/ApprovalPopup.js +2 -3
  17. package/dist/web/components/flow/modules/control/Control.js +27 -15
  18. package/dist/web/components/flow/modules/control/ControlMobile.css +32 -0
  19. package/dist/web/components/flow/modules/control/ControlMobile.js +28 -13
  20. package/dist/web/components/flow/modules/control/FlowTaskInfoModal.js +4 -4
  21. package/dist/web/components/flow/modules/control/provider/useControlModel.js +2 -6
  22. package/dist/web/components/flow/modules/control/provider/useMobileModel.js +0 -2
  23. package/dist/web/components/flow/modules/control/provider/useRevokeAndBackHook.js +2 -0
  24. package/dist/web/components/flow/modules/control/utils/index.js +1 -0
  25. package/dist/web/components/flow/modules/control/utils/tools.js +3 -0
  26. package/dist/web/components/form/select/dropdown-select/h5.js +1 -1
  27. package/dist/web/components/form/select/dropdown-select/index.css +7 -0
  28. package/dist/web/components/form/select/index.js +2 -7
  29. package/dist/web/components/form/textarea/index.js +1 -1
  30. package/dist/web/components/form/uploaderFile/index.css +6 -5
  31. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +10 -11
  32. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +3 -2
  33. package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +39 -22
  34. package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.js +11 -2
  35. package/dist/web/components/listView/index.js +94 -97
  36. package/dist/web/components/richTextView/index.css +2 -0
  37. package/dist/web/components/swiper/index.js +14 -8
  38. package/dist/web/components/table/BaseTable.js +3 -3
  39. package/dist/web/utils/hooks/use-cloud-id-temp-url.js +2 -1
  40. package/dist/web/utils/platform.js +9 -1
  41. package/package.json +3 -3
@@ -180,7 +180,7 @@
180
180
  ],
181
181
  "x-index": 1,
182
182
  "x-component": "list",
183
- "remarks": "配置图文卡片的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapsSatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
183
+ "remarks": "配置图文卡片的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapStatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
184
184
  },
185
185
  "textAlign": {
186
186
  "title": "对齐",
@@ -470,7 +470,7 @@ export default {
470
470
  value: 'data-model',
471
471
  },
472
472
  {
473
- label: '自定义APIs',
473
+ label: 'APIs',
474
474
  value: 'custom-connector',
475
475
  },
476
476
  ],
@@ -508,7 +508,9 @@ export default {
508
508
  type: 'value:schema',
509
509
  target: 'connectorMethod',
510
510
  schema: {
511
- 'x-component-props': '{{{connector:$value}}}',
511
+ 'x-component-props': {
512
+ connector: '{{$self.value}}',
513
+ },
512
514
  },
513
515
  },
514
516
  ],
@@ -525,8 +527,8 @@ export default {
525
527
  },
526
528
  {
527
529
  value: 'custom-connector',
528
- text: '自定义APIs',
529
- label: '自定义APIs',
530
+ text: 'APIs',
531
+ label: 'APIs',
530
532
  icon: 'custom-connector',
531
533
  isShow: true,
532
534
  },
@@ -622,7 +624,7 @@ export default {
622
624
  remarks: '展示模型数据的数据来源',
623
625
  },
624
626
  bindConnectMetadata: {
625
- title: '自定义APIs',
627
+ title: 'APIs',
626
628
  type: 'object',
627
629
  'x-component': 'connector-select',
628
630
  'x-index': 12,
@@ -633,14 +635,16 @@ export default {
633
635
  type: 'value:schema',
634
636
  target: 'connectorMethod',
635
637
  schema: {
636
- 'x-component-props': '{{{value:$value}}}',
638
+ 'x-component-props': {
639
+ value: '{{$self.value}}',
640
+ },
637
641
  },
638
642
  },
639
643
  ],
640
644
  'x-props': {
641
645
  'data-hidebind': true,
642
646
  },
643
- remarks: '展示数据的自定义APIs来源选择',
647
+ remarks: '展示数据的APIs来源选择',
644
648
  },
645
649
  connectorMethod: {
646
650
  title: '调用方法',
@@ -649,17 +653,117 @@ export default {
649
653
  'x-index': 16,
650
654
  'x-category': '基础属性',
651
655
  required: true,
656
+ 'x-component-props': {
657
+ paramsSchema: {
658
+ type: 'object',
659
+ properties: {
660
+ inParams: {
661
+ type: 'object',
662
+ properties: {
663
+ properties: {
664
+ type: 'object',
665
+ properties: {
666
+ pageNo: {
667
+ type: 'object',
668
+ properties: {
669
+ type: { const: 'number' },
670
+ },
671
+ required: ['type'],
672
+ },
673
+ pageSize: {
674
+ type: 'object',
675
+ properties: {
676
+ type: { const: 'number' },
677
+ },
678
+ required: ['type'],
679
+ },
680
+ orderBy: {
681
+ type: 'object',
682
+ properties: {
683
+ type: { const: 'string' },
684
+ },
685
+ },
686
+ orderType: {
687
+ type: 'object',
688
+ properties: {
689
+ type: { const: 'string' },
690
+ },
691
+ },
692
+ },
693
+ required: ['pageNo', 'pageSize'],
694
+ },
695
+ },
696
+ },
697
+ outParams: {
698
+ type: 'object',
699
+ properties: {
700
+ properties: {
701
+ type: 'object',
702
+ properties: {
703
+ total: {
704
+ type: 'object',
705
+ properties: {
706
+ type: { const: 'number' },
707
+ },
708
+ },
709
+ records: {
710
+ type: 'object',
711
+ properties: {
712
+ type: { const: 'array' },
713
+ items: {
714
+ type: 'object',
715
+ properties: {
716
+ type: {
717
+ const: 'object',
718
+ },
719
+ properties: {
720
+ type: 'object',
721
+ properties: {
722
+ _id: {
723
+ type: 'object',
724
+ properties: {
725
+ type: {
726
+ const: 'string',
727
+ },
728
+ },
729
+ },
730
+ },
731
+ },
732
+ },
733
+ },
734
+ },
735
+ },
736
+ },
737
+ required: ['total', 'records'],
738
+ },
739
+ },
740
+ },
741
+ },
742
+ },
743
+ docUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView#%E8%B0%83%E7%94%A8-apis-%E7%9A%84%E5%8F%82%E6%95%B0%E8%A6%81%E6%B1%82',
744
+ },
652
745
  'x-props': {
653
746
  'data-hidebind': true,
654
747
  },
655
- remarks: '展示数据的自定义APIs调用方法选择',
748
+ 'x-helper-text': '方法的出入参需满足组件要求,[查看文档](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView#%E8%B0%83%E7%94%A8-apis-%E7%9A%84%E5%8F%82%E6%95%B0%E8%A6%81%E6%B1%82)',
749
+ 'x-helper-text-color': '#E37318',
750
+ remarks: '展示数据的APIs调用方法选择',
656
751
  },
657
752
  connectorParams: {
658
753
  title: '查询入参',
659
754
  type: 'string',
660
755
  'x-index': 18,
661
756
  'x-category': '基础属性',
662
- remarks: "对自定义APIs调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}",
757
+ remarks: "APIs调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}",
758
+ 'x-component': 'property-object-params-field',
759
+ 'x-component-props': {
760
+ dataSourceKeyName: 'bindConnectMetadata',
761
+ dataSourceValuePath: 'datasource.name',
762
+ methodNameKeyName: 'connectorMethod',
763
+ methodValuePath: 'name',
764
+ paramsKeyName: 'connectorParams',
765
+ },
766
+ 'x-helper-text': '当配置了「显示条数」属性后,pageSize参数将不会生效',
663
767
  },
664
768
  where: {
665
769
  'x-index': 20,
@@ -228,7 +228,7 @@
228
228
  ],
229
229
  "x-index": 1,
230
230
  "x-component": "list",
231
- "remarks": "配置宫格导航的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapsSatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
231
+ "remarks": "配置宫格导航的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapStatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
232
232
  },
233
233
  "fontWeight": {
234
234
  "type": "string",
@@ -14,7 +14,7 @@
14
14
  "value": "data-model"
15
15
  },
16
16
  {
17
- "label": "自定义APIs",
17
+ "label": "APIs",
18
18
  "value": "custom-connector"
19
19
  }
20
20
  ],
@@ -52,7 +52,9 @@
52
52
  "type": "value:schema",
53
53
  "target": "connectorMethod",
54
54
  "schema": {
55
- "x-component-props": "{{{connector:$value}}}"
55
+ "x-component-props": {
56
+ "connector": "{{$self.value}}"
57
+ }
56
58
  }
57
59
  },
58
60
  {
@@ -92,8 +94,8 @@
92
94
  },
93
95
  {
94
96
  "value": "custom-connector",
95
- "text": "自定义APIs",
96
- "label": "自定义APIs",
97
+ "text": "APIs",
98
+ "label": "APIs",
97
99
  "icon": "custom-connector",
98
100
  "isShow": true
99
101
  }
@@ -373,11 +375,13 @@
373
375
  "type": "value:schema",
374
376
  "target": "connectorMethod",
375
377
  "schema": {
376
- "x-component-props": "{{{value:$value}}}"
378
+ "x-component-props": {
379
+ "value": "{{$self.value}}"
380
+ }
377
381
  }
378
382
  }
379
383
  ],
380
- "description": "展示数据的自定义 APIs 来源选择"
384
+ "description": "展示数据的 APIs 来源选择"
381
385
  },
382
386
  "connectorMethod": {
383
387
  "title": "调用方法",
@@ -402,14 +406,125 @@
402
406
  }
403
407
  }
404
408
  ],
405
- "description": "进行数据的自定义 APIs 调用方法选择"
409
+ "x-component-props": {
410
+ "docUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ModelTable#%E8%B0%83%E7%94%A8-apis-%E7%9A%84%E5%8F%82%E6%95%B0%E8%A6%81%E6%B1%82",
411
+ "paramsSchema": {
412
+ "type": "object",
413
+ "properties": {
414
+ "inParams": {
415
+ "type": "object",
416
+ "properties": {
417
+ "properties": {
418
+ "type": "object",
419
+ "properties": {
420
+ "pageNo": {
421
+ "type": "object",
422
+ "properties": {
423
+ "type": {
424
+ "const": "number"
425
+ }
426
+ },
427
+ "required": ["type"]
428
+ },
429
+ "pageSize": {
430
+ "type": "object",
431
+ "properties": {
432
+ "type": {
433
+ "const": "number"
434
+ }
435
+ },
436
+ "required": ["type"]
437
+ },
438
+ "orderBy": {
439
+ "type": "object",
440
+ "properties": {
441
+ "type": {
442
+ "const": "string"
443
+ }
444
+ }
445
+ },
446
+ "orderType": {
447
+ "type": "object",
448
+ "properties": {
449
+ "type": {
450
+ "const": "string"
451
+ }
452
+ }
453
+ }
454
+ },
455
+ "required": ["pageNo", "pageSize"]
456
+ }
457
+ }
458
+ },
459
+ "outParams": {
460
+ "type": "object",
461
+ "properties": {
462
+ "properties": {
463
+ "type": "object",
464
+ "properties": {
465
+ "total": {
466
+ "type": "object",
467
+ "properties": {
468
+ "type": {
469
+ "const": "number"
470
+ }
471
+ }
472
+ },
473
+ "records": {
474
+ "type": "object",
475
+ "properties": {
476
+ "type": {
477
+ "const": "array"
478
+ },
479
+ "items": {
480
+ "type": "object",
481
+ "properties": {
482
+ "type": {
483
+ "const": "object"
484
+ },
485
+ "properties": {
486
+ "type": "object",
487
+ "properties": {
488
+ "_id": {
489
+ "type": "object",
490
+ "properties": {
491
+ "type": {
492
+ "const": "string"
493
+ }
494
+ }
495
+ }
496
+ }
497
+ }
498
+ }
499
+ }
500
+ }
501
+ }
502
+ },
503
+ "required": ["total", "records"]
504
+ }
505
+ }
506
+ }
507
+ }
508
+ }
509
+ },
510
+ "x-helper-text": "方法的出入参需满足组件要求,[查看文档](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ModelTable#%E8%B0%83%E7%94%A8-apis-%E7%9A%84%E5%8F%82%E6%95%B0%E8%A6%81%E6%B1%82)",
511
+ "x-helper-text-color": "#E37318",
512
+ "description": "进行数据的 APIs 调用方法选择"
406
513
  },
407
514
  "connectorParams": {
408
515
  "title": "查询入参",
409
516
  "type": "string",
410
517
  "x-index": 60,
411
518
  "x-category": "基础属性",
412
- "description": "对自定义 APIs 调用方法获取的数据进行筛选过滤。例如 {name:'',value:''}"
519
+ "description": " APIs 调用方法获取的数据进行筛选过滤。例如 {name:'',value:''}",
520
+ "x-component": "property-object-params-field",
521
+ "x-component-props": {
522
+ "dataSourceKeyName": "bindConnectMetadata",
523
+ "dataSourceValuePath": "datasource.name",
524
+ "methodNameKeyName": "connectorMethod",
525
+ "methodValuePath": "name",
526
+ "paramsKeyName": "connectorParams"
527
+ }
413
528
  },
414
529
  "isOrderBy": {
415
530
  "title": "显示排序按钮",
@@ -418,7 +533,7 @@
418
533
  "default": true,
419
534
  "x-category": "基础属性",
420
535
  "x-platforms": ["PCWEB"],
421
- "description": "对自定义 APIs 调用方法填充的表格列头排序图标进行显隐控制 "
536
+ "description": " APIs 调用方法填充的表格列头排序图标进行显隐控制 "
422
537
  },
423
538
  "columnSets": {
424
539
  "type": "array",