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