@next-bricks/advanced 0.42.0 → 0.42.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.
@@ -452,7 +452,7 @@
452
452
  "category": "form-input-basic"
453
453
  },
454
454
  {
455
- "name": "eo-workbench-layout-v2",
455
+ "name": "eo-workbench-layout",
456
456
  "properties": [
457
457
  {
458
458
  "name": "cardTitle",
@@ -467,11 +467,6 @@
467
467
  "attribute": false,
468
468
  "type": "Layout[]"
469
469
  },
470
- {
471
- "name": "toolbarBricks",
472
- "attribute": false,
473
- "type": "{\n useBrick: UseSingleBrickConf[];\n }"
474
- },
475
470
  {
476
471
  "name": "componentList",
477
472
  "attribute": false,
@@ -519,10 +514,220 @@
519
514
  }
520
515
  ],
521
516
  "parts": [],
522
- "description": "工作台布局V2,未使用shadow dom"
517
+ "description": "工作台布局",
518
+ "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
523
519
  },
524
520
  {
525
- "name": "eo-workbench-layout",
521
+ "name": "eo-next-table",
522
+ "properties": [
523
+ {
524
+ "name": "rowKey",
525
+ "description": "指定表格行的 key",
526
+ "default": "\"key\"",
527
+ "type": "string"
528
+ },
529
+ {
530
+ "name": "columns",
531
+ "description": "列定义",
532
+ "attribute": false,
533
+ "type": "Column[]"
534
+ },
535
+ {
536
+ "name": "cell",
537
+ "description": "单元格",
538
+ "attribute": false,
539
+ "type": "CellConfig"
540
+ },
541
+ {
542
+ "name": "dataSource",
543
+ "description": "数据源",
544
+ "attribute": false,
545
+ "type": "DataSource"
546
+ },
547
+ {
548
+ "name": "frontSearch",
549
+ "description": "是否前端搜索",
550
+ "type": "boolean"
551
+ },
552
+ {
553
+ "name": "pagination",
554
+ "description": "分页配置",
555
+ "attribute": false,
556
+ "type": "PaginationType"
557
+ },
558
+ {
559
+ "name": "loading",
560
+ "description": "显示加载中状态",
561
+ "type": "boolean"
562
+ },
563
+ {
564
+ "name": "multiSort",
565
+ "description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
566
+ "type": "boolean"
567
+ },
568
+ {
569
+ "name": "sort",
570
+ "description": "排序信息",
571
+ "attribute": false,
572
+ "type": "Sort | Sort[]"
573
+ },
574
+ {
575
+ "name": "rowSelection",
576
+ "description": "表格行可选择配置",
577
+ "attribute": false,
578
+ "type": "RowSelectionType"
579
+ },
580
+ {
581
+ "name": "selectedRowKeys",
582
+ "description": "选中项的 key",
583
+ "attribute": false,
584
+ "type": "(string | number)[]"
585
+ },
586
+ {
587
+ "name": "hiddenColumns",
588
+ "description": "隐藏的列(输入对应的 column.key)",
589
+ "attribute": false,
590
+ "type": "(string | number)[]"
591
+ },
592
+ {
593
+ "name": "expandable",
594
+ "description": "表格行展开配置",
595
+ "attribute": false,
596
+ "type": "ExpandableType"
597
+ },
598
+ {
599
+ "name": "expandedRowKeys",
600
+ "description": "展开项的 key",
601
+ "attribute": false,
602
+ "type": "(string | number)[]"
603
+ },
604
+ {
605
+ "name": "childrenColumnName",
606
+ "description": "树形结构的列名",
607
+ "default": "\"children\"",
608
+ "type": "string"
609
+ },
610
+ {
611
+ "name": "rowDraggable",
612
+ "description": "表格行拖拽配置",
613
+ "type": "boolean"
614
+ },
615
+ {
616
+ "name": "searchFields",
617
+ "description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
618
+ "attribute": false,
619
+ "type": "(string | string[])[]"
620
+ },
621
+ {
622
+ "name": "size",
623
+ "description": "表格大小",
624
+ "default": "\"large\"",
625
+ "type": "TableProps<RecordType>[\"size\"]"
626
+ },
627
+ {
628
+ "name": "showHeader",
629
+ "description": "是否显示表头",
630
+ "default": "true",
631
+ "type": "boolean"
632
+ },
633
+ {
634
+ "name": "bordered",
635
+ "description": "是否显示边框",
636
+ "type": "boolean"
637
+ },
638
+ {
639
+ "name": "scrollConfig",
640
+ "description": "滚动配置",
641
+ "default": "{ x: true }",
642
+ "attribute": false,
643
+ "type": "TableProps<RecordType>[\"scroll\"]"
644
+ },
645
+ {
646
+ "name": "optimizedColumns",
647
+ "description": "优化渲染的列(输入对应的 column.key)",
648
+ "attribute": false,
649
+ "type": "(string | number)[]"
650
+ }
651
+ ],
652
+ "events": [
653
+ {
654
+ "name": "page.change",
655
+ "description": "page 或 pageSize 改变的回调",
656
+ "detail": {
657
+ "description": "改变后的页码及每页条数",
658
+ "type": "{ page: number; pageSize: number }"
659
+ }
660
+ },
661
+ {
662
+ "name": "page.size.change",
663
+ "description": "pageSize 变化的回调",
664
+ "deprecated": "统一用 `page.change` 事件",
665
+ "detail": {
666
+ "description": "改变后的页码及每页条数",
667
+ "type": "{\n page: number;\n pageSize: number;\n }"
668
+ }
669
+ },
670
+ {
671
+ "name": "sort.change",
672
+ "description": "排序变化的回调",
673
+ "detail": {
674
+ "description": "当前排序的信息",
675
+ "type": "Sort | Sort[] | undefined"
676
+ }
677
+ },
678
+ {
679
+ "name": "row.select",
680
+ "description": "行选中项发生变化时的回调",
681
+ "detail": {
682
+ "description": "改变后的 rowKey 及行数据",
683
+ "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
684
+ }
685
+ },
686
+ {
687
+ "name": "row.expand",
688
+ "description": "点击展开图标时触发",
689
+ "detail": {
690
+ "description": "当前行的展开情况及数据",
691
+ "type": "{\n expanded: boolean;\n record: RecordType;\n }"
692
+ }
693
+ },
694
+ {
695
+ "name": "expanded.rows.change",
696
+ "description": "展开的行变化时触发",
697
+ "detail": {
698
+ "description": "所有展开行的 key",
699
+ "type": "(string | number)[]"
700
+ }
701
+ },
702
+ {
703
+ "name": "row.drag",
704
+ "description": "表格行拖拽结束发生的事件",
705
+ "detail": {
706
+ "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
707
+ "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
708
+ }
709
+ }
710
+ ],
711
+ "slots": [],
712
+ "methods": [
713
+ {
714
+ "name": "search",
715
+ "params": [
716
+ {
717
+ "name": "params",
718
+ "type": "{ q: string }"
719
+ }
720
+ ],
721
+ "description": "前端搜索",
722
+ "returns": {}
723
+ }
724
+ ],
725
+ "parts": [],
726
+ "description": "大型表格",
727
+ "category": "table"
728
+ },
729
+ {
730
+ "name": "eo-workbench-layout-v2",
526
731
  "properties": [
527
732
  {
528
733
  "name": "cardTitle",
@@ -537,6 +742,11 @@
537
742
  "attribute": false,
538
743
  "type": "Layout[]"
539
744
  },
745
+ {
746
+ "name": "toolbarBricks",
747
+ "attribute": false,
748
+ "type": "{\n useBrick: UseSingleBrickConf[];\n }"
749
+ },
540
750
  {
541
751
  "name": "componentList",
542
752
  "attribute": false,
@@ -584,8 +794,7 @@
584
794
  }
585
795
  ],
586
796
  "parts": [],
587
- "description": "工作台布局",
588
- "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
797
+ "description": "工作台布局V2,未使用shadow dom"
589
798
  },
