@next-bricks/advanced 0.49.1 → 0.49.3

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.
@@ -345,425 +345,250 @@
345
345
  "insider": true
346
346
  },
347
347
  {
348
- "name": "eo-cascader",
349
- "alias": [
350
- "advanced.general-cascader"
351
- ],
348
+ "name": "eo-workbench-layout-v2",
352
349
  "properties": [
353
350
  {
354
- "name": "name",
355
- "type": "string"
356
- },
357
- {
358
- "name": "label",
351
+ "name": "cardTitle",
359
352
  "type": "string"
360
353
  },
361
354
  {
362
- "name": "required",
355
+ "name": "isEdit",
363
356
  "type": "boolean"
364
357
  },
365
358
  {
366
- "name": "options",
359
+ "name": "layouts",
367
360
  "attribute": false,
368
- "type": "AntdCascaderProps[\"options\"]"
361
+ "type": "ExtraLayout[]"
369
362
  },
370
363
  {
371
- "name": "fieldNames",
364
+ "name": "toolbarBricks",
372
365
  "attribute": false,
373
- "type": "AntdCascaderProps[\"fieldNames\"]",
374
- "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }"
366
+ "type": "{ useBrick: UseSingleBrickConf[] }"
375
367
  },
376
368
  {
377
- "name": "value",
369
+ "name": "componentList",
378
370
  "attribute": false,
379
- "type": "AntdCascaderProps[\"value\"]"
371
+ "type": "WorkbenchComponent[]"
380
372
  },
381
373
  {
382
- "name": "placeholder",
383
- "type": "string"
374
+ "name": "customDefaultCardConfigMap",
375
+ "description": "自定义卡片默认配置, 用于覆盖默认卡片配置",
376
+ "attribute": false,
377
+ "type": "Record<string, CardStyleConfig>"
384
378
  },
385
379
  {
386
- "name": "multiple",
380
+ "name": "showSettingButton",
381
+ "description": "description: 用于设置页面样式和布局的按钮",
387
382
  "type": "boolean"
388
383
  },
389
384
  {
390
- "name": "disabled",
391
- "type": "boolean"
392
- },
385
+ "name": "gap",
386
+ "description": "description: 卡片间隔",
387
+ "type": "number"
388
+ }
389
+ ],
390
+ "events": [
393
391
  {
394
- "name": "allowClear",
395
- "type": "boolean",
396
- "default": "true"
392
+ "name": "change",
393
+ "detail": {
394
+ "type": "ExtraLayout[]"
395
+ }
397
396
  },
398
397
  {
399
- "name": "showSearch",
400
- "type": "boolean",
401
- "default": "true"
398
+ "name": "save",
399
+ "detail": {
400
+ "type": "ExtraLayout[]"
401
+ }
402
402
  },
403
403
  {
404
- "name": "suffixIcon",
405
- "attribute": false,
406
- "type": "GeneralIconProps"
404
+ "name": "cancel",
405
+ "detail": {
406
+ "type": "void"
407
+ }
407
408
  },
408
409
  {
409
- "name": "expandTrigger",
410
- "type": "AntdCascaderProps[\"expandTrigger\"]",
411
- "default": "\"click\""
410
+ "name": "setting",
411
+ "detail": {
412
+ "type": "void"
413
+ }
412
414
  },
413
415
  {
414
- "name": "popupPlacement",
415
- "type": "AntdCascaderProps[\"placement\"]",
416
- "default": "\"bottomLeft\""
417
- },
416
+ "name": "action.click",
417
+ "description": "操作点击事件",
418
+ "detail": {
419
+ "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
420
+ "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
421
+ }
422
+ }
423
+ ],
424
+ "slots": [],
425
+ "methods": [
418
426
  {
419
- "name": "size",
420
- "type": "AntdCascaderProps[\"size\"]"
427
+ "name": "setLayouts",
428
+ "params": [
429
+ {
430
+ "name": "layouts",
431
+ "type": "Layout[]"
432
+ }
433
+ ]
434
+ }
435
+ ],
436
+ "parts": [],
437
+ "description": "工作台布局V2,未使用shadow dom"
438
+ },
439
+ {
440
+ "name": "eo-workbench-layout",
441
+ "properties": [
442
+ {
443
+ "name": "cardTitle",
444
+ "type": "string"
421
445
  },
422
446
  {
423
- "name": "limit",
424
- "type": "number",
425
- "default": "50"
447
+ "name": "isEdit",
448
+ "type": "boolean"
426
449
  },
427
450
  {
428
- "name": "maxTagCount",
451
+ "name": "layouts",
429
452
  "attribute": false,
430
- "type": "number | \"responsive\""
453
+ "type": "Layout[]"
431
454
  },
432
455
  {
433
- "name": "cascaderStyle",
456
+ "name": "componentList",
434
457
  "attribute": false,
435
- "type": "CSSProperties"
458
+ "type": "Item[]"
436
459
  }
437
460
  ],
438
461
  "events": [
439
462
  {
440
- "name": "cascader.change",
441
- "description": "",
463
+ "name": "change",
442
464
  "detail": {
443
- "description": "{ value: AntdCascaderProps[\"value\"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][] }",
444
- "type": "{\n value: AntdCascaderProps[\"value\"];\n selectedOptions: DefaultOptionType[] | DefaultOptionType[][];\n }"
465
+ "type": "Layout[]"
466
+ }
467
+ },
468
+ {
469
+ "name": "save",
470
+ "detail": {
471
+ "type": "Layout[]"
472
+ }
473
+ },
474
+ {
475
+ "name": "cancel",
476
+ "detail": {
477
+ "type": "void"
478
+ }
479
+ },
480
+ {
481
+ "name": "action.click",
482
+ "description": "操作点击事件",
483
+ "detail": {
484
+ "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
485
+ "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
445
486
  }
446
487
  }
447
488
  ],
448
489
  "slots": [],
449
- "methods": [],
490
+ "methods": [
491
+ {
492
+ "name": "setLayouts",
493
+ "params": [
494
+ {
495
+ "name": "layouts",
496
+ "type": "Layout[]"
497
+ }
498
+ ]
499
+ }
500
+ ],
450
501
  "parts": [],
451
- "description": "级联选择器",
452
- "category": "form-input-basic"
502
+ "description": "工作台布局",
503
+ "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
453
504
  },
