@icos-desktop/react-components 2.1.14 → 2.2.1
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/icos-desktop.d.ts +86 -35
- package/dist/icos-desktop.js +788 -613
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +34 -37
package/dist/icos-desktop.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import { ButtonProps } from 'antd
|
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
|
-
|
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,21 @@ 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;
|
261
|
+
/**
|
262
|
+
* 台账共享
|
263
|
+
* @param record
|
264
|
+
*/
|
265
|
+
onShare?: (record: any) => void;
|
271
266
|
}
|
272
267
|
interface BookTableRef {
|
273
268
|
/**
|
@@ -399,7 +394,7 @@ interface RelationGraphProps {
|
|
399
394
|
|
400
395
|
declare const RelationGraph: (props: RelationGraphProps) => React.JSX.Element;
|
401
396
|
|
402
|
-
interface CustomButtonConfig$1 extends ButtonProps
|
397
|
+
interface CustomButtonConfig$1 extends ButtonProps {
|
403
398
|
title: string;
|
404
399
|
}
|
405
400
|
interface SenseContentTableProps extends TableProps {
|
@@ -469,7 +464,6 @@ interface SenseContentTableProps extends TableProps {
|
|
469
464
|
* 触发刷新的回调
|
470
465
|
*/
|
471
466
|
onRefresh?: () => void;
|
472
|
-
proTableContainerHeight?: number;
|
473
467
|
}
|
474
468
|
interface SenseContentTableRef {
|
475
469
|
/**
|
@@ -480,6 +474,15 @@ interface SenseContentTableRef {
|
|
480
474
|
|
481
475
|
declare const SenseContentTable: React.ForwardRefExoticComponent<SenseContentTableProps & React.RefAttributes<SenseContentTableRef>>;
|
482
476
|
|
477
|
+
interface CcosSenseContentTableProps extends SenseContentTableProps {
|
478
|
+
'data-dnd': string;
|
479
|
+
tid: string;
|
480
|
+
}
|
481
|
+
declare const CcosSenseContentTable: {
|
482
|
+
(props: CcosSenseContentTableProps): React.JSX.Element;
|
483
|
+
settings: ComponentPrototype;
|
484
|
+
};
|
485
|
+
|
483
486
|
interface SenseCreateProps {
|
484
487
|
/**
|
485
488
|
* 视图编码
|
@@ -688,7 +691,7 @@ interface SenseFormRef {
|
|
688
691
|
|
689
692
|
declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
|
690
693
|
|
691
|
-
interface CustomButtonConfig extends ButtonProps
|
694
|
+
interface CustomButtonConfig extends ButtonProps {
|
692
695
|
title: string;
|
693
696
|
}
|
694
697
|
interface SenseFullTableProps {
|
@@ -817,6 +820,21 @@ interface SenseFullTableProps {
|
|
817
820
|
* @param record
|
818
821
|
*/
|
819
822
|
onDoubleClickSense?: (record: any) => void;
|
823
|
+
/**
|
824
|
+
* 点击标签配置
|
825
|
+
* @param record
|
826
|
+
*/
|
827
|
+
onTagConfig?: (record: EntityManagerAPI.BookGroupItem) => void;
|
828
|
+
/**
|
829
|
+
* 查看台账属性
|
830
|
+
* @param record
|
831
|
+
*/
|
832
|
+
onBookAttribute?: (record: any) => void;
|
833
|
+
/**
|
834
|
+
* 台账共享
|
835
|
+
* @param record
|
836
|
+
*/
|
837
|
+
onBookShare?: (record: any) => void;
|
820
838
|
}
|
821
839
|
interface SenseFullTableRef {
|
822
840
|
/**
|
@@ -929,6 +947,21 @@ interface SenseManagerProps {
|
|
929
947
|
* @param record
|
930
948
|
*/
|
931
949
|
onDoubleClickSense?: (record: any) => void;
|
950
|
+
/**
|
951
|
+
* 点击标签配置
|
952
|
+
* @param record
|
953
|
+
*/
|
954
|
+
onTagConfig?: (record: EntityManagerAPI.BookGroupItem) => void;
|
955
|
+
/**
|
956
|
+
* 查看台账属性
|
957
|
+
* @param record
|
958
|
+
*/
|
959
|
+
onBookAttribute?: (record: any) => void;
|
960
|
+
/**
|
961
|
+
* 台账共享
|
962
|
+
* @param record
|
963
|
+
*/
|
964
|
+
onBookShare?: (record: any) => void;
|
932
965
|
}
|
933
966
|
|
934
967
|
declare const SenseManager: React.FC<SenseManagerProps>;
|
@@ -1392,13 +1425,31 @@ type TagTreeSelectProps = TreeSelectProps;
|
|
1392
1425
|
declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
|
1393
1426
|
|
1394
1427
|
interface VideoControlProps extends VideoPlayerProps$1 {
|
1428
|
+
/**
|
1429
|
+
* 禁用云台控制
|
1430
|
+
*/
|
1395
1431
|
disabled?: boolean;
|
1432
|
+
/**
|
1433
|
+
* 操作按钮文本颜色
|
1434
|
+
*/
|
1396
1435
|
operationIconColor?: string;
|
1436
|
+
/**
|
1437
|
+
* 操作按钮边框颜色
|
1438
|
+
*/
|
1397
1439
|
operateIconBorderColor?: string;
|
1398
1440
|
}
|
1399
1441
|
|
1400
1442
|
declare const VideoControl: (props: VideoControlProps) => React.JSX.Element;
|
1401
1443
|
|
1444
|
+
interface CcosVideoControlProps extends VideoControlProps {
|
1445
|
+
'data-dnd': string;
|
1446
|
+
tid: string;
|
1447
|
+
}
|
1448
|
+
declare const CcosVideoControl: {
|
1449
|
+
(props: CcosVideoControlProps): React.JSX.Element;
|
1450
|
+
settings: ComponentPrototype;
|
1451
|
+
};
|
1452
|
+
|
1402
1453
|
interface VideoPlayerProps {
|
1403
1454
|
/**
|
1404
1455
|
* 视频播放器库路径
|
@@ -1443,4 +1494,4 @@ declare const CcosVideoPlayer: {
|
|
1443
1494
|
type Config = Pick<IcosDesktopType, 'apiPrefix'>;
|
1444
1495
|
declare const setCconfig: (config: Config) => void;
|
1445
1496
|
|
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 };
|
1497
|
+
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 };
|