@icos-desktop/react-components 2.1.14 → 2.2.0

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.
@@ -1,6 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { ButtonProps } from 'antd/es/button/button';
3
- import { SelectProps, TableProps, TreeSelectProps, ModalProps, CascaderProps, ButtonProps as ButtonProps$1 } from '@xirang/design-antd';
2
+ import { ButtonProps, SelectProps, TableProps, TreeSelectProps, ModalProps, CascaderProps } from '@xirang/design-antd';
4
3
  import { ContextMenuKey as ContextMenuKey$2 } from '@/components/BookTable/BookTable.types';
5
4
  import { ContextMenuKey as ContextMenuKey$3 } from '@/components/SenseTable/SenseTable.types';
6
5
  import { VideoPlayerProps as VideoPlayerProps$1 } from '@/components/VideoPlayer';
@@ -97,7 +96,16 @@ interface BookGroupTableProps {
97
96
  * @param record
98
97
  */
99
98
  onDoubleClick?: (record: EntityManagerAPI.BookGroupItem) => void;
100
- proTableContainerHeight?: number;
99
+ /**
100
+ * 点击导入管理
101
+ * @param record
102
+ */
103
+ onImport?: (record: EntityManagerAPI.BookGroupItem) => void;
104
+ /**
105
+ * 点击标签配置
106
+ * @param record
107
+ */
108
+ onTagConfig?: (record: EntityManagerAPI.BookGroupItem) => void;
101
109
  }
102
110
 
103
111
  declare const BookGroupTable: (props: BookGroupTableProps) => React.JSX.Element;
