@next-bricks/advanced 0.51.1 → 0.51.2
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.
- package/dist/bricks.json +6 -6
- package/dist/chunks/8382.d552299f.js.map +1 -1
- package/dist/chunks/eo-cascader.86a685ca.js.map +1 -1
- package/dist/chunks/eo-next-table.25f4bf4d.js.map +1 -1
- package/dist/chunks/eo-table.5dd09651.js.map +1 -1
- package/dist/examples.json +3 -3
- package/dist/{index.d63b126d.js → index.d1112026.js} +2 -2
- package/dist/{index.d63b126d.js.map → index.d1112026.js.map} +1 -1
- package/dist/manifest.json +235 -235
- package/dist-types/cascader/index.d.ts +9 -0
- package/dist-types/next-table/index.d.ts +30 -0
- package/dist-types/table/index.d.ts +30 -0
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -451,6 +451,241 @@
|
|
|
451
451
|
"description": "级联选择器",
|
|
452
452
|
"category": "form-input-basic"
|
|
453
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"name": "eo-next-table",
|
|
456
|
+
"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
|
+
{
|
|
476
|
+
"name": "dataSource",
|
|
477
|
+
"description": "数据源",
|
|
478
|
+
"attribute": false,
|
|
479
|
+
"type": "DataSource"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "frontSearch",
|
|
483
|
+
"description": "是否前端搜索",
|
|
484
|
+
"type": "boolean"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "pagination",
|
|
488
|
+
"description": "分页配置",
|
|
489
|
+
"attribute": false,
|
|
490
|
+
"type": "PaginationType"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "loading",
|
|
494
|
+
"description": "显示加载中状态",
|
|
495
|
+
"type": "boolean"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "multiSort",
|
|
499
|
+
"description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
|
|
500
|
+
"type": "boolean"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "sort",
|
|
504
|
+
"description": "排序信息",
|
|
505
|
+
"attribute": false,
|
|
506
|
+
"type": "Sort | Sort[]"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "rowSelection",
|
|
510
|
+
"description": "表格行可选择配置",
|
|
511
|
+
"attribute": false,
|
|
512
|
+
"type": "RowSelectionType"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "selectedRowKeys",
|
|
516
|
+
"description": "选中项的 key",
|
|
517
|
+
"attribute": false,
|
|
518
|
+
"type": "(string | number)[]"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "hiddenColumns",
|
|
522
|
+
"description": "隐藏的列(输入对应的 column.key)",
|
|
523
|
+
"attribute": false,
|
|
524
|
+
"type": "(string | number)[]"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "expandable",
|
|
528
|
+
"description": "表格行展开配置",
|
|
529
|
+
"attribute": false,
|
|
530
|
+
"type": "ExpandableType"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "expandedRowKeys",
|
|
534
|
+
"description": "展开项的 key",
|
|
535
|
+
"attribute": false,
|
|
536
|
+
"type": "(string | number)[]"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "childrenColumnName",
|
|
540
|
+
"description": "树形结构的列名",
|
|
541
|
+
"default": "\"children\"",
|
|
542
|
+
"type": "string"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "rowDraggable",
|
|
546
|
+
"description": "表格行拖拽配置",
|
|
547
|
+
"type": "boolean"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "rowClickable",
|
|
551
|
+
"description": "表格行可点击(激活鼠标手势)",
|
|
552
|
+
"type": "boolean"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "searchFields",
|
|
556
|
+
"description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
|
|
557
|
+
"attribute": false,
|
|
558
|
+
"type": "(string | string[])[]"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "size",
|
|
562
|
+
"description": "表格大小",
|
|
563
|
+
"default": "\"large\"",
|
|
564
|
+
"type": "TableProps<RecordType>[\"size\"]"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "showHeader",
|
|
568
|
+
"description": "是否显示表头",
|
|
569
|
+
"default": "true",
|
|
570
|
+
"type": "boolean"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "bordered",
|
|
574
|
+
"description": "是否显示边框",
|
|
575
|
+
"type": "boolean"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "scrollConfig",
|
|
579
|
+
"description": "滚动配置",
|
|
580
|
+
"default": "{ x: true }",
|
|
581
|
+
"attribute": false,
|
|
582
|
+
"type": "TableScroll"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"name": "optimizedColumns",
|
|
586
|
+
"description": "优化渲染的列(输入对应的 column.key)",
|
|
587
|
+
"attribute": false,
|
|
588
|
+
"type": "(string | number)[]"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "themeVariant",
|
|
592
|
+
"description": "主题变体",
|
|
593
|
+
"type": "\"default\" | \"elevo\""
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"events": [
|
|
597
|
+
{
|
|
598
|
+
"name": "page.change",
|
|
599
|
+
"description": "page 或 pageSize 改变的回调",
|
|
600
|
+
"detail": {
|
|
601
|
+
"description": "改变后的页码及每页条数",
|
|
602
|
+
"type": "{ page: number; pageSize: number }"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "page.size.change",
|
|
607
|
+
"description": "pageSize 变化的回调",
|
|
608
|
+
"deprecated": "统一用 `page.change` 事件",
|
|
609
|
+
"detail": {
|
|
610
|
+
"description": "改变后的页码及每页条数",
|
|
611
|
+
"type": "{\n page: number;\n pageSize: number;\n }"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "sort.change",
|
|
616
|
+
"description": "排序变化的回调",
|
|
617
|
+
"detail": {
|
|
618
|
+
"description": "当前排序的信息",
|
|
619
|
+
"type": "Sort | Sort[] | undefined"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "row.click",
|
|
624
|
+
"description": "行点击时的回调",
|
|
625
|
+
"detail": {
|
|
626
|
+
"description": "被点击的行数据",
|
|
627
|
+
"type": "RecordType"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "row.select",
|
|
632
|
+
"description": "行选中项发生变化时的回调",
|
|
633
|
+
"detail": {
|
|
634
|
+
"description": "改变后的 rowKey 及行数据",
|
|
635
|
+
"type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "row.select.v2",
|
|
640
|
+
"description": "行选中项发生变化时的回调(v2 版本)",
|
|
641
|
+
"detail": {
|
|
642
|
+
"description": "改变后的行数据",
|
|
643
|
+
"type": "RecordType[]"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "row.expand",
|
|
648
|
+
"description": "点击展开图标时触发",
|
|
649
|
+
"detail": {
|
|
650
|
+
"description": "当前行的展开情况及数据",
|
|
651
|
+
"type": "{\n expanded: boolean;\n record: RecordType;\n }"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"name": "expanded.rows.change",
|
|
656
|
+
"description": "展开的行变化时触发",
|
|
657
|
+
"detail": {
|
|
658
|
+
"description": "所有展开行的 key",
|
|
659
|
+
"type": "(string | number)[]"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "row.drag",
|
|
664
|
+
"description": "表格行拖拽结束发生的事件",
|
|
665
|
+
"detail": {
|
|
666
|
+
"description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
|
|
667
|
+
"type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
"slots": [],
|
|
672
|
+
"methods": [
|
|
673
|
+
{
|
|
674
|
+
"name": "search",
|
|
675
|
+
"params": [
|
|
676
|
+
{
|
|
677
|
+
"name": "params",
|
|
678
|
+
"type": "{ q: string }"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"description": "前端搜索",
|
|
682
|
+
"returns": {}
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"parts": [],
|
|
686
|
+
"description": "大型表格",
|
|
687
|
+
"category": "table"
|
|
688
|
+
},
|
|
454
689
|
{
|
|
455
690
|
"name": "eo-workbench-layout",
|
|
456
691
|
"properties": [
|
|
@@ -884,241 +1119,6 @@
|
|
|
884
1119
|
"methods": [],
|
|
885
1120
|
"parts": [],
|
|
886
1121
|
"description": "构件 `advanced.pdf-viewer`"
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
"name": "eo-next-table",
|
|
890
|
-
"properties": [
|
|
891
|
-
{
|
|
892
|
-
"name": "rowKey",
|
|
893
|
-
"description": "指定表格行的 key",
|
|
894
|
-
"default": "\"key\"",
|
|
895
|
-
"type": "string"
|
|
896
|
-
},
|
|
897
|
-
{
|
|
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": "是否前端搜索",
|
|
918
|
-
"type": "boolean"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"name": "pagination",
|
|
922
|
-
"description": "分页配置",
|
|
923
|
-
"attribute": false,
|
|
924
|
-
"type": "PaginationType"
|
|
925
|
-
},
|
|
926
|
-
{
|
|
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": "排序信息",
|
|
939
|
-
"attribute": false,
|
|
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": "rowClickable",
|
|
985
|
-
"description": "表格行可点击(激活鼠标手势)",
|
|
986
|
-
"type": "boolean"
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
"name": "searchFields",
|
|
990
|
-
"description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
|
|
991
|
-
"attribute": false,
|
|
992
|
-
"type": "(string | string[])[]"
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
"name": "size",
|
|
996
|
-
"description": "表格大小",
|
|
997
|
-
"default": "\"large\"",
|
|
998
|
-
"type": "TableProps<RecordType>[\"size\"]"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"name": "showHeader",
|
|
1002
|
-
"description": "是否显示表头",
|
|
1003
|
-
"default": "true",
|
|
1004
|
-
"type": "boolean"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
"name": "bordered",
|
|
1008
|
-
"description": "是否显示边框",
|
|
1009
|
-
"type": "boolean"
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
"name": "scrollConfig",
|
|
1013
|
-
"description": "滚动配置",
|
|
1014
|
-
"default": "{ x: true }",
|
|
1015
|
-
"attribute": false,
|
|
1016
|
-
"type": "TableScroll"
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"name": "optimizedColumns",
|
|
1020
|
-
"description": "优化渲染的列(输入对应的 column.key)",
|
|
1021
|
-
"attribute": false,
|
|
1022
|
-
"type": "(string | number)[]"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"name": "themeVariant",
|
|
1026
|
-
"description": "主题变体",
|
|
1027
|
-
"type": "\"default\" | \"elevo\""
|
|
1028
|
-
}
|
|
1029
|
-
],
|
|
1030
|
-
"events": [
|
|
1031
|
-
{
|
|
1032
|
-
"name": "page.change",
|
|
1033
|
-
"description": "page 或 pageSize 改变的回调",
|
|
1034
|
-
"detail": {
|
|
1035
|
-
"description": "改变后的页码及每页条数",
|
|
1036
|
-
"type": "{ page: number; pageSize: number }"
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
{
|
|
1040
|
-
"name": "page.size.change",
|
|
1041
|
-
"description": "pageSize 变化的回调",
|
|
1042
|
-
"deprecated": "统一用 `page.change` 事件",
|
|
1043
|
-
"detail": {
|
|
1044
|
-
"description": "改变后的页码及每页条数",
|
|
1045
|
-
"type": "{\n page: number;\n pageSize: number;\n }"
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
"name": "sort.change",
|
|
1050
|
-
"description": "排序变化的回调",
|
|
1051
|
-
"detail": {
|
|
1052
|
-
"description": "当前排序的信息",
|
|
1053
|
-
"type": "Sort | Sort[] | undefined"
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"name": "row.click",
|
|
1058
|
-
"description": "行点击时的回调",
|
|
1059
|
-
"detail": {
|
|
1060
|
-
"description": "被点击的行数据",
|
|
1061
|
-
"type": "RecordType"
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"name": "row.select",
|
|
1066
|
-
"description": "行选中项发生变化时的回调",
|
|
1067
|
-
"detail": {
|
|
1068
|
-
"description": "改变后的 rowKey 及行数据",
|
|
1069
|
-
"type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"name": "row.select.v2",
|
|
1074
|
-
"description": "行选中项发生变化时的回调(v2 版本)",
|
|
1075
|
-
"detail": {
|
|
1076
|
-
"description": "改变后的行数据",
|
|
1077
|
-
"type": "RecordType[]"
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"name": "row.expand",
|
|
1082
|
-
"description": "点击展开图标时触发",
|
|
1083
|
-
"detail": {
|
|
1084
|
-
"description": "当前行的展开情况及数据",
|
|
1085
|
-
"type": "{\n expanded: boolean;\n record: RecordType;\n }"
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
"name": "expanded.rows.change",
|
|
1090
|
-
"description": "展开的行变化时触发",
|
|
1091
|
-
"detail": {
|
|
1092
|
-
"description": "所有展开行的 key",
|
|
1093
|
-
"type": "(string | number)[]"
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"name": "row.drag",
|
|
1098
|
-
"description": "表格行拖拽结束发生的事件",
|
|
1099
|
-
"detail": {
|
|
1100
|
-
"description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
|
|
1101
|
-
"type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
],
|
|
1105
|
-
"slots": [],
|
|
1106
|
-
"methods": [
|
|
1107
|
-
{
|
|
1108
|
-
"name": "search",
|
|
1109
|
-
"params": [
|
|
1110
|
-
{
|
|
1111
|
-
"name": "params",
|
|
1112
|
-
"type": "{ q: string }"
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
"description": "前端搜索",
|
|
1116
|
-
"returns": {}
|
|
1117
|
-
}
|
|
1118
|
-
],
|
|
1119
|
-
"parts": [],
|
|
1120
|
-
"description": "大型表格",
|
|
1121
|
-
"category": "table"
|
|
1122
1122
|
}
|
|
1123
1123
|
],
|
|
1124
1124
|
"providers": [
|
|
@@ -17,6 +17,15 @@ export interface CascaderProps extends Pick<AntdCascaderProps, "options" | "fiel
|
|
|
17
17
|
maxTagCount?: number | "responsive";
|
|
18
18
|
onChange?: (value: AntdCascaderProps["value"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][]) => void;
|
|
19
19
|
}
|
|
20
|
+
export interface CascaderEventsMap {
|
|
21
|
+
pageChange: CustomEvent<{
|
|
22
|
+
value: AntdCascaderProps["value"];
|
|
23
|
+
selectedOptions: DefaultOptionType[] | DefaultOptionType[][];
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export interface CascaderEventsMapping {
|
|
27
|
+
onCascaderChange: "cascader.change";
|
|
28
|
+
}
|
|
20
29
|
/**
|
|
21
30
|
* 级联选择器
|
|
22
31
|
* @author nlicroshan
|
|
@@ -4,6 +4,36 @@ import "@next-core/theme";
|
|
|
4
4
|
import type { CellConfig, Column, DataSource, ExpandableType, NextTableProps, PaginationType, RecordType, RowSelectionType, Sort, TableScroll } from "./interface.js";
|
|
5
5
|
import type { TableProps } from "antd/es/table";
|
|
6
6
|
import "./host-context.css";
|
|
7
|
+
export interface NextTableEventsMap {
|
|
8
|
+
pageChange: CustomEvent<Record<string, number>>;
|
|
9
|
+
filterUpdate: CustomEvent<Record<string, number>>;
|
|
10
|
+
selectUpdate: CustomEvent<Record<string, any>[]>;
|
|
11
|
+
selectRowKeysUpdate: CustomEvent<string[]>;
|
|
12
|
+
sortUpdate: CustomEvent<{
|
|
13
|
+
sort: string;
|
|
14
|
+
order: string | number;
|
|
15
|
+
}>;
|
|
16
|
+
rowExpand: CustomEvent<{
|
|
17
|
+
expanded: boolean;
|
|
18
|
+
record: Record<string, any>;
|
|
19
|
+
}>;
|
|
20
|
+
expandRowsChange: CustomEvent<{
|
|
21
|
+
expandedRows: React.Key[];
|
|
22
|
+
}>;
|
|
23
|
+
rowDrag: CustomEvent<{
|
|
24
|
+
data: Record<string, any>[];
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
export interface NextTableEventsMapping {
|
|
28
|
+
onPageChange: "page.update";
|
|
29
|
+
onfilterUpdate: "filter.update";
|
|
30
|
+
selectUpdate: "select.update";
|
|
31
|
+
selectRowKeysUpdate: "select.row.keys.update";
|
|
32
|
+
sortUpdate: "sort.update";
|
|
33
|
+
rowExpand: "row.expand";
|
|
34
|
+
expandRowsChange: "expand.rows.change";
|
|
35
|
+
rowDrag: "row.drag";
|
|
36
|
+
}
|
|
7
37
|
/**
|
|
8
38
|
* 大型表格
|
|
9
39
|
* @author nlicro
|
|
@@ -75,6 +75,36 @@ export interface CustomColumn extends ColumnProps<Record<string, any>> {
|
|
|
75
75
|
useBrick: UseSingleBrickConf;
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
+
export interface EoTableEventsMap {
|
|
79
|
+
pageChange: CustomEvent<Record<string, number>>;
|
|
80
|
+
filterUpdate: CustomEvent<Record<string, number>>;
|
|
81
|
+
selectUpdate: CustomEvent<Record<string, any>[]>;
|
|
82
|
+
selectRowKeysUpdate: CustomEvent<string[]>;
|
|
83
|
+
sortUpdate: CustomEvent<{
|
|
84
|
+
sort: string;
|
|
85
|
+
order: string | number;
|
|
86
|
+
}>;
|
|
87
|
+
rowExpand: CustomEvent<{
|
|
88
|
+
expanded: boolean;
|
|
89
|
+
record: Record<string, any>;
|
|
90
|
+
}>;
|
|
91
|
+
expandRowsChange: CustomEvent<{
|
|
92
|
+
expandedRows: React.Key[];
|
|
93
|
+
}>;
|
|
94
|
+
rowDrag: CustomEvent<{
|
|
95
|
+
data: Record<string, any>[];
|
|
96
|
+
}>;
|
|
97
|
+
}
|
|
98
|
+
export interface EoTableEventsMapping {
|
|
99
|
+
onPageChange: "page.update";
|
|
100
|
+
onfilterUpdate: "filter.update";
|
|
101
|
+
selectUpdate: "select.update";
|
|
102
|
+
selectRowKeysUpdate: "select.row.keys.update";
|
|
103
|
+
sortUpdate: "sort.update";
|
|
104
|
+
rowExpand: "row.expand";
|
|
105
|
+
expandRowsChange: "expand.rows.change";
|
|
106
|
+
rowDrag: "row.drag";
|
|
107
|
+
}
|
|
78
108
|
/**
|
|
79
109
|
* 简易表格构件。
|
|
80
110
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/advanced",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.2",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@next-bricks/form": "*",
|
|
47
47
|
"@next-bricks/icons": "*"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "8f4ed67121769493084a69be53cb30392edd24a3"
|
|
50
50
|
}
|