@icos-desktop/react-components 2.0.16 → 2.0.17

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.
@@ -422,6 +422,99 @@ interface RelationGraphProps {
422
422
 
423
423
  declare const RelationGraph: (props: RelationGraphProps) => React.JSX.Element;
424
424
 
425
+ interface CustomButtonConfig$1 extends ButtonProps$1 {
426
+ title: string;
427
+ }
428
+ interface SenseContentTableProps extends TableProps {
429
+ /**
430
+ * 实体记录唯一标识
431
+ */
432
+ senseGlobalCodes: string[];
433
+ /**
434
+ * 数据表名
435
+ */
436
+ tableName: string;
437
+ /**
438
+ * 额外查询参数
439
+ */
440
+ extraParams?: Record<string, any>;
441
+ /**
442
+ * 时间筛选名称
443
+ */
444
+ timeFieldName?: string;
445
+ /**
446
+ * 时间筛选模式
447
+ */
448
+ timeFieldFormat?: string;
449
+ /**
450
+ * 过滤配置
451
+ */
452
+ filterConfig?: {
453
+ label: string;
454
+ column: string;
455
+ }[];
456
+ /**
457
+ * 显示导出数据按钮
458
+ */
459
+ showExportButton?: boolean;
460
+ /**
461
+ * 自定义按钮
462
+ */
463
+ customButtons?: () => CustomButtonConfig$1[];
464
+ /**
465
+ * 自定义表格列
466
+ */
467
+ customColumns?: Record<string, any>;
468
+ /**
469
+ * 已选行数,用于显示数量
470
+ */
471
+ selectedRowLength?: number;
472
+ /**
473
+ * 单击实体
474
+ * @param record
475
+ */
476
+ onClick?: (record: any) => void;
477
+ /**
478
+ * 双击实体
479
+ * @param record
480
+ */
481
+ onDoubleClick?: (record: any) => void;
482
+ /**
483
+ * 触发刷新的回调
484
+ */
485
+ onRefresh?: () => void;
486
+ /**
487
+ * 过滤条件背景颜色
488
+ */
489
+ filterBgColor?: string;
490
+ /**
491
+ * 过滤条件图标颜色
492
+ */
493
+ filterIconColor?: string;
494
+ /**
495
+ * 过滤条件右上角图标颜色
496
+ */
497
+ filterActiveClor?: string;
498
+ /**
499
+ * 过滤条件内容背景颜色
500
+ */
501
+ filterContentBgColor?: string;
502
+ proTableContainerHeight?: number;
503
+ proTableHeadBg?: string;
504
+ proTableCloseAllBg?: string;
505
+ proTableSortIconColor?: string;
506
+ proTableSelectIcon?: string;
507
+ proTableSelectMultipleIconColor?: string;
508
+ }
509
+ interface SenseContentTableRef {
510
+ /**
511
+ * 刷新
512
+ */
513
+ refresh: () => void;
514
+ }
515
+
516
+ declare const SenseContentTable: React.ForwardRefExoticComponent<SenseContentTableProps & React.RefAttributes<SenseContentTableRef>>;
517
+
425
518
  interface SenseCreateProps {
426
519
  /**
427
520
  * 视图编码
@@ -684,6 +777,18 @@ interface SenseFullTableProps {
684
777
  * 实体记录功能,可选项:`show` 查看, `edit` 编辑, `cut` 剪切, `copy` 复制, `delete` 删除
685
778
  */
686
779
  senseContextMenuConfig?: ContextMenuKey$3[];
780
+ /**
781
+ * 扩展列参数,目前仅支持实体列表
782
+ */
783
+ extendColumnParams?: any[];
784
+ /**
785
+ * 隐藏表格列,目前仅支持实体列表
786
+ */
787
+ hideColumns?: string[];
788
+ /**
789
+ * 自定义表格列,目前仅支持实体列表
790
+ */
791
+ customColumns?: Record<string, any>;
687
792
  /**
688
793
  * 启用标签
689
794
  */
@@ -918,6 +1023,18 @@ interface SenseTableProps extends TableProps {
918
1023
  * 过滤配置
919
1024
  */
920
1025
  filterConfig?: any;
1026
+ /**
1027
+ * 扩展列参数
1028
+ */
1029
+ extendColumnParams?: any[];
1030
+ /**
1031
+ * 隐藏表格列
1032
+ */
1033
+ hideColumns?: string[];
1034
+ /**
1035
+ * 自定义表格列
1036
+ */
1037
+ customColumns?: Record<string, any>;
921
1038
  /**
922
1039
  * 实体记录功能
923
1040
  */
@@ -962,6 +1079,10 @@ interface SenseTableRef {
962
1079
  * 刷新
963
1080
  */
964
1081
  refresh: () => void;
1082
+ /**
1083
+ * 导出
1084
+ */
1085
+ export: () => void;
965
1086
  }
966
1087
 
967
1088
  declare const SenseTable: React.ForwardRefExoticComponent<SenseTableProps & React.RefAttributes<SenseTableRef>>;
@@ -1277,4 +1398,4 @@ declare const CcosVideoPlayer: {
1277
1398
  type Config = Pick<IcosDesktopType, 'apiPrefix'>;
1278
1399
  declare const setCconfig: (config: Config) => void;
1279
1400
 
1280
- export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProSearch, _default as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };
1401
+ export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProSearch, _default as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };