@icos-desktop/react-components 2.0.0-beta.1.1.1 → 2.0.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.
- package/dist/icos-desktop.d.ts +406 -243
- package/dist/icos-desktop.js +55443 -5647
- package/dist/icos-desktop.umd.cjs +2 -1
- package/package.json +30 -7
package/dist/icos-desktop.d.ts
CHANGED
@@ -1,13 +1,81 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { TableProps, TreeSelectProps } from '@xirang/design-antd';
|
1
|
+
import React, { ReactNode } from 'react';
|
3
2
|
import { ButtonProps } from 'antd/es/button/button';
|
3
|
+
import { SelectProps, TableProps, TreeSelectProps, ModalProps, InputProps, CascaderProps } from '@xirang/design-antd';
|
4
|
+
import { ContextMenuKey as ContextMenuKey$2 } from '@/components/BookTable/BookTable.types';
|
5
|
+
import { ContextMenuKey as ContextMenuKey$3 } from '@/components/SenseTable/SenseTable.types';
|
6
|
+
import { VideoPlayerProps as VideoPlayerProps$1 } from '@/components/VideoPlayer';
|
4
7
|
import { IcosDesktopType } from '@/global';
|
5
8
|
|
9
|
+
interface BookDetailProps {
|
10
|
+
/**
|
11
|
+
* 台账 id
|
12
|
+
*/
|
13
|
+
bookId: string;
|
14
|
+
}
|
15
|
+
|
16
|
+
declare const BookDetail: (props: BookDetailProps) => React.JSX.Element;
|
17
|
+
|
18
|
+
interface CcosBookDetailProps extends BookDetailProps {
|
19
|
+
'data-dnd': string;
|
20
|
+
tid: string;
|
21
|
+
}
|
22
|
+
declare const CcosBookDetail: {
|
23
|
+
(props: CcosBookDetailProps): React.JSX.Element;
|
24
|
+
settings: ComponentPrototype;
|
25
|
+
};
|
26
|
+
|
27
|
+
interface BookGroupImportRef {
|
28
|
+
/**
|
29
|
+
* 确定导入
|
30
|
+
*/
|
31
|
+
import: () => void;
|
32
|
+
}
|
33
|
+
interface BookGroupImportProps {
|
34
|
+
/**
|
35
|
+
* 视图编码
|
36
|
+
*/
|
37
|
+
viewCode: string;
|
38
|
+
/**
|
39
|
+
* 台账组编码
|
40
|
+
*/
|
41
|
+
bookGroupId: string;
|
42
|
+
/**
|
43
|
+
* 隐藏根据地址自动匹配
|
44
|
+
*/
|
45
|
+
hiddenGeolevel?: boolean;
|
46
|
+
/**
|
47
|
+
* 确定按钮文字
|
48
|
+
*/
|
49
|
+
okText?: React.ReactNode;
|
50
|
+
/**
|
51
|
+
* 取消按钮文字
|
52
|
+
*/
|
53
|
+
cancelText?: React.ReactNode;
|
54
|
+
/**
|
55
|
+
* 确定按钮属性
|
56
|
+
*/
|
57
|
+
okButtonProps?: ButtonProps;
|
58
|
+
/**
|
59
|
+
* 取消按钮属性
|
60
|
+
*/
|
61
|
+
cancelButtonProps?: ButtonProps;
|
62
|
+
/**
|
63
|
+
* 点击取消按钮
|
64
|
+
*/
|
65
|
+
onCancel?: () => void;
|
66
|
+
/**
|
67
|
+
* 保存成功
|
68
|
+
*/
|
69
|
+
onSuccess?: () => void;
|
70
|
+
}
|
71
|
+
|
72
|
+
declare const BookGroupImport: React.ForwardRefExoticComponent<BookGroupImportProps & React.RefAttributes<BookGroupImportRef>>;
|
73
|
+
|
6
74
|
interface BookGroupTableProps {
|
7
75
|
/**
|
8
76
|
* 查看方式 (1 - 实体类别, 2 - 所属组织), 若为空则返回台账组不分组
|
9
77
|
*/
|
10
|
-
displayWay?:
|
78
|
+
displayWay?: string;
|
11
79
|
/**
|
12
80
|
* 节点编码, 若为空则返回台账组不分组
|
13
81
|
*/
|
@@ -35,14 +103,124 @@ interface BookGroupTableProps {
|
|
35
103
|
proTableSortIconColor?: string;
|
36
104
|
proTableSelectIcon?: string;
|
37
105
|
proTableSelectMultipleIconColor?: string;
|
38
|
-
proTablePaginationArrowBg?: string;
|
39
|
-
proTablePaginationBorderStyle?: string;
|
40
|
-
proTablePaginationBorderWidth?: number;
|
41
|
-
proTablePaginationBorderColor?: string;
|
42
106
|
}
|
43
107
|
|
44
|
-
declare const BookGroupTable: React.
|
108
|
+
declare const BookGroupTable: (props: BookGroupTableProps) => React.JSX.Element;
|
45
109
|
|
110
|
+
interface BookImportProps {
|
111
|
+
/**
|
112
|
+
* 台账id
|
113
|
+
*/
|
114
|
+
bookId: string;
|
115
|
+
/**
|
116
|
+
* 取消按钮文字
|
117
|
+
*/
|
118
|
+
cancelText?: string;
|
119
|
+
/**
|
120
|
+
* 点击取消按钮
|
121
|
+
*/
|
122
|
+
onCancel?: () => void;
|
123
|
+
/**
|
124
|
+
* 保存成功
|
125
|
+
*/
|
126
|
+
onSuccess?: () => void;
|
127
|
+
/**
|
128
|
+
* 保存失败
|
129
|
+
*/
|
130
|
+
onError?: (error: any) => void;
|
131
|
+
/**
|
132
|
+
* 模版下载提示文本颜色
|
133
|
+
*/
|
134
|
+
downloadTextColor?: string;
|
135
|
+
/**
|
136
|
+
* 文件上传文本颜色
|
137
|
+
*/
|
138
|
+
uploadTextColor?: string;
|
139
|
+
/**
|
140
|
+
* 文件上传第二行文本颜色
|
141
|
+
*/
|
142
|
+
uploadHintColor?: string;
|
143
|
+
/**
|
144
|
+
* 上传后文本颜色
|
145
|
+
*/
|
146
|
+
uploadFileNameColor?: string;
|
147
|
+
/**
|
148
|
+
* 底部操作区域背景颜色
|
149
|
+
*/
|
150
|
+
bottomBgColor?: string;
|
151
|
+
/**
|
152
|
+
* 底部操作区域边框样式
|
153
|
+
*/
|
154
|
+
bottomBorderStyle?: string;
|
155
|
+
/**
|
156
|
+
* 底部操作区域边框颜色
|
157
|
+
*/
|
158
|
+
bottomBorderColor?: string;
|
159
|
+
/**
|
160
|
+
* 底部操作区域边框宽度
|
161
|
+
*/
|
162
|
+
bottomBorderWidth?: number;
|
163
|
+
/**
|
164
|
+
* 上传图片
|
165
|
+
*/
|
166
|
+
uploadImgColor?: string;
|
167
|
+
/**
|
168
|
+
* 文件图片
|
169
|
+
*/
|
170
|
+
fileImgColor?: string;
|
171
|
+
/**
|
172
|
+
* 删除图片
|
173
|
+
*/
|
174
|
+
deleteImgColor?: string;
|
175
|
+
}
|
176
|
+
|
177
|
+
declare const BookImport: (props: BookImportProps) => React.JSX.Element;
|
178
|
+
|
179
|
+
interface BookInfoProps {
|
180
|
+
/**
|
181
|
+
* 台账模板 id
|
182
|
+
*/
|
183
|
+
templateId?: string;
|
184
|
+
/**
|
185
|
+
* 台账 id
|
186
|
+
*/
|
187
|
+
bookId?: string;
|
188
|
+
/**
|
189
|
+
* 操作模式
|
190
|
+
*/
|
191
|
+
mode?: 'view' | 'edit' | 'create';
|
192
|
+
}
|
193
|
+
interface BookInfoRef {
|
194
|
+
/**
|
195
|
+
* 获取当前表单数据
|
196
|
+
*/
|
197
|
+
getValues: () => Promise<any>;
|
198
|
+
/**
|
199
|
+
* 表单校验
|
200
|
+
*/
|
201
|
+
validateFields: () => Promise<any>;
|
202
|
+
/**
|
203
|
+
* 保存
|
204
|
+
*/
|
205
|
+
handleSave: () => Promise<any>;
|
206
|
+
}
|
207
|
+
|
208
|
+
declare const BookInfo: React.ForwardRefExoticComponent<BookInfoProps & React.RefAttributes<BookInfoRef>>;
|
209
|
+
|
210
|
+
interface BookSelectProps extends SelectProps {
|
211
|
+
/**
|
212
|
+
* 实体类型编码
|
213
|
+
*/
|
214
|
+
entityClassCode: string;
|
215
|
+
/**
|
216
|
+
* 视图编码
|
217
|
+
*/
|
218
|
+
viewCodes?: string[];
|
219
|
+
}
|
220
|
+
|
221
|
+
declare const BookSelect: React.FC<BookSelectProps>;
|
222
|
+
|
223
|
+
type ContextMenuKey$1 = 'create' | 'tagConfig' | 'show' | 'delete' | 'attribute' | 'export' | 'share';
|
46
224
|
interface BookTableProps extends TableProps {
|
47
225
|
/**
|
48
226
|
* 表头配置
|
@@ -61,6 +239,14 @@ interface BookTableProps extends TableProps {
|
|
61
239
|
* 视图编码
|
62
240
|
*/
|
63
241
|
viewCodes?: string[];
|
242
|
+
/**
|
243
|
+
* 查看方式 (1 - 实体类别, 2 - 所属组织), 若为空则返回台账组不分组
|
244
|
+
*/
|
245
|
+
displayWay?: string;
|
246
|
+
/**
|
247
|
+
* 节点编码
|
248
|
+
*/
|
249
|
+
nodeCode?: string;
|
64
250
|
/**
|
65
251
|
* 搜索关键词
|
66
252
|
*/
|
@@ -72,7 +258,7 @@ interface BookTableProps extends TableProps {
|
|
72
258
|
/**
|
73
259
|
* 台账功能
|
74
260
|
*/
|
75
|
-
contextMenuConfig?:
|
261
|
+
contextMenuConfig?: ContextMenuKey$1[];
|
76
262
|
/**
|
77
263
|
* 双击台账
|
78
264
|
* @param record
|
@@ -93,10 +279,6 @@ interface BookTableProps extends TableProps {
|
|
93
279
|
proTableSortIconColor?: string;
|
94
280
|
proTableSelectIcon?: string;
|
95
281
|
proTableSelectMultipleIconColor?: string;
|
96
|
-
proTablePaginationArrowBg?: string;
|
97
|
-
proTablePaginationBorderStyle?: string;
|
98
|
-
proTablePaginationBorderWidth?: number;
|
99
|
-
proTablePaginationBorderColor?: string;
|
100
282
|
}
|
101
283
|
interface BookTableRef {
|
102
284
|
/**
|
@@ -107,6 +289,55 @@ interface BookTableRef {
|
|
107
289
|
|
108
290
|
declare const BookTable: React.ForwardRefExoticComponent<BookTableProps & React.RefAttributes<BookTableRef>>;
|
109
291
|
|
292
|
+
interface EntityClassFilterProps {
|
293
|
+
/**
|
294
|
+
* 默认筛选的实体类型编码
|
295
|
+
*/
|
296
|
+
defaultEntityClassCode?: string;
|
297
|
+
/**
|
298
|
+
* 视图编码
|
299
|
+
*/
|
300
|
+
viewCodes?: string[];
|
301
|
+
/**
|
302
|
+
* 筛选项变化
|
303
|
+
*/
|
304
|
+
onChange?: (entityClassCodes: string[][]) => void;
|
305
|
+
/**
|
306
|
+
* 触发筛选
|
307
|
+
*/
|
308
|
+
onFilter?: (entityClassCodes: string[]) => void;
|
309
|
+
/**
|
310
|
+
* 样式类名
|
311
|
+
*/
|
312
|
+
className?: string;
|
313
|
+
}
|
314
|
+
|
315
|
+
declare const EntityClassFilter: React.FC<EntityClassFilterProps>;
|
316
|
+
|
317
|
+
interface EntityClassTreeSelectProps extends TreeSelectProps {
|
318
|
+
parentNodeCode?: string;
|
319
|
+
viewCodes?: string[];
|
320
|
+
}
|
321
|
+
|
322
|
+
declare const EntityClassTreeSelect: React.FC<EntityClassTreeSelectProps>;
|
323
|
+
|
324
|
+
interface ImportTableProps {
|
325
|
+
children?: ReactNode;
|
326
|
+
}
|
327
|
+
|
328
|
+
declare const ImportTable: React.FC<ImportTableProps>;
|
329
|
+
|
330
|
+
interface CcosImportTableProps extends ImportTableProps {
|
331
|
+
'data-dnd': string;
|
332
|
+
tid: string;
|
333
|
+
}
|
334
|
+
declare const CcosImportTable: {
|
335
|
+
(props: CcosImportTableProps): React.JSX.Element;
|
336
|
+
settings: ComponentPrototype;
|
337
|
+
};
|
338
|
+
|
339
|
+
declare const Modal: React.FC<ModalProps>;
|
340
|
+
|
110
341
|
interface OrgTreeSelectProps extends TreeSelectProps {
|
111
342
|
all?: boolean;
|
112
343
|
}
|
@@ -143,6 +374,12 @@ interface PersonSelectorProps {
|
|
143
374
|
|
144
375
|
declare const PersonSelector: React.FC<PersonSelectorProps>;
|
145
376
|
|
377
|
+
interface ProSearchProps extends InputProps {
|
378
|
+
allowMultiple: boolean;
|
379
|
+
}
|
380
|
+
|
381
|
+
declare const ProSearch: React.FC<ProSearchProps>;
|
382
|
+
|
146
383
|
interface ProTableProps extends TableProps {
|
147
384
|
header: {
|
148
385
|
code: string;
|
@@ -156,16 +393,22 @@ interface ProTableProps extends TableProps {
|
|
156
393
|
sortIconColor?: string;
|
157
394
|
selectIcon?: string;
|
158
395
|
selectMultipleIconColor?: string;
|
159
|
-
paginationArrowBg?: string;
|
160
|
-
paginationBorderStyle?: string;
|
161
|
-
paginationBorderWidth?: number;
|
162
|
-
paginationBorderColor?: string;
|
163
396
|
}
|
164
397
|
|
165
398
|
declare const _default: React.NamedExoticComponent<ProTableProps>;
|
166
399
|
|
400
|
+
interface RegionCascaderProps extends CascaderProps<any, any, any> {
|
401
|
+
regionId?: string;
|
402
|
+
}
|
403
|
+
|
404
|
+
declare const RegionCascader: React.FC<RegionCascaderProps>;
|
405
|
+
|
167
406
|
interface RegionTreeSelectProps extends TreeSelectProps {
|
168
407
|
regionId?: string;
|
408
|
+
/**
|
409
|
+
* 默认树数据
|
410
|
+
*/
|
411
|
+
defaultTreeData?: any[];
|
169
412
|
}
|
170
413
|
|
171
414
|
declare const RegionTreeSelect: React.FC<RegionTreeSelectProps>;
|
@@ -177,18 +420,25 @@ interface RelationGraphProps {
|
|
177
420
|
senseGlobalCode: string;
|
178
421
|
}
|
179
422
|
|
180
|
-
declare const RelationGraph: React.
|
423
|
+
declare const RelationGraph: (props: RelationGraphProps) => React.JSX.Element;
|
181
424
|
|
182
425
|
interface SenseCreateProps {
|
183
|
-
bookId: string;
|
184
426
|
/**
|
185
|
-
*
|
427
|
+
* 视图编码
|
186
428
|
*/
|
187
|
-
|
429
|
+
viewCodes?: string[];
|
188
430
|
/**
|
189
|
-
*
|
431
|
+
* 实体类型编码筛选
|
190
432
|
*/
|
191
|
-
|
433
|
+
senseObjCode?: string;
|
434
|
+
/**
|
435
|
+
* 台账id
|
436
|
+
*/
|
437
|
+
bookId?: string;
|
438
|
+
/**
|
439
|
+
* 点击取消按钮
|
440
|
+
*/
|
441
|
+
onCancel?: () => void;
|
192
442
|
/**
|
193
443
|
* 保存成功
|
194
444
|
*/
|
@@ -301,10 +551,6 @@ interface SenseDetailProps {
|
|
301
551
|
* 文本颜色
|
302
552
|
*/
|
303
553
|
senseInfoTextColor?: string;
|
304
|
-
/**
|
305
|
-
* 高亮文本颜色
|
306
|
-
*/
|
307
|
-
senseInfoTextHighlightColor?: string;
|
308
554
|
/**
|
309
555
|
* 表格边框颜色
|
310
556
|
*/
|
@@ -317,13 +563,9 @@ interface SenseDetailProps {
|
|
317
563
|
* 表格边框样式
|
318
564
|
*/
|
319
565
|
senseInfoBorderStyle?: string;
|
320
|
-
/**
|
321
|
-
* 左侧label背景颜色
|
322
|
-
*/
|
323
|
-
senseInfoLabelBgColor?: string;
|
324
566
|
}
|
325
567
|
|
326
|
-
declare const SenseDetail: React.
|
568
|
+
declare const SenseDetail: (props: SenseDetailProps) => React.JSX.Element;
|
327
569
|
|
328
570
|
interface CcosSenseDetailProps extends SenseDetailProps {
|
329
571
|
'data-dnd': string;
|
@@ -345,17 +587,21 @@ interface SenseEditProps {
|
|
345
587
|
*/
|
346
588
|
bookId?: string;
|
347
589
|
/**
|
348
|
-
*
|
590
|
+
* 取消按钮文字
|
349
591
|
*/
|
350
|
-
|
592
|
+
cancelText?: string;
|
351
593
|
/**
|
352
|
-
*
|
594
|
+
* 点击取消按钮
|
353
595
|
*/
|
354
|
-
|
596
|
+
onCancel?: () => void;
|
355
597
|
/**
|
356
598
|
* 保存成功
|
357
599
|
*/
|
358
600
|
onSuccess?: (res: SenseFormAPI.SaveSenseRes) => void;
|
601
|
+
/**
|
602
|
+
* 主题色(默认暗色)
|
603
|
+
*/
|
604
|
+
theme?: 'dark' | 'light';
|
359
605
|
/**
|
360
606
|
* 底部操作栏背景色
|
361
607
|
*/
|
@@ -363,7 +609,7 @@ interface SenseEditProps {
|
|
363
609
|
/**
|
364
610
|
* 底部操作栏边框宽度
|
365
611
|
*/
|
366
|
-
bottomBorderWidth?: number;
|
612
|
+
bottomBorderWidth?: number | string;
|
367
613
|
/**
|
368
614
|
* 底部操作栏边框颜色
|
369
615
|
*/
|
@@ -374,7 +620,7 @@ interface SenseEditProps {
|
|
374
620
|
bottomBorderStyle?: string;
|
375
621
|
}
|
376
622
|
|
377
|
-
declare const SenseEdit: React.
|
623
|
+
declare const SenseEdit: (props: SenseEditProps) => React.JSX.Element;
|
378
624
|
|
379
625
|
interface CcosSenseEditProps extends SenseEditProps {
|
380
626
|
'data-dnd': string;
|
@@ -402,99 +648,25 @@ interface SenseFormProps {
|
|
402
648
|
* 是否禁用(初次渲染时生效)
|
403
649
|
*/
|
404
650
|
disabled?: boolean;
|
405
|
-
}
|
406
|
-
interface SenseFormRef {
|
407
|
-
getValues: () => Promise<any>;
|
408
|
-
validateFields: () => Promise<any>;
|
409
|
-
}
|
410
|
-
|
411
|
-
declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
|
412
|
-
|
413
|
-
interface SenseImportRef {
|
414
|
-
/**
|
415
|
-
* 确定导入
|
416
|
-
*/
|
417
|
-
import: () => void;
|
418
|
-
}
|
419
|
-
interface SenseImportProps {
|
420
|
-
/**
|
421
|
-
* 视图编码
|
422
|
-
*/
|
423
|
-
viewCode: string;
|
424
|
-
/**
|
425
|
-
* 台账组编码
|
426
|
-
*/
|
427
|
-
bookGroupId: string;
|
428
|
-
/**
|
429
|
-
* 隐藏根据地址自动匹配
|
430
|
-
*/
|
431
|
-
hiddenGeolevel?: boolean;
|
432
|
-
/**
|
433
|
-
* 确定按钮文字
|
434
|
-
*/
|
435
|
-
okText?: React.ReactNode;
|
436
|
-
/**
|
437
|
-
* 取消按钮文字
|
438
|
-
*/
|
439
|
-
cancelText?: React.ReactNode;
|
440
|
-
/**
|
441
|
-
* 确定按钮属性
|
442
|
-
*/
|
443
|
-
okButtonProps?: ButtonProps;
|
444
|
-
/**
|
445
|
-
* 取消按钮属性
|
446
|
-
*/
|
447
|
-
cancelButtonProps?: ButtonProps;
|
448
|
-
/**
|
449
|
-
* 点击取消按钮
|
450
|
-
*/
|
451
|
-
onCancel?: () => void;
|
452
651
|
/**
|
453
|
-
*
|
652
|
+
* 主题色(初次渲染时生效,默认暗色)
|
454
653
|
*/
|
455
|
-
|
654
|
+
theme?: 'dark' | 'light';
|
456
655
|
}
|
457
|
-
|
458
|
-
declare const SenseImport: React.ForwardRefExoticComponent<SenseImportProps & React.RefAttributes<SenseImportRef>>;
|
459
|
-
|
460
|
-
interface SenseInfoProps {
|
461
|
-
/**
|
462
|
-
* 实体编码
|
463
|
-
*/
|
464
|
-
senseGlobalCode: string;
|
465
|
-
/**
|
466
|
-
* 启用标签
|
467
|
-
*/
|
468
|
-
enableTag?: boolean;
|
469
|
-
/**
|
470
|
-
* 文本颜色
|
471
|
-
*/
|
472
|
-
textColor?: string;
|
473
|
-
/**
|
474
|
-
* 高亮文本颜色
|
475
|
-
*/
|
476
|
-
textHighlightColor?: string;
|
477
|
-
/**
|
478
|
-
* 表格边框颜色
|
479
|
-
*/
|
480
|
-
borderColor?: string;
|
481
|
-
/**
|
482
|
-
* 表格边框宽度
|
483
|
-
*/
|
484
|
-
borderWidth?: number;
|
656
|
+
interface SenseFormRef {
|
485
657
|
/**
|
486
|
-
*
|
658
|
+
* 获取当前表单数据
|
487
659
|
*/
|
488
|
-
|
660
|
+
getValues: () => Promise<any>;
|
489
661
|
/**
|
490
|
-
*
|
662
|
+
* 表单校验
|
491
663
|
*/
|
492
|
-
|
664
|
+
validateFields: () => Promise<any>;
|
493
665
|
}
|
494
666
|
|
495
|
-
declare const
|
667
|
+
declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
|
496
668
|
|
497
|
-
interface
|
669
|
+
interface SenseFullTableProps {
|
498
670
|
/**
|
499
671
|
* 显示视图类型:system 系统视图,func 功能视图
|
500
672
|
*/
|
@@ -502,7 +674,7 @@ interface SenseManagerProps {
|
|
502
674
|
/**
|
503
675
|
* 左侧边栏显示视图列表
|
504
676
|
*/
|
505
|
-
views
|
677
|
+
views?: {
|
506
678
|
label: string;
|
507
679
|
value: string;
|
508
680
|
}[];
|
@@ -510,6 +682,10 @@ interface SenseManagerProps {
|
|
510
682
|
* 显示左侧边栏
|
511
683
|
*/
|
512
684
|
showView?: boolean;
|
685
|
+
/**
|
686
|
+
* 显示分类目录
|
687
|
+
*/
|
688
|
+
showCatalog?: boolean;
|
513
689
|
/**
|
514
690
|
* 显示面包屑
|
515
691
|
*/
|
@@ -538,11 +714,11 @@ interface SenseManagerProps {
|
|
538
714
|
/**
|
539
715
|
* 台账功能
|
540
716
|
*/
|
541
|
-
bookContextMenuConfig?:
|
717
|
+
bookContextMenuConfig?: ContextMenuKey$2[];
|
542
718
|
/**
|
543
719
|
* 实体记录功能
|
544
720
|
*/
|
545
|
-
senseContextMenuConfig?:
|
721
|
+
senseContextMenuConfig?: ContextMenuKey$3[];
|
546
722
|
/**
|
547
723
|
* 启用标签
|
548
724
|
*/
|
@@ -606,12 +782,8 @@ interface SenseManagerProps {
|
|
606
782
|
proTableSortIconColor?: string;
|
607
783
|
proTableSelectIcon?: string;
|
608
784
|
proTableSelectMultipleIconColor?: string;
|
609
|
-
proTablePaginationArrowBg?: string;
|
610
|
-
proTablePaginationBorderStyle?: string;
|
611
|
-
proTablePaginationBorderWidth?: number;
|
612
|
-
proTablePaginationBorderColor?: string;
|
613
785
|
}
|
614
|
-
interface
|
786
|
+
interface SenseFullTableRef {
|
615
787
|
/**
|
616
788
|
* 刷新台账列表
|
617
789
|
*/
|
@@ -622,9 +794,9 @@ interface SenseManagerRef {
|
|
622
794
|
refreshSenseTable: () => void;
|
623
795
|
}
|
624
796
|
|
625
|
-
declare const
|
797
|
+
declare const SenseFullTable: React.ForwardRefExoticComponent<SenseFullTableProps & React.RefAttributes<SenseFullTableRef>>;
|
626
798
|
|
627
|
-
interface
|
799
|
+
interface CcosSenseFullTableProps extends Omit<SenseFullTableProps, 'views'> {
|
628
800
|
'data-dnd': string;
|
629
801
|
tid: string;
|
630
802
|
views: {
|
@@ -637,7 +809,57 @@ interface CcosSenseManagerProps extends Omit<SenseManagerProps, 'views'> {
|
|
637
809
|
showBookContextMenuConfig?: boolean;
|
638
810
|
showSenseContextMenuConfig?: boolean;
|
639
811
|
}
|
640
|
-
declare const
|
812
|
+
declare const CcosSenseFullTable: React.ForwardRefExoticComponent<CcosSenseFullTableProps & React.RefAttributes<SenseFullTableRef>>;
|
813
|
+
|
814
|
+
interface SenseInfoProps {
|
815
|
+
/**
|
816
|
+
* 实体编码
|
817
|
+
*/
|
818
|
+
senseGlobalCode: string;
|
819
|
+
/**
|
820
|
+
* 启用标签
|
821
|
+
*/
|
822
|
+
enableTag?: boolean;
|
823
|
+
/**
|
824
|
+
* 文本颜色
|
825
|
+
*/
|
826
|
+
textColor?: string;
|
827
|
+
/**
|
828
|
+
* 表格边框颜色
|
829
|
+
*/
|
830
|
+
borderColor?: string;
|
831
|
+
/**
|
832
|
+
* 表格边框宽度
|
833
|
+
*/
|
834
|
+
borderWidth?: number | string;
|
835
|
+
/**
|
836
|
+
* 表格边框样式
|
837
|
+
*/
|
838
|
+
borderStyle?: string;
|
839
|
+
}
|
840
|
+
|
841
|
+
declare const SenseInfo: (props: SenseInfoProps) => React.JSX.Element;
|
842
|
+
|
843
|
+
interface SenseManagerProps {
|
844
|
+
/**
|
845
|
+
* 左侧边栏显示视图列表
|
846
|
+
*/
|
847
|
+
views?: {
|
848
|
+
label: string;
|
849
|
+
value: string;
|
850
|
+
}[];
|
851
|
+
}
|
852
|
+
|
853
|
+
declare const SenseManager: React.FC<SenseManagerProps>;
|
854
|
+
|
855
|
+
interface CcosSenseManagerProps extends SenseManagerProps {
|
856
|
+
'data-dnd': string;
|
857
|
+
tid: string;
|
858
|
+
}
|
859
|
+
declare const CcosSenseManager: {
|
860
|
+
(props: CcosSenseManagerProps): React.JSX.Element;
|
861
|
+
settings: ComponentPrototype;
|
862
|
+
};
|
641
863
|
|
642
864
|
interface SenseSearchProps {
|
643
865
|
/**
|
@@ -673,48 +895,16 @@ interface SenseSearchProps {
|
|
673
895
|
*/
|
674
896
|
onMapDraw?: (value: any) => void;
|
675
897
|
/**
|
676
|
-
*
|
677
|
-
*/
|
678
|
-
tab1BgColor?: string;
|
679
|
-
/**
|
680
|
-
* 搜索按钮背景颜色
|
681
|
-
*/
|
682
|
-
searchBtnBgColor?: string;
|
683
|
-
/**
|
684
|
-
* tab-类型2背景颜色
|
685
|
-
*/
|
686
|
-
tab2BgColor?: string;
|
687
|
-
/**
|
688
|
-
* tab-类型2文本颜色
|
689
|
-
*/
|
690
|
-
tab2TextColor?: string;
|
691
|
-
/**
|
692
|
-
* tab-类型3边框颜色
|
693
|
-
*/
|
694
|
-
tab3BorderColor?: string;
|
695
|
-
/**
|
696
|
-
* tab-类型3选中边框颜色
|
697
|
-
*/
|
698
|
-
tab3SelectedBorderColor?: string;
|
699
|
-
/**
|
700
|
-
* tab-类型3选中文本颜色
|
701
|
-
*/
|
702
|
-
tab3SelectedTextColor?: string;
|
703
|
-
/**
|
704
|
-
* 区域选择类型边框颜色
|
705
|
-
*/
|
706
|
-
areaBorderColor?: string;
|
707
|
-
/**
|
708
|
-
* 区域选择类型选中颜色
|
898
|
+
* 搜索图标颜色
|
709
899
|
*/
|
710
|
-
|
900
|
+
inputIconColor?: string;
|
711
901
|
/**
|
712
|
-
*
|
902
|
+
* 时空搜索表单背景颜色
|
713
903
|
*/
|
714
|
-
|
904
|
+
formBgColor?: string;
|
715
905
|
}
|
716
906
|
|
717
|
-
declare const SenseSearch: React.
|
907
|
+
declare const SenseSearch: (props: SenseSearchProps) => React.JSX.Element;
|
718
908
|
|
719
909
|
interface CcosSenseSearchProps extends SenseSearchProps {
|
720
910
|
'data-dnd': string;
|
@@ -726,11 +916,16 @@ declare const CcosSenseSearch: {
|
|
726
916
|
settings: ComponentPrototype;
|
727
917
|
};
|
728
918
|
|
919
|
+
type ContextMenuKey = 'show' | 'edit' | 'cut' | 'copy' | 'delete';
|
729
920
|
interface SenseTableProps extends TableProps {
|
730
921
|
/**
|
731
922
|
* 台账 id
|
732
923
|
*/
|
733
924
|
bookId?: string;
|
925
|
+
/**
|
926
|
+
* 批量台账 id
|
927
|
+
*/
|
928
|
+
bookIds?: string[];
|
734
929
|
/**
|
735
930
|
* 台账模板 id
|
736
931
|
*/
|
@@ -762,11 +957,11 @@ interface SenseTableProps extends TableProps {
|
|
762
957
|
/**
|
763
958
|
* 实体记录功能
|
764
959
|
*/
|
765
|
-
contextMenuConfig?:
|
960
|
+
contextMenuConfig?: ContextMenuKey[];
|
766
961
|
/**
|
767
962
|
* 启用标签
|
768
963
|
*/
|
769
|
-
enableTag?: boolean;
|
964
|
+
enableTag?: boolean | 'edit';
|
770
965
|
/**
|
771
966
|
* 单击实体
|
772
967
|
* @param record
|
@@ -797,10 +992,6 @@ interface SenseTableProps extends TableProps {
|
|
797
992
|
proTableSortIconColor?: string;
|
798
993
|
proTableSelectIcon?: string;
|
799
994
|
proTableSelectMultipleIconColor?: string;
|
800
|
-
proTablePaginationArrowBg?: string;
|
801
|
-
proTablePaginationBorderStyle?: string;
|
802
|
-
proTablePaginationBorderWidth?: number;
|
803
|
-
proTablePaginationBorderColor?: string;
|
804
995
|
}
|
805
996
|
interface SenseTableRef {
|
806
997
|
/**
|
@@ -900,7 +1091,7 @@ interface SenseTreeProps {
|
|
900
1091
|
statisticsFontColor?: string;
|
901
1092
|
}
|
902
1093
|
|
903
|
-
declare const SenseTree: React.
|
1094
|
+
declare const SenseTree: (props: SenseTreeProps) => React.JSX.Element;
|
904
1095
|
|
905
1096
|
interface CcosSenseTreeProps extends SenseTreeProps {
|
906
1097
|
'data-dnd': string;
|
@@ -915,69 +1106,6 @@ declare const CcosSenseTree: {
|
|
915
1106
|
settings: ComponentPrototype;
|
916
1107
|
};
|
917
1108
|
|
918
|
-
interface SenseUploadProps {
|
919
|
-
/** 台账id */
|
920
|
-
bookId: string;
|
921
|
-
/**
|
922
|
-
* 点击取消按钮
|
923
|
-
*/
|
924
|
-
onCancel?: () => void;
|
925
|
-
/**
|
926
|
-
* 保存成功
|
927
|
-
*/
|
928
|
-
onSuccess?: () => void;
|
929
|
-
/**
|
930
|
-
* 保存失败
|
931
|
-
*/
|
932
|
-
onError?: (error: any) => void;
|
933
|
-
/**
|
934
|
-
* 模版下载提示文本颜色
|
935
|
-
*/
|
936
|
-
downloadTextColor?: string;
|
937
|
-
/**
|
938
|
-
* 文件上传文本颜色
|
939
|
-
*/
|
940
|
-
uploadTextColor?: string;
|
941
|
-
/**
|
942
|
-
* 文件上传第二行文本颜色
|
943
|
-
*/
|
944
|
-
uploadHintColor?: string;
|
945
|
-
/**
|
946
|
-
* 上传后文本颜色
|
947
|
-
*/
|
948
|
-
uploadFileNameColor?: string;
|
949
|
-
/**
|
950
|
-
* 底部操作区域背景颜色
|
951
|
-
*/
|
952
|
-
bottomBgColor?: string;
|
953
|
-
/**
|
954
|
-
* 底部操作区域边框样式
|
955
|
-
*/
|
956
|
-
bottomBorderStyle?: string;
|
957
|
-
/**
|
958
|
-
* 底部操作区域边框颜色
|
959
|
-
*/
|
960
|
-
bottomBorderColor?: string;
|
961
|
-
/**
|
962
|
-
* 底部操作区域边框宽度
|
963
|
-
*/
|
964
|
-
bottomBorderWidth?: number;
|
965
|
-
/**
|
966
|
-
* 上传图片
|
967
|
-
*/
|
968
|
-
uploadImgColor?: string;
|
969
|
-
/**
|
970
|
-
* 文件图片
|
971
|
-
*/
|
972
|
-
fileImgColor?: string;
|
973
|
-
/**
|
974
|
-
* 删除图片
|
975
|
-
*/
|
976
|
-
deleteImgColor?: string;
|
977
|
-
}
|
978
|
-
|
979
|
-
declare const SenseUpload: React.FC<SenseUploadProps>;
|
980
|
-
|
981
1109
|
interface SenseViewProps {
|
982
1110
|
/**
|
983
1111
|
* 功能视图编码
|
@@ -1033,7 +1161,7 @@ interface SenseViewProps {
|
|
1033
1161
|
/**
|
1034
1162
|
* 底部按钮功能
|
1035
1163
|
*/
|
1036
|
-
bottomButtonConfig?: 'download'[];
|
1164
|
+
bottomButtonConfig?: ('download' | 'share')[];
|
1037
1165
|
/**
|
1038
1166
|
* 实体总数变化
|
1039
1167
|
*/
|
@@ -1060,7 +1188,7 @@ interface SenseViewProps {
|
|
1060
1188
|
onEditSense?: (node: any, e: any) => void;
|
1061
1189
|
}
|
1062
1190
|
|
1063
|
-
declare const SenseView: React.
|
1191
|
+
declare const SenseView: (props: SenseViewProps) => React.JSX.Element;
|
1064
1192
|
|
1065
1193
|
interface CcosSenseViewProps extends SenseViewProps {
|
1066
1194
|
'data-dnd': string;
|
@@ -1074,10 +1202,45 @@ declare const CcosSenseView: {
|
|
1074
1202
|
settings: ComponentPrototype;
|
1075
1203
|
};
|
1076
1204
|
|
1205
|
+
interface TagConfigProps {
|
1206
|
+
name: string;
|
1207
|
+
bookId?: string;
|
1208
|
+
templateId?: string;
|
1209
|
+
senseObjCode?: string;
|
1210
|
+
viewCode?: string;
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
declare const TagConfig: (props: TagConfigProps) => React.JSX.Element;
|
1214
|
+
|
1215
|
+
interface CcosTagConfigProps extends TagConfigProps {
|
1216
|
+
'data-dnd': string;
|
1217
|
+
tid: string;
|
1218
|
+
}
|
1219
|
+
declare const CcosTagConfig: {
|
1220
|
+
(props: CcosTagConfigProps): React.JSX.Element;
|
1221
|
+
settings: ComponentPrototype;
|
1222
|
+
};
|
1223
|
+
|
1077
1224
|
type TagTreeSelectProps = TreeSelectProps;
|
1078
1225
|
|
1079
1226
|
declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
|
1080
1227
|
|
1228
|
+
interface VideoControlProps extends VideoPlayerProps$1 {
|
1229
|
+
disabled?: boolean;
|
1230
|
+
operationIconColor?: string;
|
1231
|
+
operateIconBorderColor?: string;
|
1232
|
+
operateIconBorderWidth?: number;
|
1233
|
+
operateIconBorderStyle?: string;
|
1234
|
+
operateIconBgColor?: string;
|
1235
|
+
operateIconShadowColor?: string;
|
1236
|
+
operateIconShadowActiveColor?: string;
|
1237
|
+
directionNormalImg?: string;
|
1238
|
+
directionActiveImg?: string;
|
1239
|
+
directionDisabledImg?: string;
|
1240
|
+
}
|
1241
|
+
|
1242
|
+
declare const VideoControl: (props: VideoControlProps) => React.JSX.Element;
|
1243
|
+
|
1081
1244
|
interface VideoPlayerProps {
|
1082
1245
|
/**
|
1083
1246
|
* 视频播放器库路径
|
@@ -1108,7 +1271,7 @@ interface VideoPlayerProps {
|
|
1108
1271
|
videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
|
1109
1272
|
}
|
1110
1273
|
|
1111
|
-
declare const VideoPlayer: React.
|
1274
|
+
declare const VideoPlayer: (props: VideoPlayerProps) => React.JSX.Element;
|
1112
1275
|
|
1113
1276
|
interface CcosVideoPlayerProps extends VideoPlayerProps {
|
1114
1277
|
'data-dnd': string;
|
@@ -1122,4 +1285,4 @@ declare const CcosVideoPlayer: {
|
|
1122
1285
|
type Config = Pick<IcosDesktopType, 'apiPrefix'>;
|
1123
1286
|
declare const setCconfig: (config: Config) => void;
|
1124
1287
|
|
1125
|
-
export { BookGroupTable, BookTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosVideoPlayer, OrgTreeSelect, PersonSelector, _default as ProTable, RegionTreeSelect, RelationGraph, SenseCreate, SenseDetail, SenseEdit, SenseForm,
|
1288
|
+
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 };
|