@@ -123,22 +131,6 @@ interface BookImportProps {
123
131
  * 保存失败
124
132
  */
125
133
  onError?: (error: any) => void;
126
- /**
127
- * 模版下载提示文本颜色
128
- */
129
- downloadTextColor?: string;
130
- /**
131
- * 文件上传文本颜色
132
- */
133
- uploadTextColor?: string;
134
- /**
135
- * 文件上传第二行文本颜色
136
- */
137
- uploadHintColor?: string;
138
- /**
139
- * 上传后文本颜色
140
- */
141
- uploadFileNameColor?: string;
142
134
  /**
143
135
  * 底部操作区域背景颜色
144
136
  */
@@ -155,18 +147,6 @@ interface BookImportProps {
155
147
  * 底部操作区域边框宽度
156
148
  */
157
149
  bottomBorderWidth?: number;
158
- /**
159
- * 上传图片
160
- */
161
- uploadImgColor?: string;
162
- /**
163
- * 文件图片
164
- */
165
- fileImgColor?: string;
166
- /**
167
- * 删除图片
168
- */
169
- deleteImgColor?: string;
170
150
  }
171
151
 
172
152
  declare const BookImport: (props: BookImportProps) => React.JSX.Element;
@@ -268,6 +248,16 @@ interface BookTableProps extends TableProps {
268
248
  * 触发刷新的回调
269
249
  */
270
250
  onRefresh?: () => void;
251
+ /**
252
+ * 点击标签配置
253
+ * @param record
254
+ */
255
+ onTagConfig?: (record: any) => void;
256
+ /**
257
+ * 查看台账属性
258
+ * @param record
259
+ */
260
+ onAttribute?: (record: any) => void;
271
261
  }
272
262
  interface BookTableRef {
273
263
  /**
@@ -399,7 +389,7 @@ interface RelationGraphProps {
399
389
 
400
390
  declare const RelationGraph: (props: RelationGraphProps) => React.JSX.Element;
401
391
 
402
- interface CustomButtonConfig$1 extends ButtonProps$1 {
392
+ interface CustomButtonConfig$1 extends ButtonProps {
403
393
  title: string;
404
394
  }
405
395
  interface SenseContentTableProps extends TableProps {
@@ -469,7 +459,6 @@ interface SenseContentTableProps extends TableProps {
469
459
  * 触发刷新的回调
470
460
  */
471
461
  onRefresh?: () => void;
472
- proTableContainerHeight?: number;
473
462
  }
474
463
  interface SenseContentTableRef {
475
464
  /**
@@ -480,6 +469,15 @@ interface SenseContentTableRef {
480
469
 
481
470
  declare const SenseContentTable: React.ForwardRefExoticComponent<SenseContentTableProps & React.RefAttributes<SenseContentTableRef>>;
482
471
 
472
+ interface CcosSenseContentTableProps extends SenseContentTableProps {
473
+ 'data-dnd': string;
474
+ tid: string;
475
+ }
476
+ declare const CcosSenseContentTable: {
477
+ (props: CcosSenseContentTableProps): React.JSX.Element;
478
+ settings: ComponentPrototype;
479
+ };
480
+
483
481
  interface SenseCreateProps {
484
482
  /**
485
483
  * 视图编码
@@ -688,7 +686,7 @@ interface SenseFormRef {
688
686
 
689
687
  declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
690
688
 
691
- interface CustomButtonConfig extends ButtonProps$1 {
689
+ interface CustomButtonConfig extends ButtonProps {
692
690
  title: string;
693
691
  }
694
692
  interface SenseFullTableProps {
@@ -817,6 +815,16 @@ interface SenseFullTableProps {
817
815
  * @param record
818
816
  */
819
817
  onDoubleClickSense?: (record: any) => void;
818
+ /**
819
+ * 点击标签配置
820
+ * @param record
821
+ */
822
+ onTagConfig?: (record: EntityManagerAPI.BookGroupItem) => void;
823
+ /**
824
+ * 查看台账属性
825
+ * @param record
826
+ */
827
+ onBookAttribute?: (record: any) => void;
820
828
  }
821
829
  interface SenseFullTableRef {
822
830
  /**
@@ -929,6 +937,16 @@ interface SenseManagerProps {
929
937
  * @param record
930
938
  */
931
939
  onDoubleClickSense?: (record: any) => void;
940
+ /**
941
+ * 点击标签配置
942
+ * @param record
943
+ */
944
+ onTagConfig?: (record: EntityManagerAPI.BookGroupItem) => void;
945
+ /**
946
+ * 查看台账属性
947
+ * @param record
948
+ */
949
+ onBookAttribute?: (record: any) => void;
932
950
  }
933
951
 
934
952
  declare const SenseManager: React.FC<SenseManagerProps>;
@@ -1392,13 +1410,31 @@ type TagTreeSelectProps = TreeSelectProps;
1392
1410
  declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
1393
1411
 
1394
1412
  interface VideoControlProps extends VideoPlayerProps$1 {
1413
+ /**
1414
+ * 禁用云台控制
1415
+ */
1395
1416
  disabled?: boolean;
1417
+ /**
1418
+ * 操作按钮文本颜色
1419
+ */
1396
1420
  operationIconColor?: string;
1421
+ /**
1422
+ * 操作按钮边框颜色
1423
+ */
1397
1424
  operateIconBorderColor?: string;
1398
1425
  }
1399
1426
 
1400
1427
  declare const VideoControl: (props: VideoControlProps) => React.JSX.Element;
1401
1428
 
1429
+ interface CcosVideoControlProps extends VideoControlProps {
1430
+ 'data-dnd': string;
1431
+ tid: string;
1432
+ }
1433
+ declare const CcosVideoControl: {
1434
+ (props: CcosVideoControlProps): React.JSX.Element;
1435
+ settings: ComponentPrototype;
1436
+ };
1437
+
1402
1438
  interface VideoPlayerProps {
1403
1439
  /**
1404
1440
  * 视频播放器库路径
@@ -1443,4 +1479,4 @@ declare const CcosVideoPlayer: {
1443
1479
  type Config = Pick<IcosDesktopType, 'apiPrefix'>;
1444
1480
  declare const setCconfig: (config: Config) => void;
1445
1481
 
1446
- 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, _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 };
1482
+ export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseContentTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoControl, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, _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 };