454
505
  {
455
- "name": "eo-next-table",
506
+ "name": "eo-tree",
456
507
  "properties": [
457
- {
458
- "name": "rowKey",
459
- "description": "指定表格行的 key",
460
- "default": "\"key\"",
461
- "type": "string"
462
- },
463
- {
464
- "name": "columns",
465
- "description": "列定义",
466
- "attribute": false,
467
- "type": "Column[]"
468
- },
469
- {
470
- "name": "cell",
471
- "description": "单元格",
472
- "attribute": false,
473
- "type": "CellConfig"
474
- },
475
508
  {
476
509
  "name": "dataSource",
477
- "description": "数据源",
478
510
  "attribute": false,
479
- "type": "DataSource"
511
+ "type": "TreeNode[]"
480
512
  },
481
513
  {
482
- "name": "frontSearch",
483
- "description": "是否前端搜索",
514
+ "name": "checkable",
484
515
  "type": "boolean"
485
516
  },
486
517
  {
487
- "name": "pagination",
488
- "description": "分页配置",
489
- "attribute": false,
490
- "type": "PaginationType"
518
+ "name": "selectable",
519
+ "description": "",
520
+ "default": "true",
521
+ "type": "boolean"
491
522
  },
492
523
  {
493
- "name": "loading",
494
- "description": "显示加载中状态",
524
+ "name": "defaultExpandAll",
495
525
  "type": "boolean"
496
526
  },
497
527
  {
498
- "name": "multiSort",
499
- "description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
528
+ "name": "showLine",
500
529
  "type": "boolean"
501
530
  },
502
531
  {
503
- "name": "sort",
504
- "description": "排序信息",
532
+ "name": "expandedKeys",
505
533
  "attribute": false,
506
- "type": "Sort | Sort[]"
534
+ "type": "TreeNodeKey[]"
507
535
  },
508
536
  {
509
- "name": "rowSelection",
510
- "description": "表格行可选择配置",
537
+ "name": "checkedKeys",
511
538
  "attribute": false,
512
- "type": "RowSelectionType"
539
+ "type": "TreeNodeKey[]"
513
540
  },
514
541
  {
515
- "name": "selectedRowKeys",
516
- "description": "选中项的 key",
542
+ "name": "nodeDraggable",
517
543
  "attribute": false,
518
- "type": "(string | number)[]"
544
+ "type": "boolean | { icon?: false }"
519
545
  },
520
546
  {
521
- "name": "hiddenColumns",
522
- "description": "隐藏的列(输入对应的 column.key)",
547
+ "name": "switcherIcon",
523
548
  "attribute": false,
524
- "type": "(string | number)[]"
549
+ "type": "\"auto\" | \"chevron\" | false"
525
550
  },
526
551
  {
527
- "name": "expandable",
528
- "description": "表格行展开配置",
552
+ "name": "allowDrop",
529
553
  "attribute": false,
530
- "type": "ExpandableType"
554
+ "type": "((info: AllowDropInfo) => boolean)"
531
555
  },
532
556
  {
533
- "name": "expandedRowKeys",
534
- "description": "展开项的 key",
557
+ "name": "titleSuffixBrick",
535
558
  "attribute": false,
536
- "type": "(string | number)[]"
559
+ "type": "{ useBrick: UseBrickConf }"
560
+ }
561
+ ],
562
+ "events": [
563
+ {
564
+ "name": "check",
565
+ "detail": {
566
+ "type": "TreeNodeKey[]"
567
+ }
537
568
  },
538
569
  {
539
- "name": "childrenColumnName",
540
- "description": "树形结构的列名",
541
- "default": "\"children\"",
542
- "type": "string"
570
+ "name": "check.detail",
571
+ "detail": {
572
+ "type": "CheckDetail"
573
+ }
543
574
  },
544
575
  {
545
- "name": "rowDraggable",
546
- "description": "表格行拖拽配置",
547
- "type": "boolean"
576
+ "name": "expand",
577
+ "detail": {
578
+ "type": "TreeNodeKey[]"
579
+ }
548
580
  },
549
581
  {
550
- "name": "searchFields",
551
- "description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
552
- "attribute": false,
553
- "type": "(string | string[])[]"
554
- },
555
- {
556
- "name": "size",
557
- "description": "表格大小",
558
- "default": "\"large\"",
559
- "type": "TableProps<RecordType>[\"size\"]"
560
- },
561
- {
562
- "name": "showHeader",
563
- "description": "是否显示表头",
564
- "default": "true",
565
- "type": "boolean"
566
- },
567
- {
568
- "name": "bordered",
569
- "description": "是否显示边框",
570
- "type": "boolean"
571
- },
572
- {
573
- "name": "scrollConfig",
574
- "description": "滚动配置",
575
- "default": "{ x: true }",
576
- "attribute": false,
577
- "type": "TableScroll"
578
- },
579
- {
580
- "name": "optimizedColumns",
581
- "description": "优化渲染的列(输入对应的 column.key)",
582
- "attribute": false,
583
- "type": "(string | number)[]"
584
- },
585
- {
586
- "name": "themeVariant",
587
- "description": "主题变体",
588
- "type": "\"default\" | \"elevo\""
589
- }
590
- ],
591
- "events": [
592
- {
593
- "name": "page.change",
594
- "description": "page 或 pageSize 改变的回调",
595
- "detail": {
596
- "description": "改变后的页码及每页条数",
597
- "type": "{ page: number; pageSize: number }"
598
- }
599
- },
600
- {
601
- "name": "page.size.change",
602
- "description": "pageSize 变化的回调",
603
- "deprecated": "统一用 `page.change` 事件",
604
- "detail": {
605
- "description": "改变后的页码及每页条数",
606
- "type": "{\n page: number;\n pageSize: number;\n }"
607
- }
608
- },
609
- {
610
- "name": "sort.change",
611
- "description": "排序变化的回调",
612
- "detail": {
613
- "description": "当前排序的信息",
614
- "type": "Sort | Sort[] | undefined"
615
- }
616
- },
617
- {
618
- "name": "row.select",
619
- "description": "行选中项发生变化时的回调",
620
- "detail": {
621
- "description": "改变后的 rowKey 及行数据",
622
- "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
623
- }
624
- },
625
- {
626
- "name": "row.select.v2",
627
- "description": "行选中项发生变化时的回调(v2 版本)",
628
- "detail": {
629
- "description": "改变后的行数据",
630
- "type": "RecordType[]"
631
- }
632
- },
633
- {
634
- "name": "row.expand",
635
- "description": "点击展开图标时触发",
636
- "detail": {
637
- "description": "当前行的展开情况及数据",
638
- "type": "{\n expanded: boolean;\n record: RecordType;\n }"
639
- }
640
- },
641
- {
642
- "name": "expanded.rows.change",
643
- "description": "展开的行变化时触发",
644
- "detail": {
645
- "description": "所有展开行的 key",
646
- "type": "(string | number)[]"
647
- }
648
- },
649
- {
650
- "name": "row.drag",
651
- "description": "表格行拖拽结束发生的事件",
652
- "detail": {
653
- "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
654
- "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
655
- }
656
- }
657
- ],
658
- "slots": [],
659
- "methods": [
660
- {
661
- "name": "search",
662
- "params": [
663
- {
664
- "name": "params",
665
- "type": "{ q: string }"
666
- }
667
- ],
668
- "description": "前端搜索",
669
- "returns": {}
670
- }
671
- ],
672
- "parts": [],
673
- "description": "大型表格",
674
- "category": "table"
675
- },
676
- {
677
- "name": "eo-workbench-layout-v2",
678
- "properties": [
679
- {
680
- "name": "cardTitle",
681
- "type": "string"
682
- },
683
- {
684
- "name": "isEdit",
685
- "type": "boolean"
686
- },
687
- {
688
- "name": "layouts",
689
- "attribute": false,
690
- "type": "ExtraLayout[]"
691
- },
692
- {
693
- "name": "toolbarBricks",
694
- "attribute": false,
695
- "type": "{ useBrick: UseSingleBrickConf[] }"
696
- },
697
- {
698
- "name": "componentList",
699
- "attribute": false,
700
- "type": "WorkbenchComponent[]"
701
- },
702
- {
703
- "name": "customDefaultCardConfigMap",
704
- "description": "自定义卡片默认配置, 用于覆盖默认卡片配置",
705
- "attribute": false,
706
- "type": "Record<string, CardStyleConfig>"
707
- },
708
- {
709
- "name": "showSettingButton",
710
- "description": "description: 用于设置页面样式和布局的按钮",
711
- "type": "boolean"
712
- },
713
- {
714
- "name": "gap",
715
- "description": "description: 卡片间隔",
716
- "type": "number"
717
- }
718
- ],
719
- "events": [
720
- {
721
- "name": "change",
722
- "detail": {
723
- "type": "ExtraLayout[]"
724
- }
725
- },
726
- {
727
- "name": "save",
728
- "detail": {
729
- "type": "ExtraLayout[]"
730
- }
731
- },
732
- {
733
- "name": "cancel",
734
- "detail": {
735
- "type": "void"
736
- }
737
- },
738
- {
739
- "name": "setting",
740
- "detail": {
741
- "type": "void"
742
- }
743
- },
744
- {
745
- "name": "action.click",
746
- "description": "操作点击事件",
582
+ "name": "node.drop",
747
583
  "detail": {
748
- "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
749
- "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
584
+ "type": "DropDetail"
750
585
  }
751
586
  }
752
587
  ],
753
588
  "slots": [],
754
- "methods": [
755
- {
756
- "name": "setLayouts",
757
- "params": [
758
- {
759
- "name": "layouts",
760
- "type": "Layout[]"
761
- }
762
- ]
763
- }
764
- ],
589
+ "methods": [],
765
590
  "parts": [],
766
- "description": "工作台布局V2,未使用shadow dom"
591
+ "description": "树形构件"
767
592
  },
