@icos-desktop/react-components 2.0.0-beta.1.1.0 → 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.
@@ -1,15 +1,81 @@
1
- import { TableProps, TreeSelectProps } from '@xirang/design-antd';
2
- export { App, ConfigProvider } from '@xirang/design-antd';
3
- export { default as Provider } from '@/themes/Provider';
4
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
5
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';
6
7
  import { IcosDesktopType } from '@/global';
7
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
+
8
74
  interface BookGroupTableProps {
9
75
  /**
10
76
  * 查看方式 (1 - 实体类别, 2 - 所属组织), 若为空则返回台账组不分组
11
77
  */
12
- displayWay?: 1 | 2;
78
+ displayWay?: string;
13
79
  /**
14
80
  * 节点编码, 若为空则返回台账组不分组
15
81
  */
@@ -37,14 +103,124 @@ interface BookGroupTableProps {
37
103
  proTableSortIconColor?: string;
38
104
  proTableSelectIcon?: string;
39
105
  proTableSelectMultipleIconColor?: string;
40
- proTablePaginationArrowBg?: string;
41
- proTablePaginationBorderStyle?: string;
42
- proTablePaginationBorderWidth?: number;
43
- proTablePaginationBorderColor?: string;
44
106
  }
45
107
 
46
- declare const BookGroupTable: React.FC<BookGroupTableProps>;
108
+ declare const BookGroupTable: (props: BookGroupTableProps) => React.JSX.Element;
47
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';
48
224
  interface BookTableProps extends TableProps {
49
225
  /**
50
226
  * 表头配置
@@ -63,6 +239,14 @@ interface BookTableProps extends TableProps {
63
239
  * 视图编码
64
240
  */
65
241
  viewCodes?: string[];
242
+ /**
243
+ * 查看方式 (1 - 实体类别, 2 - 所属组织), 若为空则返回台账组不分组
244
+ */
245
+ displayWay?: string;
246
+ /**
247
+ * 节点编码
248
+ */
249
+ nodeCode?: string;
66
250
  /**
67
251
  * 搜索关键词
68
252
  */
@@ -74,7 +258,7 @@ interface BookTableProps extends TableProps {
74
258
  /**
75
259
  * 台账功能
76
260
  */
77
- contextMenuConfig?: ('create' | 'show')[];
261
+ contextMenuConfig?: ContextMenuKey$1[];
78
262
  /**
79
263
  * 双击台账
80
264
  * @param record
@@ -95,10 +279,6 @@ interface BookTableProps extends TableProps {
95
279
  proTableSortIconColor?: string;
96
280
  proTableSelectIcon?: string;
97
281
  proTableSelectMultipleIconColor?: string;
98
- proTablePaginationArrowBg?: string;
99
- proTablePaginationBorderStyle?: string;
100
- proTablePaginationBorderWidth?: number;
101
- proTablePaginationBorderColor?: string;
102
282
  }
103
283
  interface BookTableRef {
104
284
  /**
@@ -109,6 +289,55 @@ interface BookTableRef {
109
289
 
110
290
  declare const BookTable: React.ForwardRefExoticComponent<BookTableProps & React.RefAttributes<BookTableRef>>;
111
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
+
112
341
  interface OrgTreeSelectProps extends TreeSelectProps {
113
342
  all?: boolean;
114
343
  }
@@ -145,6 +374,12 @@ interface PersonSelectorProps {
145
374
 
146
375
  declare const PersonSelector: React.FC<PersonSelectorProps>;
147
376
 
377
+ interface ProSearchProps extends InputProps {
378
+ allowMultiple: boolean;
379
+ }
380
+
381
+ declare const ProSearch: React.FC<ProSearchProps>;
382
+
148
383
  interface ProTableProps extends TableProps {
149
384
  header: {
150
385
  code: string;
@@ -158,16 +393,22 @@ interface ProTableProps extends TableProps {
158
393
  sortIconColor?: string;
159
394
  selectIcon?: string;
160
395
  selectMultipleIconColor?: string;
161
- paginationArrowBg?: string;
162
- paginationBorderStyle?: string;
163
- paginationBorderWidth?: number;
164
- paginationBorderColor?: string;
165
396
  }
166
397
 
167
398
  declare const _default: React.NamedExoticComponent<ProTableProps>;
168
399
 
400
+ interface RegionCascaderProps extends CascaderProps<any, any, any> {
401
+ regionId?: string;
402
+ }
403
+
404
+ declare const RegionCascader: React.FC<RegionCascaderProps>;
405
+
169
406
  interface RegionTreeSelectProps extends TreeSelectProps {
170
407
  regionId?: string;
408
+ /**
409
+ * 默认树数据
410
+ */
411
+ defaultTreeData?: any[];
171
412
  }
172
413
 
173
414
  declare const RegionTreeSelect: React.FC<RegionTreeSelectProps>;
@@ -179,18 +420,25 @@ interface RelationGraphProps {
179
420
  senseGlobalCode: string;
180
421
  }
181
422
 
182
- declare const RelationGraph: React.FC<RelationGraphProps>;
423
+ declare const RelationGraph: (props: RelationGraphProps) => React.JSX.Element;
183
424
 
184
425
  interface SenseCreateProps {
185
- bookId: string;
186
426
  /**
187
- * 点击取消按钮
427
+ * 视图编码
188
428
  */
189
- onCancel?: () => void;
429
+ viewCodes?: string[];
190
430
  /**
191
- * 点击确定按钮
431
+ * 实体类型编码筛选
192
432
  */
193
- onOk?: (values: any) => boolean | Promise<boolean>;
433
+ senseObjCode?: string;
434
+ /**
435
+ * 台账id
436
+ */
437
+ bookId?: string;
438
+ /**
439
+ * 点击取消按钮
440
+ */
441
+ onCancel?: () => void;
194
442
  /**
195
443
  * 保存成功
196
444
  */
@@ -253,7 +501,7 @@ interface CcosSenseCreateProps extends SenseCreateProps {
253
501
  }
254
502
  declare const CcosSenseCreate: {
255
503
  (props: CcosSenseCreateProps): React.JSX.Element;
256
- settings: Settings;
504
+ settings: ComponentPrototype;
257
505
  };
258
506
 
259
507
  interface SenseDetailProps {
@@ -303,10 +551,6 @@ interface SenseDetailProps {
303
551
  * 文本颜色
304
552
  */
305
553
  senseInfoTextColor?: string;
306
- /**
307
- * 高亮文本颜色
308
- */
309
- senseInfoTextHighlightColor?: string;
310
554
  /**
311
555
  * 表格边框颜色
312
556
  */
@@ -319,13 +563,9 @@ interface SenseDetailProps {
319
563
  * 表格边框样式
320
564
  */
321
565
  senseInfoBorderStyle?: string;
322
- /**
323
- * 左侧label背景颜色
324
- */
325
- senseInfoLabelBgColor?: string;
326
566
  }
327
567
 
328
- declare const SenseDetail: React.FC<SenseDetailProps>;
568
+ declare const SenseDetail: (props: SenseDetailProps) => React.JSX.Element;
329
569
 
330
570
  interface CcosSenseDetailProps extends SenseDetailProps {
331
571
  'data-dnd': string;
@@ -334,7 +574,7 @@ interface CcosSenseDetailProps extends SenseDetailProps {
334
574
  }
335
575
  declare const CcosSenseDetail: {
336
576
  (props: CcosSenseDetailProps): React.JSX.Element;
337
- settings: Settings;
577
+ settings: ComponentPrototype;
338
578
  };
339
579
 
340
580
  interface SenseEditProps {
@@ -347,17 +587,21 @@ interface SenseEditProps {
347
587
  */
348
588
  bookId?: string;
349
589
  /**
350
- * 点击取消按钮
590
+ * 取消按钮文字
351
591
  */
352
- onCancel?: () => void;
592
+ cancelText?: string;
353
593
  /**
354
- * 点击确定按钮
594
+ * 点击取消按钮
355
595
  */
356
- onOk?: (values: any) => boolean | Promise<boolean>;
596
+ onCancel?: () => void;
357
597
  /**
358
598
  * 保存成功
359
599
  */
360
600
  onSuccess?: (res: SenseFormAPI.SaveSenseRes) => void;
601
+ /**
602
+ * 主题色(默认暗色)
603
+ */
604
+ theme?: 'dark' | 'light';
361
605
  /**
362
606
  * 底部操作栏背景色
363
607
  */
@@ -365,7 +609,7 @@ interface SenseEditProps {
365
609
  /**
366
610
  * 底部操作栏边框宽度
367
611
  */
368
- bottomBorderWidth?: number;
612
+ bottomBorderWidth?: number | string;
369
613
  /**
370
614
  * 底部操作栏边框颜色
371
615
  */
@@ -376,7 +620,7 @@ interface SenseEditProps {
376
620
  bottomBorderStyle?: string;
377
621
  }
378
622
 
379
- declare const SenseEdit: React.FC<SenseEditProps>;
623
+ declare const SenseEdit: (props: SenseEditProps) => React.JSX.Element;
380
624
 
381
625
  interface CcosSenseEditProps extends SenseEditProps {
382
626
  'data-dnd': string;
@@ -384,7 +628,7 @@ interface CcosSenseEditProps extends SenseEditProps {
384
628
  }
385
629
  declare const CcosSenseEdit: {
386
630
  (props: CcosSenseEditProps): React.JSX.Element;
387
- settings: Settings;
631
+ settings: ComponentPrototype;
388
632
  };
389
633
 
390
634
  interface SenseFormProps {
@@ -404,99 +648,25 @@ interface SenseFormProps {
404
648
  * 是否禁用(初次渲染时生效)
405
649
  */
406
650
  disabled?: boolean;
407
- }
408
- interface SenseFormRef {
409
- getValues: () => Promise<any>;
410
- validateFields: () => Promise<any>;
411
- }
412
-
413
- declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
414
-
415
- interface SenseImportRef {
416
651
  /**
417
- * 确定导入
652
+ * 主题色(初次渲染时生效,默认暗色)
418
653
  */
419
- import: () => void;
654
+ theme?: 'dark' | 'light';
420
655
  }
421
- interface SenseImportProps {
422
- /**
423
- * 视图编码
424
- */
425
- viewCode: string;
426
- /**
427
- * 台账组编码
428
- */
429
- bookGroupId: string;
430
- /**
431
- * 隐藏根据地址自动匹配
432
- */
433
- hiddenGeolevel?: boolean;
434
- /**
435
- * 确定按钮文字
436
- */
437
- okText?: React.ReactNode;
438
- /**
439
- * 取消按钮文字
440
- */
441
- cancelText?: React.ReactNode;
442
- /**
443
- * 确定按钮属性
444
- */
445
- okButtonProps?: ButtonProps;
446
- /**
447
- * 取消按钮属性
448
- */
449
- cancelButtonProps?: ButtonProps;
450
- /**
451
- * 点击取消按钮
452
- */
453
- onCancel?: () => void;
454
- /**
455
- * 保存成功
456
- */
457
- onSuccess?: () => void;
458
- }
459
-
460
- declare const SenseImport: React.ForwardRefExoticComponent<SenseImportProps & React.RefAttributes<SenseImportRef>>;
461
-
462
- interface SenseInfoProps {
463
- /**
464
- * 实体编码
465
- */
466
- senseGlobalCode: string;
467
- /**
468
- * 启用标签
469
- */
470
- enableTag?: boolean;
471
- /**
472
- * 文本颜色
473
- */
474
- textColor?: string;
475
- /**
476
- * 高亮文本颜色
477
- */
478
- textHighlightColor?: string;
479
- /**
480
- * 表格边框颜色
481
- */
482
- borderColor?: string;
483
- /**
484
- * 表格边框宽度
485
- */
486
- borderWidth?: number;
656
+ interface SenseFormRef {
487
657
  /**
488
- * 表格边框样式
658
+ * 获取当前表单数据
489
659
  */
490
- borderStyle?: string;
660
+ getValues: () => Promise<any>;
491
661
  /**
492
- * 左侧label背景颜色
662
+ * 表单校验
493
663
  */
494
- labelBgColor?: string;
664
+ validateFields: () => Promise<any>;
495
665
  }
496
666
 
497
- declare const SenseInfo: React.FC<SenseInfoProps>;
667
+ declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
498
668
 
499
- interface SenseManagerProps {
669
+ interface SenseFullTableProps {
500
670
  /**
501
671
  * 显示视图类型:system 系统视图,func 功能视图
502
672
  */
@@ -504,7 +674,7 @@ interface SenseManagerProps {
504
674
  /**
505
675
  * 左侧边栏显示视图列表
506
676
  */
507
- views: {
677
+ views?: {
508
678
  label: string;
509
679
  value: string;
510
680
  }[];
@@ -512,6 +682,10 @@ interface SenseManagerProps {
512
682
  * 显示左侧边栏
513
683
  */
514
684
  showView?: boolean;
685
+ /**
686
+ * 显示分类目录
687
+ */
688
+ showCatalog?: boolean;
515
689
  /**
516
690
  * 显示面包屑
517
691
  */
@@ -540,11 +714,11 @@ interface SenseManagerProps {
540
714
  /**
541
715
  * 台账功能
542
716
  */
543
- bookContextMenuConfig?: ('create' | 'show')[];
717
+ bookContextMenuConfig?: ContextMenuKey$2[];
544
718
  /**
545
719
  * 实体记录功能
546
720
  */
547
- senseContextMenuConfig?: ('show' | 'edit' | 'delete')[];
721
+ senseContextMenuConfig?: ContextMenuKey$3[];
548
722
  /**
549
723
  * 启用标签
550
724
  */
@@ -608,12 +782,8 @@ interface SenseManagerProps {
608
782
  proTableSortIconColor?: string;
609
783
  proTableSelectIcon?: string;
610
784
  proTableSelectMultipleIconColor?: string;
611
- proTablePaginationArrowBg?: string;
612
- proTablePaginationBorderStyle?: string;
613
- proTablePaginationBorderWidth?: number;
614
- proTablePaginationBorderColor?: string;
615
785
  }
616
- interface SenseManagerRef {
786
+ interface SenseFullTableRef {
617
787
  /**
618
788
  * 刷新台账列表
619
789
  */
@@ -624,9 +794,9 @@ interface SenseManagerRef {
624
794
  refreshSenseTable: () => void;
625
795
  }
626
796
 
627
- declare const SenseManager: React.ForwardRefExoticComponent<SenseManagerProps & React.RefAttributes<SenseManagerRef>>;
797
+ declare const SenseFullTable: React.ForwardRefExoticComponent<SenseFullTableProps & React.RefAttributes<SenseFullTableRef>>;
628
798
 
629
- interface CcosSenseManagerProps extends Omit<SenseManagerProps, 'views'> {
799
+ interface CcosSenseFullTableProps extends Omit<SenseFullTableProps, 'views'> {
630
800
  'data-dnd': string;
631
801
  tid: string;
632
802
  views: {
@@ -639,7 +809,57 @@ interface CcosSenseManagerProps extends Omit<SenseManagerProps, 'views'> {
639
809
  showBookContextMenuConfig?: boolean;
640
810
  showSenseContextMenuConfig?: boolean;
641
811
  }
642
- declare const CcosSenseManager: React.ForwardRefExoticComponent<CcosSenseManagerProps & React.RefAttributes<SenseManagerRef>>;
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
+ };
643
863
 
644
864
  interface SenseSearchProps {
645
865
  /**
@@ -675,48 +895,16 @@ interface SenseSearchProps {
675
895
  */
676
896
  onMapDraw?: (value: any) => void;
677
897
  /**
678
- * tab1背景颜色
679
- */
680
- tab1BgColor?: string;
681
- /**
682
- * 搜索按钮背景颜色
683
- */
684
- searchBtnBgColor?: string;
685
- /**
686
- * tab-类型2背景颜色
687
- */
688
- tab2BgColor?: string;
689
- /**
690
- * tab-类型2文本颜色
898
+ * 搜索图标颜色
691
899
  */
692
- tab2TextColor?: string;
900
+ inputIconColor?: string;
693
901
  /**
694
- * tab-类型3边框颜色
902
+ * 时空搜索表单背景颜色
695
903
  */
696
- tab3BorderColor?: string;
697
- /**
698
- * tab-类型3选中边框颜色
699
- */
700
- tab3SelectedBorderColor?: string;
701
- /**
702
- * tab-类型3选中文本颜色
703
- */
704
- tab3SelectedTextColor?: string;
705
- /**
706
- * 区域选择类型边框颜色
707
- */
708
- areaBorderColor?: string;
709
- /**
710
- * 区域选择类型选中颜色
711
- */
712
- areaSelectedColor?: string;
713
- /**
714
- * 空间范围选中项右上角图标颜色
715
- */
716
- areaSelectedIconColor?: string;
904
+ formBgColor?: string;
717
905
  }
718
906
 
719
- declare const SenseSearch: React.FC<SenseSearchProps>;
907
+ declare const SenseSearch: (props: SenseSearchProps) => React.JSX.Element;
720
908
 
721
909
  interface CcosSenseSearchProps extends SenseSearchProps {
722
910
  'data-dnd': string;
@@ -725,14 +913,19 @@ interface CcosSenseSearchProps extends SenseSearchProps {
725
913
  }
726
914
  declare const CcosSenseSearch: {
727
915
  (props: CcosSenseSearchProps): React.JSX.Element;
728
- settings: Settings;
916
+ settings: ComponentPrototype;
729
917
  };
730
918
 
919
+ type ContextMenuKey = 'show' | 'edit' | 'cut' | 'copy' | 'delete';
731
920
  interface SenseTableProps extends TableProps {
732
921
  /**
733
922
  * 台账 id
734
923
  */
735
924
  bookId?: string;
925
+ /**
926
+ * 批量台账 id
927
+ */
928
+ bookIds?: string[];
736
929
  /**
737
930
  * 台账模板 id
738
931
  */
@@ -764,11 +957,11 @@ interface SenseTableProps extends TableProps {
764
957
  /**
765
958
  * 实体记录功能
766
959
  */
767
- contextMenuConfig?: ('show' | 'edit' | 'delete')[];
960
+ contextMenuConfig?: ContextMenuKey[];
768
961
  /**
769
962
  * 启用标签
770
963
  */
771
- enableTag?: boolean;
964
+ enableTag?: boolean | 'edit';
772
965
  /**
773
966
  * 单击实体
774
967
  * @param record
@@ -799,10 +992,6 @@ interface SenseTableProps extends TableProps {
799
992
  proTableSortIconColor?: string;
800
993
  proTableSelectIcon?: string;
801
994
  proTableSelectMultipleIconColor?: string;
802
- proTablePaginationArrowBg?: string;
803
- proTablePaginationBorderStyle?: string;
804
- proTablePaginationBorderWidth?: number;
805
- proTablePaginationBorderColor?: string;
806
995
  }
807
996
  interface SenseTableRef {
808
997
  /**
@@ -902,7 +1091,7 @@ interface SenseTreeProps {
902
1091
  statisticsFontColor?: string;
903
1092
  }
904
1093
 
905
- declare const SenseTree: React.FC<SenseTreeProps>;
1094
+ declare const SenseTree: (props: SenseTreeProps) => React.JSX.Element;
906
1095
 
907
1096
  interface CcosSenseTreeProps extends SenseTreeProps {
908
1097
  'data-dnd': string;
@@ -914,72 +1103,9 @@ interface CcosSenseTreeProps extends SenseTreeProps {
914
1103
  }
915
1104
  declare const CcosSenseTree: {
916
1105
  (props: CcosSenseTreeProps): React.JSX.Element;
917
- settings: Settings;
1106
+ settings: ComponentPrototype;
918
1107
  };
919
1108
 
920
- interface SenseUploadProps {
921
- /** 台账id */
922
- bookId: string;
923
- /**
924
- * 点击取消按钮
925
- */
926
- onCancel?: () => void;
927
- /**
928
- * 保存成功
929
- */
930
- onSuccess?: () => void;
931
- /**
932
- * 保存失败
933
- */
934
- onError?: (error: any) => void;
935
- /**
936
- * 模版下载提示文本颜色
937
- */
938
- downloadTextColor?: string;
939
- /**
940
- * 文件上传文本颜色
941
- */
942
- uploadTextColor?: string;
943
- /**
944
- * 文件上传第二行文本颜色
945
- */
946
- uploadHintColor?: string;
947
- /**
948
- * 上传后文本颜色
949
- */
950
- uploadFileNameColor?: string;
951
- /**
952
- * 底部操作区域背景颜色
953
- */
954
- bottomBgColor?: string;
955
- /**
956
- * 底部操作区域边框样式
957
- */
958
- bottomBorderStyle?: string;
959
- /**
960
- * 底部操作区域边框颜色
961
- */
962
- bottomBorderColor?: string;
963
- /**
964
- * 底部操作区域边框宽度
965
- */
966
- bottomBorderWidth?: number;
967
- /**
968
- * 上传图片
969
- */
970
- uploadImgColor?: string;
971
- /**
972
- * 文件图片
973
- */
974
- fileImgColor?: string;
975
- /**
976
- * 删除图片
977
- */
978
- deleteImgColor?: string;
979
- }
980
-
981
- declare const SenseUpload: React.FC<SenseUploadProps>;
982
-
983
1109
  interface SenseViewProps {
984
1110
  /**
985
1111
  * 功能视图编码
@@ -1035,7 +1161,7 @@ interface SenseViewProps {
1035
1161
  /**
1036
1162
  * 底部按钮功能
1037
1163
  */
1038
- bottomButtonConfig?: 'download'[];
1164
+ bottomButtonConfig?: ('download' | 'share')[];
1039
1165
  /**
1040
1166
  * 实体总数变化
1041
1167
  */
@@ -1062,7 +1188,7 @@ interface SenseViewProps {
1062
1188
  onEditSense?: (node: any, e: any) => void;
1063
1189
  }
1064
1190
 
1065
- declare const SenseView: React.FC<SenseViewProps>;
1191
+ declare const SenseView: (props: SenseViewProps) => React.JSX.Element;
1066
1192
 
1067
1193
  interface CcosSenseViewProps extends SenseViewProps {
1068
1194
  'data-dnd': string;
@@ -1073,13 +1199,48 @@ interface CcosSenseViewProps extends SenseViewProps {
1073
1199
  }
1074
1200
  declare const CcosSenseView: {
1075
1201
  (props: CcosSenseViewProps): React.JSX.Element;
1076
- settings: Settings;
1202
+ settings: ComponentPrototype;
1203
+ };
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;
1077
1222
  };
1078
1223
 
1079
1224
  type TagTreeSelectProps = TreeSelectProps;
1080
1225
 
1081
1226
  declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
1082
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
+
1083
1244
  interface VideoPlayerProps {
1084
1245
  /**
1085
1246
  * 视频播放器库路径
@@ -1110,7 +1271,7 @@ interface VideoPlayerProps {
1110
1271
  videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
1111
1272
  }
1112
1273
 
1113
- declare const VideoPlayer: React.FC<VideoPlayerProps>;
1274
+ declare const VideoPlayer: (props: VideoPlayerProps) => React.JSX.Element;
1114
1275
 
1115
1276
  interface CcosVideoPlayerProps extends VideoPlayerProps {
1116
1277
  'data-dnd': string;
@@ -1118,10 +1279,10 @@ interface CcosVideoPlayerProps extends VideoPlayerProps {
1118
1279
  }
1119
1280
  declare const CcosVideoPlayer: {
1120
1281
  (props: CcosVideoPlayerProps): React.JSX.Element;
1121
- settings: Settings;
1282
+ settings: ComponentPrototype;
1122
1283
  };
1123
1284
 
1124
1285
  type Config = Pick<IcosDesktopType, 'apiPrefix'>;
1125
1286
  declare const setCconfig: (config: Config) => void;
1126
1287
 
1127
- export { BookGroupTable, BookTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosVideoPlayer, OrgTreeSelect, PersonSelector, _default as ProTable, RegionTreeSelect, RelationGraph, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseImport, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseUpload, SenseView, TagTreeSelect, VideoPlayer, setCconfig as config };
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 };