590
799
  {
591
800
  "name": "eo-tree",
@@ -857,215 +1066,6 @@
857
1066
  "methods": [],
858
1067
  "parts": [],
859
1068
  "description": "构件 `advanced.pdf-viewer`"
860
- },
861
- {
862
- "name": "eo-next-table",
863
- "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
- {
883
- "name": "dataSource",
884
- "description": "数据源",
885
- "attribute": false,
886
- "type": "DataSource"
887
- },
888
- {
889
- "name": "frontSearch",
890
- "description": "是否前端搜索",
891
- "type": "boolean"
892
- },
893
- {
894
- "name": "pagination",
895
- "description": "分页配置",
896
- "attribute": false,
897
- "type": "PaginationType"
898
- },
899
- {
900
- "name": "loading",
901
- "description": "显示加载中状态",
902
- "type": "boolean"
903
- },
904
- {
905
- "name": "multiSort",
906
- "description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
907
- "type": "boolean"
908
- },
909
- {
910
- "name": "sort",
911
- "description": "排序信息",
912
- "attribute": false,
913
- "type": "Sort | Sort[]"
914
- },
915
- {
916
- "name": "rowSelection",
917
- "description": "表格行可选择配置",
918
- "attribute": false,
919
- "type": "RowSelectionType"
920
- },
921
- {
922
- "name": "selectedRowKeys",
923
- "description": "选中项的 key",
924
- "attribute": false,
925
- "type": "(string | number)[]"
926
- },
927
- {
928
- "name": "hiddenColumns",
929
- "description": "隐藏的列(输入对应的 column.key)",
930
- "attribute": false,
931
- "type": "(string | number)[]"
932
- },
933
- {
934
- "name": "expandable",
935
- "description": "表格行展开配置",
936
- "attribute": false,
937
- "type": "ExpandableType"
938
- },
939
- {
940
- "name": "expandedRowKeys",
941
- "description": "展开项的 key",
942
- "attribute": false,
943
- "type": "(string | number)[]"
944
- },
945
- {
946
- "name": "childrenColumnName",
947
- "description": "树形结构的列名",
948
- "default": "\"children\"",
949
- "type": "string"
950
- },
951
- {
952
- "name": "rowDraggable",
953
- "description": "表格行拖拽配置",
954
- "type": "boolean"
955
- },
956
- {
957
- "name": "searchFields",
958
- "description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
959
- "attribute": false,
960
- "type": "(string | string[])[]"
961
- },
962
- {
963
- "name": "size",
964
- "description": "表格大小",
965
- "default": "\"large\"",
966
- "type": "TableProps<RecordType>[\"size\"]"
967
- },
968
- {
969
- "name": "showHeader",
970
- "description": "是否显示表头",
971
- "default": "true",
972
- "type": "boolean"
973
- },
974
- {
975
- "name": "bordered",
976
- "description": "是否显示边框",
977
- "type": "boolean"
978
- },
979
- {
980
- "name": "scrollConfig",
981
- "description": "滚动配置",
982
- "default": "{ x: true }",
983
- "attribute": false,
984
- "type": "TableProps<RecordType>[\"scroll\"]"
985
- },
986
- {
987
- "name": "optimizedColumns",
988
- "description": "优化渲染的列(输入对应的 column.key)",
989
- "attribute": false,
990
- "type": "(string | number)[]"
991
- }
992
- ],
993
- "events": [
994
- {
995
- "name": "page.change",
996
- "description": "page 或 pageSize 改变的回调",
997
- "detail": {
998
- "description": "改变后的页码及每页条数",
999
- "type": "{ page: number; pageSize: number }"
1000
- }
1001
- },
1002
- {
1003
- "name": "page.size.change",
1004
- "description": "pageSize 变化的回调",
1005
- "deprecated": "统一用 `page.change` 事件",
1006
- "detail": {
1007
- "description": "改变后的页码及每页条数",
1008
- "type": "{\n page: number;\n pageSize: number;\n }"
1009
- }
1010
- },
1011
- {
1012
- "name": "sort.change",
1013
- "description": "排序变化的回调",
1014
- "detail": {
1015
- "description": "当前排序的信息",
1016
- "type": "Sort | Sort[] | undefined"
1017
- }
1018
- },
1019
- {
1020
- "name": "row.select",
1021
- "description": "行选中项发生变化时的回调",
1022
- "detail": {
1023
- "description": "改变后的 rowKey 及行数据",
1024
- "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
1025
- }
1026
- },
1027
- {
1028
- "name": "row.expand",
1029
- "description": "点击展开图标时触发",
1030
- "detail": {
1031
- "description": "当前行的展开情况及数据",
1032
- "type": "{\n expanded: boolean;\n record: RecordType;\n }"
1033
- }
1034
- },
1035
- {
1036
- "name": "expanded.rows.change",
1037
- "description": "展开的行变化时触发",
1038
- "detail": {
1039
- "description": "所有展开行的 key",
1040
- "type": "(string | number)[]"
1041
- }
1042
- },
1043
- {
1044
- "name": "row.drag",
1045
- "description": "表格行拖拽结束发生的事件",
1046
- "detail": {
1047
- "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
1048
- "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
1049
- }
1050
- }
1051
- ],
1052
- "slots": [],
1053
- "methods": [
1054
- {
1055
- "name": "search",
1056
- "params": [
1057
- {
1058
- "name": "params",
1059
- "type": "{ q: string }"
1060
- }
1061
- ],
1062
- "description": "前端搜索",
1063
- "returns": {}
1064
- }
1065
- ],
1066
- "parts": [],
1067
- "description": "大型表格",
1068
- "category": "table"
1069
1069
  }