768
593
  {
769
594
  "name": "eo-tree-select",
@@ -905,207 +730,382 @@
905
730
  "category": "form-input-basic"
906
731
  },
907
732
  {
908
- "name": "eo-tree",
733
+ "name": "advanced.pdf-viewer",
909
734
  "properties": [
910
735
  {
911
- "name": "dataSource",
912
- "attribute": false,
913
- "type": "TreeNode[]"
736
+ "name": "url",
737
+ "type": "string"
914
738
  },
915
739
  {
916
- "name": "checkable",
917
- "type": "boolean"
740
+ "name": "page",
741
+ "type": "number"
918
742
  },
919
743
  {
920
- "name": "selectable",
921
- "description": "",
922
- "default": "true",
923
- "type": "boolean"
744
+ "name": "search",
745
+ "type": "string"
924
746
  },
925
747
  {
926
- "name": "defaultExpandAll",
927
- "type": "boolean"
928
- },
748
+ "name": "viewerStyle",
749
+ "attribute": false,
750
+ "type": "React.CSSProperties"
751
+ }
752
+ ],
753
+ "events": [],
754
+ "slots": [],
755
+ "methods": [],
756
+ "parts": [],
757
+ "description": "构件 `advanced.pdf-viewer`"
758
+ },
759
+ {
760
+ "name": "eo-text-tooltip",
761
+ "properties": [
929
762
  {
930
- "name": "showLine",
931
- "type": "boolean"
763
+ "name": "label",
764
+ "description": "文案",
765
+ "default": null,
766
+ "type": "string"
932
767
  },
933
768
  {
934
- "name": "expandedKeys",
935
- "attribute": false,
936
- "type": "TreeNodeKey[]"
769
+ "name": "lineClamp",
770
+ "description": "省略行数",
771
+ "default": "1",
772
+ "type": "number"
773
+ }
774
+ ],
775
+ "events": [],
776
+ "slots": [],
777
+ "methods": [],
778
+ "parts": [],
779
+ "description": "超出宽度鼠标悬浮显示tooltip\n构件 `eo-text-tooltip`"
780
+ },
781
+ {
782
+ "name": "eo-cascader",
783
+ "alias": [
784
+ "advanced.general-cascader"
785
+ ],
786
+ "properties": [
787
+ {
788
+ "name": "name",
789
+ "type": "string"
937
790
  },
938
791
  {
939
- "name": "checkedKeys",
940
- "attribute": false,
941
- "type": "TreeNodeKey[]"
792
+ "name": "label",
793
+ "type": "string"
942
794
  },
943
795
  {
944
- "name": "nodeDraggable",
796
+ "name": "required",
797
+ "type": "boolean"
798
+ },
799
+ {
800
+ "name": "options",
945
801
  "attribute": false,
946
- "type": "boolean | { icon?: false }"
802
+ "type": "AntdCascaderProps[\"options\"]"
947
803
  },
948
804
  {
949
- "name": "switcherIcon",
805
+ "name": "fieldNames",
950
806
  "attribute": false,
951
- "type": "\"auto\" | \"chevron\" | false"
807
+ "type": "AntdCascaderProps[\"fieldNames\"]",
808
+ "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }"
952
809
  },
953
810
  {
954
- "name": "allowDrop",
811
+ "name": "value",
955
812
  "attribute": false,
956
- "type": "((info: AllowDropInfo) => boolean)"
813
+ "type": "AntdCascaderProps[\"value\"]"
957
814
  },
958
815
  {
959
- "name": "titleSuffixBrick",
816
+ "name": "placeholder",
817
+ "type": "string"
818
+ },
819
+ {
820
+ "name": "multiple",
821
+ "type": "boolean"
822
+ },
823
+ {
824
+ "name": "disabled",
825
+ "type": "boolean"
826
+ },
827
+ {
828
+ "name": "allowClear",
829
+ "type": "boolean",
830
+ "default": "true"
831
+ },
832
+ {
833
+ "name": "showSearch",
834
+ "type": "boolean",
835
+ "default": "true"
836
+ },
837
+ {
838
+ "name": "suffixIcon",
960
839
  "attribute": false,
961
- "type": "{ useBrick: UseBrickConf }"
962
- }
963
- ],
964
- "events": [
840
+ "type": "GeneralIconProps"
841
+ },
965
842
  {
966
- "name": "check",
967
- "detail": {
968
- "type": "TreeNodeKey[]"
969
- }
843
+ "name": "expandTrigger",
844
+ "type": "AntdCascaderProps[\"expandTrigger\"]",
845
+ "default": "\"click\""
970
846
  },
971
847
  {
972
- "name": "check.detail",
973
- "detail": {
974
- "type": "CheckDetail"
975
- }
848
+ "name": "popupPlacement",
849
+ "type": "AntdCascaderProps[\"placement\"]",
850
+ "default": "\"bottomLeft\""
976
851
  },
977
852
  {
978
- "name": "expand",
979
- "detail": {
980
- "type": "TreeNodeKey[]"
981
- }
853
+ "name": "size",
854
+ "type": "AntdCascaderProps[\"size\"]"
982
855
  },
983
856
  {
984
- "name": "node.drop",
857
+ "name": "limit",
858
+ "type": "number",
859
+ "default": "50"
860
+ },
861
+ {
862
+ "name": "maxTagCount",
863
+ "attribute": false,
864
+ "type": "number | \"responsive\""
865
+ },
866
+ {
867
+ "name": "cascaderStyle",
868
+ "attribute": false,
869
+ "type": "CSSProperties"
870
+ }
871
+ ],
872
+ "events": [
873
+ {
874
+ "name": "cascader.change",
875
+ "description": "",
985
876
  "detail": {
986
- "type": "DropDetail"
877
+ "description": "{ value: AntdCascaderProps[\"value\"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][] }",
878
+ "type": "{\n value: AntdCascaderProps[\"value\"];\n selectedOptions: DefaultOptionType[] | DefaultOptionType[][];\n }"
987
879
  }
988
880
  }
989
881
  ],