1070
1070
  ],
1071
1071
  "providers": [
package/dist/types.json CHANGED
@@ -275,7 +275,7 @@
275
275
  ],
276
276
  "methods": []
277
277
  },
278
- "eo-workbench-layout-v2": {
278
+ "eo-workbench-layout": {
279
279
  "properties": [
280
280
  {
281
281
  "name": "cardTitle",
@@ -304,32 +304,6 @@
304
304
  }
305
305
  }
306
306
  },
307
- {
308
- "name": "toolbarBricks",
309
- "annotation": {
310
- "type": "typeLiteral",
311
- "members": [
312
- {
313
- "type": "propertySignature",
314
- "key": {
315
- "type": "identifier",
316
- "name": "useBrick"
317
- },
318
- "annotation": {
319
- "type": "array",
320
- "elementType": {
321
- "type": "reference",
322
- "typeName": {
323
- "type": "identifier",
324
- "name": "UseSingleBrickConf"
325
- }
326
- }
327
- },
328
- "computed": false
329
- }
330
- ]
331
- }
332
- },
333
307
  {
334
308
  "name": "componentList",
335
309
  "annotation": {
@@ -535,7 +509,7 @@
535
509
  }
536
510
  ]
537
511
  },
538
- "eo-workbench-layout": {
512
+ "eo-workbench-layout-v2": {
539
513
  "properties": [
540
514
  {
541
515
  "name": "cardTitle",
@@ -564,6 +538,32 @@
564
538
  }
565
539
  }
566
540
  },
541
+ {
542
+ "name": "toolbarBricks",
543
+ "annotation": {
544
+ "type": "typeLiteral",
545
+ "members": [
546
+ {
547
+ "type": "propertySignature",
548
+ "key": {
549
+ "type": "identifier",
550
+ "name": "useBrick"
551
+ },
552
+ "annotation": {
553
+ "type": "array",
554
+ "elementType": {
555
+ "type": "reference",
556
+ "typeName": {
557
+ "type": "identifier",
558
+ "name": "UseSingleBrickConf"
559
+ }
560
+ }
561
+ },
562
+ "computed": false
563
+ }
564
+ ]
565
+ }
566
+ },
567
567
  {
568
568
  "name": "componentList",
569
569
  "annotation": {
@@ -48,6 +48,7 @@
48
48
  - brick: eo-button
49
49
  properties:
50
50
  type: link
51
+ size: small
51
52
  icon:
52
53
  lib: antd
53
54
  icon: edit
@@ -59,6 +60,7 @@
59
60
  - brick: eo-button
60
61
  properties:
61
62
  type: link
63
+ size: small
62
64
  danger: true
63
65
  icon:
64
66
  lib: antd
@@ -693,6 +695,7 @@ children:
693
695
  - brick: eo-next-table
694
696
  properties:
695
697
  pagination: false
698
+ bordered: true
696
699
  columns:
697
700
  - dataIndex: name
698
701
  key: name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/advanced",
3
- "version": "0.42.0",
3
+ "version": "0.42.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "@next-bricks/icons": "*",
46
46
  "@next-bricks/markdown": "*"
47
47
  },
48
- "gitHead": "888ffebed237d86f92c42a597148dfc0903b43f0"
48
+ "gitHead": "979e81a16c9f222d3a5b7e23083bc057783ad219"
49
49
  }