990
882
  "slots": [],
991
883
  "methods": [],
992
884
  "parts": [],
993
- "description": "树形构件"
885
+ "description": "级联选择器",
886
+ "category": "form-input-basic"
994
887
  },
995
888
  {
996
- "name": "eo-workbench-layout",
889
+ "name": "eo-next-table",
997
890
  "properties": [
998
891
  {
999
- "name": "cardTitle",
892
+ "name": "rowKey",
893
+ "description": "指定表格行的 key",
894
+ "default": "\"key\"",
1000
895
  "type": "string"
1001
896
  },
1002
897
  {
1003
- "name": "isEdit",
898
+ "name": "columns",
899
+ "description": "列定义",
900
+ "attribute": false,
901
+ "type": "Column[]"
902
+ },
903
+ {
904
+ "name": "cell",
905
+ "description": "单元格",
906
+ "attribute": false,
907
+ "type": "CellConfig"
908
+ },
909
+ {
910
+ "name": "dataSource",
911
+ "description": "数据源",
912
+ "attribute": false,
913
+ "type": "DataSource"
914
+ },
915
+ {
916
+ "name": "frontSearch",
917
+ "description": "是否前端搜索",
1004
918
  "type": "boolean"
1005
919
  },
1006
920
  {
1007
- "name": "layouts",
921
+ "name": "pagination",
922
+ "description": "分页配置",
1008
923
  "attribute": false,
1009
- "type": "Layout[]"
924
+ "type": "PaginationType"
1010
925
  },
1011
926
  {
1012
- "name": "componentList",
927
+ "name": "loading",
928
+ "description": "显示加载中状态",
929
+ "type": "boolean"
930
+ },
931
+ {
932
+ "name": "multiSort",
933
+ "description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
934
+ "type": "boolean"
935
+ },
936
+ {
937
+ "name": "sort",
938
+ "description": "排序信息",
1013
939
  "attribute": false,
1014
- "type": "Item[]"
940
+ "type": "Sort | Sort[]"
941
+ },
942
+ {
943
+ "name": "rowSelection",
944
+ "description": "表格行可选择配置",
945
+ "attribute": false,
946
+ "type": "RowSelectionType"
947
+ },
948
+ {
949
+ "name": "selectedRowKeys",
950
+ "description": "选中项的 key",
951
+ "attribute": false,
952
+ "type": "(string | number)[]"
953
+ },
954
+ {
955
+ "name": "hiddenColumns",
956
+ "description": "隐藏的列(输入对应的 column.key)",
957
+ "attribute": false,
958
+ "type": "(string | number)[]"
959
+ },
960
+ {
961
+ "name": "expandable",
962
+ "description": "表格行展开配置",
963
+ "attribute": false,
964
+ "type": "ExpandableType"
965
+ },
966
+ {
967
+ "name": "expandedRowKeys",
968
+ "description": "展开项的 key",
969
+ "attribute": false,
970
+ "type": "(string | number)[]"
971
+ },
972
+ {
973
+ "name": "childrenColumnName",
974
+ "description": "树形结构的列名",
975
+ "default": "\"children\"",
976
+ "type": "string"
977
+ },
978
+ {
979
+ "name": "rowDraggable",
980
+ "description": "表格行拖拽配置",
981
+ "type": "boolean"
982
+ },
983
+ {
984
+ "name": "searchFields",
985
+ "description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
986
+ "attribute": false,
987
+ "type": "(string | string[])[]"
988
+ },
989
+ {
990
+ "name": "size",
991
+ "description": "表格大小",
992
+ "default": "\"large\"",
993
+ "type": "TableProps<RecordType>[\"size\"]"
994
+ },
995
+ {
996
+ "name": "showHeader",
997
+ "description": "是否显示表头",
998
+ "default": "true",
999
+ "type": "boolean"
1000
+ },
1001
+ {
1002
+ "name": "bordered",
1003
+ "description": "是否显示边框",
1004
+ "type": "boolean"
1005
+ },
1006
+ {
1007
+ "name": "scrollConfig",
1008
+ "description": "滚动配置",
1009
+ "default": "{ x: true }",
1010
+ "attribute": false,
1011
+ "type": "TableScroll"
1012
+ },
1013
+ {
1014
+ "name": "optimizedColumns",
1015
+ "description": "优化渲染的列(输入对应的 column.key)",
1016
+ "attribute": false,
1017
+ "type": "(string | number)[]"
1018
+ },
1019
+ {
1020
+ "name": "themeVariant",
1021
+ "description": "主题变体",
1022
+ "type": "\"default\" | \"elevo\""
1015
1023
  }
1016
1024
  ],
1017
1025
  "events": [
1018
1026
  {
1019
- "name": "change",
1027
+ "name": "page.change",
1028
+ "description": "page 或 pageSize 改变的回调",
1020
1029
  "detail": {
1021
- "type": "Layout[]"
1030
+ "description": "改变后的页码及每页条数",
1031
+ "type": "{ page: number; pageSize: number }"
1022
1032
  }
1023
1033
  },
1024
1034
  {
1025
- "name": "save",
1035
+ "name": "page.size.change",
1036
+ "description": "pageSize 变化的回调",
1037
+ "deprecated": "统一用 `page.change` 事件",
1026
1038
  "detail": {
1027
- "type": "Layout[]"
1039
+ "description": "改变后的页码及每页条数",
1040
+ "type": "{\n page: number;\n pageSize: number;\n }"
1028
1041
  }
1029
1042
  },
1030
1043
  {
1031
- "name": "cancel",
1044
+ "name": "sort.change",
1045
+ "description": "排序变化的回调",
1032
1046
  "detail": {
1033
- "type": "void"
1047
+ "description": "当前排序的信息",
1048
+ "type": "Sort | Sort[] | undefined"
1034
1049
  }
1035
1050
  },
1036
1051
  {
1037
- "name": "action.click",
1038
- "description": "操作点击事件",
1052
+ "name": "row.select",
1053
+ "description": "行选中项发生变化时的回调",
1039
1054
  "detail": {
1040
- "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
1041
- "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
1055
+ "description": "改变后的 rowKey 及行数据",
1056
+ "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
1042
1057
  }
1043
- }
1044
- ],
1045
- "slots": [],
1046
- "methods": [
1047
- {
1048
- "name": "setLayouts",
1049
- "params": [
1050
- {
1051
- "name": "layouts",
1052
- "type": "Layout[]"
1053
- }
1054
- ]
1055
- }
1056
- ],
1057
- "parts": [],
1058
- "description": "工作台布局",
1059
- "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
1060
- },
1061
- {
1062
- "name": "eo-text-tooltip",
1063
- "properties": [
1064
- {
1065
- "name": "label",
1066
- "description": "文案",
1067
- "default": null,
1068
- "type": "string"
1069
1058
  },
1070
1059
  {
1071
- "name": "lineClamp",
1072
- "description": "省略行数",
1073
- "default": "1",
1074
- "type": "number"
1075
- }
1076
- ],
1077
- "events": [],
1078
- "slots": [],
1079
- "methods": [],
1080
- "parts": [],
1081
- "description": "超出宽度鼠标悬浮显示tooltip\n构件 `eo-text-tooltip`"
1082
- },
1083
- {
1084
- "name": "advanced.pdf-viewer",
1085
- "properties": [
1086
- {
1087
- "name": "url",
1088
- "type": "string"
1060
+ "name": "row.select.v2",
1061
+ "description": "行选中项发生变化时的回调(v2 版本)",
1062
+ "detail": {
1063
+ "description": "改变后的行数据",
1064
+ "type": "RecordType[]"
1065
+ }
1089
1066
  },
1090
1067
  {
1091
- "name": "page",
1092
- "type": "number"
1068
+ "name": "row.expand",
1069
+ "description": "点击展开图标时触发",
1070
+ "detail": {
1071
+ "description": "当前行的展开情况及数据",
1072
+ "type": "{\n expanded: boolean;\n record: RecordType;\n }"
1073
+ }
1093
1074
  },
1094
1075
  {
1095
- "name": "search",
1096
- "type": "string"
1076
+ "name": "expanded.rows.change",
1077
+ "description": "展开的行变化时触发",
1078
+ "detail": {
1079
+ "description": "所有展开行的 key",
1080
+ "type": "(string | number)[]"
1081
+ }
1097
1082
  },
1098
1083
  {
1099
- "name": "viewerStyle",
1100
- "attribute": false,
1101
- "type": "React.CSSProperties"
1084
+ "name": "row.drag",
1085
+ "description": "表格行拖拽结束发生的事件",
1086
+ "detail": {
1087
+ "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
1088
+ "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
1089
+ }
1102
1090
  }
1103
1091
  ],
1104
- "events": [],
1105
1092
  "slots": [],
1106
- "methods": [],
1093
+ "methods": [
1094
+ {
1095
+ "name": "search",
1096
+ "params": [
1097
+ {
1098
+ "name": "params",
1099
+ "type": "{ q: string }"
1100
+ }
1101
+ ],
1102
+ "description": "前端搜索",
1103
+ "returns": {}
1104
+ }
1105
+ ],
1107
1106
  "parts": [],
1108
- "description": "构件 `advanced.pdf-viewer`"
1107
+ "description": "大型表格",
1108
+ "category": "table"
1109
1109
  }
1110
1110
  ],
1111
1111
  "providers": [