@icos-desktop/react-components 2.0.0-beta.1.0.9 → 2.0.0-beta.1.1.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 +1125 -0
- package/{build/index.esm.js → dist/icos-desktop.js} +6879 -1185
- package/dist/icos-desktop.umd.cjs +1 -0
- package/package.json +76 -25
- package/build/index.js +0 -7900
- package/build/index.umd.js +0 -7886
- package/build/types/components/BookGroupTable/BookGroupTable.d.ts +0 -4
- package/build/types/components/BookGroupTable/BookGroupTable.stories.d.ts +0 -7
- package/build/types/components/BookGroupTable/components/ContextMenu/index.d.ts +0 -5
- package/build/types/components/BookGroupTable/index.d.ts +0 -1
- package/build/types/components/BookGroupTable/utils/index.d.ts +0 -1
- package/build/types/components/BookTable/BookTable.d.ts +0 -4
- package/build/types/components/BookTable/BookTable.stories.d.ts +0 -7
- package/build/types/components/BookTable/components/ContextMenu/index.d.ts +0 -8
- package/build/types/components/BookTable/index.d.ts +0 -1
- package/build/types/components/OrgTreeSelect/OrgTreeSelect.d.ts +0 -4
- package/build/types/components/OrgTreeSelect/OrgTreeSelect.stories.d.ts +0 -7
- package/build/types/components/OrgTreeSelect/index.d.ts +0 -1
- package/build/types/components/ProTable/ProTable.d.ts +0 -4
- package/build/types/components/ProTable/ProTable.stories.d.ts +0 -7
- package/build/types/components/ProTable/components/ColumnsConfig/index.d.ts +0 -10
- package/build/types/components/ProTable/index.d.ts +0 -1
- package/build/types/components/RegionTreeSelect/RegionTreeSelect.d.ts +0 -4
- package/build/types/components/RegionTreeSelect/RegionTreeSelect.stories.d.ts +0 -7
- package/build/types/components/RegionTreeSelect/index.d.ts +0 -1
- package/build/types/components/RelationGraph/RelationGraph.d.ts +0 -4
- package/build/types/components/RelationGraph/RelationGraph.stories.d.ts +0 -7
- package/build/types/components/RelationGraph/components/Graph/index.d.ts +0 -5
- package/build/types/components/RelationGraph/index.d.ts +0 -1
- package/build/types/components/SenseCreate/SenseCreate.d.ts +0 -4
- package/build/types/components/SenseCreate/SenseCreate.stories.d.ts +0 -7
- package/build/types/components/SenseCreate/ccos.d.ts +0 -11
- package/build/types/components/SenseCreate/index.d.ts +0 -1
- package/build/types/components/SenseCreate/settings.d.ts +0 -2
- package/build/types/components/SenseDetail/SenseDetail.d.ts +0 -4
- package/build/types/components/SenseDetail/SenseDetail.stories.d.ts +0 -7
- package/build/types/components/SenseDetail/ccos.d.ts +0 -12
- package/build/types/components/SenseDetail/components/Base/index.d.ts +0 -13
- package/build/types/components/SenseDetail/components/BookList/index.d.ts +0 -7
- package/build/types/components/SenseDetail/components/Content/components/Card/index.d.ts +0 -6
- package/build/types/components/SenseDetail/components/Content/components/List/Item/index.d.ts +0 -6
- package/build/types/components/SenseDetail/components/Content/components/List/index.d.ts +0 -6
- package/build/types/components/SenseDetail/components/Content/index.d.ts +0 -7
- package/build/types/components/SenseDetail/components/Relation/index.d.ts +0 -6
- package/build/types/components/SenseDetail/index.d.ts +0 -1
- package/build/types/components/SenseDetail/settings.d.ts +0 -2
- package/build/types/components/SenseEdit/SenseEdit.d.ts +0 -4
- package/build/types/components/SenseEdit/SenseEdit.stories.d.ts +0 -7
- package/build/types/components/SenseEdit/ccos.d.ts +0 -11
- package/build/types/components/SenseEdit/index.d.ts +0 -1
- package/build/types/components/SenseEdit/settings.d.ts +0 -2
- package/build/types/components/SenseForm/SenseForm.d.ts +0 -4
- package/build/types/components/SenseForm/SenseForm.stories.d.ts +0 -7
- package/build/types/components/SenseForm/index.d.ts +0 -1
- package/build/types/components/SenseInfo/SenseInfo.d.ts +0 -4
- package/build/types/components/SenseInfo/SenseInfo.stories.d.ts +0 -7
- package/build/types/components/SenseInfo/components/FileView/index.d.ts +0 -11
- package/build/types/components/SenseInfo/components/ImageView/index.d.ts +0 -10
- package/build/types/components/SenseInfo/components/Render/index.d.ts +0 -13
- package/build/types/components/SenseInfo/components/TagsView/index.d.ts +0 -6
- package/build/types/components/SenseInfo/index.d.ts +0 -1
- package/build/types/components/SenseInfo/utils/schema.d.ts +0 -2
- package/build/types/components/SenseManager/SenseManager.d.ts +0 -4
- package/build/types/components/SenseManager/SenseManager.stories.d.ts +0 -7
- package/build/types/components/SenseManager/ccos.d.ts +0 -17
- package/build/types/components/SenseManager/components/Filter/index.d.ts +0 -11
- package/build/types/components/SenseManager/components/FormItem/index.d.ts +0 -11
- package/build/types/components/SenseManager/components/SideBar/index.d.ts +0 -9
- package/build/types/components/SenseManager/index.d.ts +0 -1
- package/build/types/components/SenseManager/settings.d.ts +0 -2
- package/build/types/components/SenseManager/utils/index.d.ts +0 -5
- package/build/types/components/SenseSearch/SenseSearch.d.ts +0 -4
- package/build/types/components/SenseSearch/SenseSearch.stories.d.ts +0 -7
- package/build/types/components/SenseSearch/ccos.d.ts +0 -12
- package/build/types/components/SenseSearch/components/AdvancedSearch/KnnItems/index.d.ts +0 -18
- package/build/types/components/SenseSearch/components/AdvancedSearch/index.d.ts +0 -5
- package/build/types/components/SenseSearch/components/Tabs/index.d.ts +0 -18
- package/build/types/components/SenseSearch/constants/index.d.ts +0 -41
- package/build/types/components/SenseSearch/index.d.ts +0 -1
- package/build/types/components/SenseSearch/settings.d.ts +0 -2
- package/build/types/components/SenseTable/SenseTable.d.ts +0 -4
- package/build/types/components/SenseTable/SenseTable.stories.d.ts +0 -7
- package/build/types/components/SenseTable/components/ContextMenu/index.d.ts +0 -9
- package/build/types/components/SenseTable/components/TagsModal/index.d.ts +0 -12
- package/build/types/components/SenseTable/components/widgets/FileView/index.d.ts +0 -5
- package/build/types/components/SenseTable/components/widgets/ImageView/index.d.ts +0 -5
- package/build/types/components/SenseTable/index.d.ts +0 -1
- package/build/types/components/SenseTree/SenseTree.d.ts +0 -4
- package/build/types/components/SenseTree/SenseTree.stories.d.ts +0 -8
- package/build/types/components/SenseTree/ccos.d.ts +0 -15
- package/build/types/components/SenseTree/components/ContextMenu/index.d.ts +0 -8
- package/build/types/components/SenseTree/components/ExportModal/index.d.ts +0 -9
- package/build/types/components/SenseTree/index.d.ts +0 -1
- package/build/types/components/SenseTree/settings.d.ts +0 -2
- package/build/types/components/SenseTree/utils/index.d.ts +0 -27
- package/build/types/components/SenseUpload/SenseUpload.d.ts +0 -4
- package/build/types/components/SenseUpload/SenseUpload.stories.d.ts +0 -7
- package/build/types/components/SenseUpload/index.d.ts +0 -1
- package/build/types/components/SenseView/SenseView.d.ts +0 -4
- package/build/types/components/SenseView/SenseView.stories.d.ts +0 -6
- package/build/types/components/SenseView/ccos.d.ts +0 -14
- package/build/types/components/SenseView/index.d.ts +0 -1
- package/build/types/components/SenseView/settings.d.ts +0 -2
- package/build/types/components/TagTreeSelect/TagTreeSelect.d.ts +0 -12
- package/build/types/components/TagTreeSelect/TagTreeSelect.stories.d.ts +0 -7
- package/build/types/components/TagTreeSelect/index.d.ts +0 -1
- package/build/types/components/VideoControl/VideoControl.d.ts +0 -4
- package/build/types/components/VideoControl/VideoControl.stories.d.ts +0 -7
- package/build/types/components/VideoControl/index.d.ts +0 -1
- package/build/types/components/VideoPlayer/VideoPlayer.d.ts +0 -4
- package/build/types/components/VideoPlayer/VideoPlayer.stories.d.ts +0 -8
- package/build/types/components/VideoPlayer/ccos.d.ts +0 -11
- package/build/types/components/VideoPlayer/components/Cityeyes/index.d.ts +0 -7
- package/build/types/components/VideoPlayer/components/Control/index.d.ts +0 -8
- package/build/types/components/VideoPlayer/components/H5player/index.d.ts +0 -7
- package/build/types/components/VideoPlayer/components/Player/index.d.ts +0 -5
- package/build/types/components/VideoPlayer/index.d.ts +0 -1
- package/build/types/components/VideoPlayer/settings.d.ts +0 -2
- package/build/types/constants/pagination.d.ts +0 -10
- package/build/types/hooks/useEntityClass/index.d.ts +0 -5
- package/build/types/hooks/useKsCode/index.d.ts +0 -5
- package/build/types/hooks/useMeeting/index.d.ts +0 -4
- package/build/types/hooks/useRelationList/RelationList/index.d.ts +0 -15
- package/build/types/hooks/useRelationList/index.d.ts +0 -6
- package/build/types/index.d.ts +0 -29
- package/build/types/services/dataManager.d.ts +0 -1
- package/build/types/services/entity.d.ts +0 -1
- package/build/types/services/entityManager.d.ts +0 -2
- package/build/types/services/gis.d.ts +0 -2
- package/build/types/services/mapWindow.d.ts +0 -2
- package/build/types/services/org.d.ts +0 -2
- package/build/types/services/senseForm.d.ts +0 -13
- package/build/types/services/senseManager.d.ts +0 -5
- package/build/types/services/senseSearch.d.ts +0 -8
- package/build/types/services/user.d.ts +0 -2
- package/build/types/services/view.d.ts +0 -1
- package/build/types/settings.d.ts +0 -11
- package/build/types/themes/Provider.d.ts +0 -8
- package/build/types/utils/config.d.ts +0 -5
- package/build/types/utils/contexify/index.d.ts +0 -12
- package/build/types/utils/download.d.ts +0 -1
- package/build/types/utils/map.d.ts +0 -12
- package/build/types/utils/props.d.ts +0 -6
- package/build/types/utils/request.d.ts +0 -3
- package/build/types/utils/sense.d.ts +0 -11
- package/build/types/utils/settings.d.ts +0 -1
- package/build/types/utils/tree.d.ts +0 -5
- /package/{build → dist}/libs/h5player/h5player.min.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl1/DecodeWorker.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl1/Decoder.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl1simd/DecodeWorker.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl1simd/Decoder.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl2/Decoder.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl2/Decoder.wasm +0 -0
- /package/{build → dist}/libs/h5player/playctrl2/Decoder.worker.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl3/Decoder.js +0 -0
- /package/{build → dist}/libs/h5player/playctrl3/Decoder.wasm +0 -0
- /package/{build → dist}/libs/h5player/playctrl3/Decoder.worker.js +0 -0
- /package/{build → dist}/libs/h5player/talk/AudioInterCom.js +0 -0
- /package/{build → dist}/libs/h5player/talk/AudioInterCom.wasm +0 -0
- /package/{build → dist}/libs/h5player/talkW/AudioInterCom.js +0 -0
- /package/{build → dist}/libs/h5player/talkW/AudioInterCom.wasm +0 -0
- /package/{build → dist}/libs/h5player/talkW/AudioInterCom.worker.js +0 -0
- /package/{build → dist}/libs/h5player/transform/libSystemTransform.js +0 -0
- /package/{build → dist}/libs/h5player/transform/libSystemTransform.wasm +0 -0
- /package/{build → dist}/libs/h5player/transform/systemTransform-worker.js +0 -0
@@ -0,0 +1,1125 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TableProps, TreeSelectProps } from '@xirang/design-antd';
|
3
|
+
import { ButtonProps } from 'antd/es/button/button';
|
4
|
+
import { IcosDesktopType } from '@/global';
|
5
|
+
|
6
|
+
interface BookGroupTableProps {
|
7
|
+
/**
|
8
|
+
* 查看方式 (1 - 实体类别, 2 - 所属组织), 若为空则返回台账组不分组
|
9
|
+
*/
|
10
|
+
displayWay?: 1 | 2;
|
11
|
+
/**
|
12
|
+
* 节点编码, 若为空则返回台账组不分组
|
13
|
+
*/
|
14
|
+
nodeCode?: string;
|
15
|
+
/**
|
16
|
+
* 视图编码
|
17
|
+
*/
|
18
|
+
viewCodes?: string[];
|
19
|
+
/**
|
20
|
+
* 搜索关键词
|
21
|
+
*/
|
22
|
+
keyword?: string;
|
23
|
+
/**
|
24
|
+
* 过滤条件
|
25
|
+
*/
|
26
|
+
filter?: any;
|
27
|
+
/**
|
28
|
+
* 双击台账组
|
29
|
+
* @param record
|
30
|
+
*/
|
31
|
+
onDoubleClick?: (record: EntityManagerAPI.BookGroupItem) => void;
|
32
|
+
proTableContainerHeight?: number;
|
33
|
+
proTableHeadBg?: string;
|
34
|
+
proTableCloseAllBg?: string;
|
35
|
+
proTableSortIconColor?: string;
|
36
|
+
proTableSelectIcon?: string;
|
37
|
+
proTableSelectMultipleIconColor?: string;
|
38
|
+
proTablePaginationArrowBg?: string;
|
39
|
+
proTablePaginationBorderStyle?: string;
|
40
|
+
proTablePaginationBorderWidth?: number;
|
41
|
+
proTablePaginationBorderColor?: string;
|
42
|
+
}
|
43
|
+
|
44
|
+
declare const BookGroupTable: React.FC<BookGroupTableProps>;
|
45
|
+
|
46
|
+
interface BookTableProps extends TableProps {
|
47
|
+
/**
|
48
|
+
* 表头配置
|
49
|
+
*/
|
50
|
+
header?: {
|
51
|
+
code: string;
|
52
|
+
name: string;
|
53
|
+
defaultShow?: boolean;
|
54
|
+
hidden?: boolean;
|
55
|
+
}[];
|
56
|
+
/**
|
57
|
+
* 台账模板 id
|
58
|
+
*/
|
59
|
+
templateId: string;
|
60
|
+
/**
|
61
|
+
* 视图编码
|
62
|
+
*/
|
63
|
+
viewCodes?: string[];
|
64
|
+
/**
|
65
|
+
* 搜索关键词
|
66
|
+
*/
|
67
|
+
keyword?: string;
|
68
|
+
/**
|
69
|
+
* 过滤条件
|
70
|
+
*/
|
71
|
+
filter?: any;
|
72
|
+
/**
|
73
|
+
* 台账功能
|
74
|
+
*/
|
75
|
+
contextMenuConfig?: ('create' | 'show')[];
|
76
|
+
/**
|
77
|
+
* 双击台账
|
78
|
+
* @param record
|
79
|
+
*/
|
80
|
+
onDoubleClick?: (record: any) => void;
|
81
|
+
/**
|
82
|
+
* 新建对象
|
83
|
+
* @param record
|
84
|
+
*/
|
85
|
+
onCreateSense?: (record: any) => void;
|
86
|
+
/**
|
87
|
+
* 触发刷新的回调
|
88
|
+
*/
|
89
|
+
onRefresh?: () => void;
|
90
|
+
proTableContainerHeight?: number;
|
91
|
+
proTableHeadBg?: string;
|
92
|
+
proTableCloseAllBg?: string;
|
93
|
+
proTableSortIconColor?: string;
|
94
|
+
proTableSelectIcon?: string;
|
95
|
+
proTableSelectMultipleIconColor?: string;
|
96
|
+
proTablePaginationArrowBg?: string;
|
97
|
+
proTablePaginationBorderStyle?: string;
|
98
|
+
proTablePaginationBorderWidth?: number;
|
99
|
+
proTablePaginationBorderColor?: string;
|
100
|
+
}
|
101
|
+
interface BookTableRef {
|
102
|
+
/**
|
103
|
+
* 刷新
|
104
|
+
*/
|
105
|
+
refresh: () => void;
|
106
|
+
}
|
107
|
+
|
108
|
+
declare const BookTable: React.ForwardRefExoticComponent<BookTableProps & React.RefAttributes<BookTableRef>>;
|
109
|
+
|
110
|
+
interface OrgTreeSelectProps extends TreeSelectProps {
|
111
|
+
all?: boolean;
|
112
|
+
}
|
113
|
+
|
114
|
+
declare const OrgTreeSelect: React.FC<OrgTreeSelectProps>;
|
115
|
+
|
116
|
+
type UserItem = UserAPI.GetUserListRes['list'][number];
|
117
|
+
interface PersonSelectorProps {
|
118
|
+
/**
|
119
|
+
* 选择的人员列表
|
120
|
+
*/
|
121
|
+
value?: UserItem[];
|
122
|
+
/**
|
123
|
+
* 选择人员列表变化
|
124
|
+
* @param value
|
125
|
+
*/
|
126
|
+
onChange?: (value: UserItem[]) => void;
|
127
|
+
/**
|
128
|
+
* 选择的人员列表默认值
|
129
|
+
*/
|
130
|
+
defaultValue?: UserItem[];
|
131
|
+
/**
|
132
|
+
* 额外的选择项
|
133
|
+
*/
|
134
|
+
extra?: (data: {
|
135
|
+
item: UserItem;
|
136
|
+
onChange: (value: any) => void;
|
137
|
+
}) => React.ReactNode;
|
138
|
+
/**
|
139
|
+
* 额外的选择项参数名
|
140
|
+
*/
|
141
|
+
extraKey?: string;
|
142
|
+
}
|
143
|
+
|
144
|
+
declare const PersonSelector: React.FC<PersonSelectorProps>;
|
145
|
+
|
146
|
+
interface ProTableProps extends TableProps {
|
147
|
+
header: {
|
148
|
+
code: string;
|
149
|
+
name: string;
|
150
|
+
hidden?: boolean;
|
151
|
+
defaultShow?: boolean;
|
152
|
+
}[];
|
153
|
+
containerHeight?: number;
|
154
|
+
headBg?: string;
|
155
|
+
closeAllBg?: string;
|
156
|
+
sortIconColor?: string;
|
157
|
+
selectIcon?: string;
|
158
|
+
selectMultipleIconColor?: string;
|
159
|
+
paginationArrowBg?: string;
|
160
|
+
paginationBorderStyle?: string;
|
161
|
+
paginationBorderWidth?: number;
|
162
|
+
paginationBorderColor?: string;
|
163
|
+
}
|
164
|
+
|
165
|
+
declare const _default: React.NamedExoticComponent<ProTableProps>;
|
166
|
+
|
167
|
+
interface RegionTreeSelectProps extends TreeSelectProps {
|
168
|
+
regionId?: string;
|
169
|
+
}
|
170
|
+
|
171
|
+
declare const RegionTreeSelect: React.FC<RegionTreeSelectProps>;
|
172
|
+
|
173
|
+
interface RelationGraphProps {
|
174
|
+
/**
|
175
|
+
* 实体记录唯一标识
|
176
|
+
*/
|
177
|
+
senseGlobalCode: string;
|
178
|
+
}
|
179
|
+
|
180
|
+
declare const RelationGraph: React.FC<RelationGraphProps>;
|
181
|
+
|
182
|
+
interface SenseCreateProps {
|
183
|
+
bookId: string;
|
184
|
+
/**
|
185
|
+
* 点击取消按钮
|
186
|
+
*/
|
187
|
+
onCancel?: () => void;
|
188
|
+
/**
|
189
|
+
* 点击确定按钮
|
190
|
+
*/
|
191
|
+
onOk?: (values: any) => boolean | Promise<boolean>;
|
192
|
+
/**
|
193
|
+
* 保存成功
|
194
|
+
*/
|
195
|
+
onSuccess?: (res?: SenseFormAPI.SaveSenseRes) => void;
|
196
|
+
/**
|
197
|
+
* 文本字体颜色
|
198
|
+
*/
|
199
|
+
textColor?: string;
|
200
|
+
/**
|
201
|
+
* 模版下载提示文本颜色
|
202
|
+
*/
|
203
|
+
downloadTextColor?: string;
|
204
|
+
/**
|
205
|
+
* 文件上传文本颜色
|
206
|
+
*/
|
207
|
+
uploadTextColor?: string;
|
208
|
+
/**
|
209
|
+
* 文件上传第二行文本颜色
|
210
|
+
*/
|
211
|
+
uploadHintColor?: string;
|
212
|
+
/**
|
213
|
+
* 上传后文本颜色
|
214
|
+
*/
|
215
|
+
uploadFileNameColor?: string;
|
216
|
+
/**
|
217
|
+
* 底部操作区域背景颜色
|
218
|
+
*/
|
219
|
+
bottomBgColor?: string;
|
220
|
+
/**
|
221
|
+
* 底部操作区域边框样式
|
222
|
+
*/
|
223
|
+
bottomBorderStyle?: string;
|
224
|
+
/**
|
225
|
+
* 底部操作区域边框颜色
|
226
|
+
*/
|
227
|
+
bottomBorderColor?: string;
|
228
|
+
/**
|
229
|
+
* 底部操作区域边框宽度
|
230
|
+
*/
|
231
|
+
bottomBorderWidth?: number;
|
232
|
+
/**
|
233
|
+
* 上传图片
|
234
|
+
*/
|
235
|
+
uploadImgColor?: string;
|
236
|
+
/**
|
237
|
+
* 文件图片
|
238
|
+
*/
|
239
|
+
fileImgColor?: string;
|
240
|
+
/**
|
241
|
+
* 删除图片
|
242
|
+
*/
|
243
|
+
deleteImgColor?: string;
|
244
|
+
}
|
245
|
+
|
246
|
+
declare const SenseCreate: React.FC<SenseCreateProps>;
|
247
|
+
|
248
|
+
interface CcosSenseCreateProps extends SenseCreateProps {
|
249
|
+
'data-dnd': string;
|
250
|
+
tid: string;
|
251
|
+
}
|
252
|
+
declare const CcosSenseCreate: {
|
253
|
+
(props: CcosSenseCreateProps): React.JSX.Element;
|
254
|
+
settings: ComponentPrototype;
|
255
|
+
};
|
256
|
+
|
257
|
+
interface SenseDetailProps {
|
258
|
+
/**
|
259
|
+
* 实体记录唯一标识
|
260
|
+
*/
|
261
|
+
senseGlobalCode: string;
|
262
|
+
/**
|
263
|
+
* 顶部菜单栏控制
|
264
|
+
*/
|
265
|
+
topMenuConfig: ('base' | 'relation')[];
|
266
|
+
/**
|
267
|
+
* 启用标签
|
268
|
+
*/
|
269
|
+
enableTag?: boolean;
|
270
|
+
/**
|
271
|
+
* 额外的顶部菜单
|
272
|
+
*/
|
273
|
+
extraTopMenu?: {
|
274
|
+
key: string;
|
275
|
+
label: string;
|
276
|
+
children: React.ReactElement<{
|
277
|
+
senseGlobalCode: string;
|
278
|
+
}>;
|
279
|
+
}[];
|
280
|
+
/**
|
281
|
+
* tabs背景颜色
|
282
|
+
*/
|
283
|
+
tabsBgColor?: string;
|
284
|
+
/**
|
285
|
+
* 内容信息卡片标题颜色
|
286
|
+
*/
|
287
|
+
contentCardNameColor?: string;
|
288
|
+
/**
|
289
|
+
* 内容信息卡片内容颜色
|
290
|
+
*/
|
291
|
+
contentCardContentColor?: string;
|
292
|
+
/**
|
293
|
+
* 内容信息卡片边框颜色
|
294
|
+
*/
|
295
|
+
contentCardBorderColor?: string;
|
296
|
+
/**
|
297
|
+
* 内容信息卡片背景颜色
|
298
|
+
*/
|
299
|
+
contentCardBgColor?: string;
|
300
|
+
/**
|
301
|
+
* 文本颜色
|
302
|
+
*/
|
303
|
+
senseInfoTextColor?: string;
|
304
|
+
/**
|
305
|
+
* 高亮文本颜色
|
306
|
+
*/
|
307
|
+
senseInfoTextHighlightColor?: string;
|
308
|
+
/**
|
309
|
+
* 表格边框颜色
|
310
|
+
*/
|
311
|
+
senseInfoBorderColor?: string;
|
312
|
+
/**
|
313
|
+
* 表格边框宽度
|
314
|
+
*/
|
315
|
+
senseInfoBorderWidth?: number;
|
316
|
+
/**
|
317
|
+
* 表格边框样式
|
318
|
+
*/
|
319
|
+
senseInfoBorderStyle?: string;
|
320
|
+
/**
|
321
|
+
* 左侧label背景颜色
|
322
|
+
*/
|
323
|
+
senseInfoLabelBgColor?: string;
|
324
|
+
}
|
325
|
+
|
326
|
+
declare const SenseDetail: React.FC<SenseDetailProps>;
|
327
|
+
|
328
|
+
interface CcosSenseDetailProps extends SenseDetailProps {
|
329
|
+
'data-dnd': string;
|
330
|
+
tid: string;
|
331
|
+
showTopMenu?: boolean;
|
332
|
+
}
|
333
|
+
declare const CcosSenseDetail: {
|
334
|
+
(props: CcosSenseDetailProps): React.JSX.Element;
|
335
|
+
settings: ComponentPrototype;
|
336
|
+
};
|
337
|
+
|
338
|
+
interface SenseEditProps {
|
339
|
+
/**
|
340
|
+
* 实体记录唯一标识
|
341
|
+
*/
|
342
|
+
senseGlobalCode?: string;
|
343
|
+
/**
|
344
|
+
* 台账id
|
345
|
+
*/
|
346
|
+
bookId?: string;
|
347
|
+
/**
|
348
|
+
* 点击取消按钮
|
349
|
+
*/
|
350
|
+
onCancel?: () => void;
|
351
|
+
/**
|
352
|
+
* 点击确定按钮
|
353
|
+
*/
|
354
|
+
onOk?: (values: any) => boolean | Promise<boolean>;
|
355
|
+
/**
|
356
|
+
* 保存成功
|
357
|
+
*/
|
358
|
+
onSuccess?: (res: SenseFormAPI.SaveSenseRes) => void;
|
359
|
+
/**
|
360
|
+
* 底部操作栏背景色
|
361
|
+
*/
|
362
|
+
bottomBgColor?: string;
|
363
|
+
/**
|
364
|
+
* 底部操作栏边框宽度
|
365
|
+
*/
|
366
|
+
bottomBorderWidth?: number;
|
367
|
+
/**
|
368
|
+
* 底部操作栏边框颜色
|
369
|
+
*/
|
370
|
+
bottomBorderColor?: string;
|
371
|
+
/**
|
372
|
+
* 底部操作栏边框样式
|
373
|
+
*/
|
374
|
+
bottomBorderStyle?: string;
|
375
|
+
}
|
376
|
+
|
377
|
+
declare const SenseEdit: React.FC<SenseEditProps>;
|
378
|
+
|
379
|
+
interface CcosSenseEditProps extends SenseEditProps {
|
380
|
+
'data-dnd': string;
|
381
|
+
tid: string;
|
382
|
+
}
|
383
|
+
declare const CcosSenseEdit: {
|
384
|
+
(props: CcosSenseEditProps): React.JSX.Element;
|
385
|
+
settings: ComponentPrototype;
|
386
|
+
};
|
387
|
+
|
388
|
+
interface SenseFormProps {
|
389
|
+
/**
|
390
|
+
* 数据
|
391
|
+
*/
|
392
|
+
data: string;
|
393
|
+
/**
|
394
|
+
* schema
|
395
|
+
*/
|
396
|
+
schemaJSON: string;
|
397
|
+
/**
|
398
|
+
* 只读列表
|
399
|
+
*/
|
400
|
+
readonlyList?: string[];
|
401
|
+
/**
|
402
|
+
* 是否禁用(初次渲染时生效)
|
403
|
+
*/
|
404
|
+
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
|
+
/**
|
453
|
+
* 保存成功
|
454
|
+
*/
|
455
|
+
onSuccess?: () => void;
|
456
|
+
}
|
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;
|
485
|
+
/**
|
486
|
+
* 表格边框样式
|
487
|
+
*/
|
488
|
+
borderStyle?: string;
|
489
|
+
/**
|
490
|
+
* 左侧label背景颜色
|
491
|
+
*/
|
492
|
+
labelBgColor?: string;
|
493
|
+
}
|
494
|
+
|
495
|
+
declare const SenseInfo: React.FC<SenseInfoProps>;
|
496
|
+
|
497
|
+
interface SenseManagerProps {
|
498
|
+
/**
|
499
|
+
* 显示视图类型:system 系统视图,func 功能视图
|
500
|
+
*/
|
501
|
+
viewType: 'system' | 'func';
|
502
|
+
/**
|
503
|
+
* 左侧边栏显示视图列表
|
504
|
+
*/
|
505
|
+
views: {
|
506
|
+
label: string;
|
507
|
+
value: string;
|
508
|
+
}[];
|
509
|
+
/**
|
510
|
+
* 显示左侧边栏
|
511
|
+
*/
|
512
|
+
showView?: boolean;
|
513
|
+
/**
|
514
|
+
* 显示面包屑
|
515
|
+
*/
|
516
|
+
showBreadcrumb?: boolean;
|
517
|
+
/**
|
518
|
+
* 显示台账组列表
|
519
|
+
*/
|
520
|
+
showBookGroupTable?: boolean;
|
521
|
+
/**
|
522
|
+
* 显示台账列表
|
523
|
+
*/
|
524
|
+
showBookTable?: boolean;
|
525
|
+
/**
|
526
|
+
* 显示实体记录列表
|
527
|
+
*/
|
528
|
+
showSenseTable?: boolean;
|
529
|
+
/**
|
530
|
+
* 显示导入数据按钮
|
531
|
+
* @description 默认打开台账组导入,可按视图配置对应为台账导入/台账组导入
|
532
|
+
*/
|
533
|
+
showImportButton?: boolean | Record<string, 'book' | 'bookGroup'>;
|
534
|
+
/**
|
535
|
+
* 台账组功能导入数据隐藏根据地理层级自动匹配
|
536
|
+
*/
|
537
|
+
importHiddenGeolevel?: boolean | Record<string, boolean>;
|
538
|
+
/**
|
539
|
+
* 台账功能
|
540
|
+
*/
|
541
|
+
bookContextMenuConfig?: ('create' | 'show')[];
|
542
|
+
/**
|
543
|
+
* 实体记录功能
|
544
|
+
*/
|
545
|
+
senseContextMenuConfig?: ('show' | 'edit' | 'delete')[];
|
546
|
+
/**
|
547
|
+
* 启用标签
|
548
|
+
*/
|
549
|
+
enableTag?: boolean;
|
550
|
+
/**
|
551
|
+
* 地理层级叶子节点id,实体记录所属地理层级叶子节点为此值时返回
|
552
|
+
*/
|
553
|
+
leafRegionId?: string;
|
554
|
+
/**
|
555
|
+
* 地理层级路径节点id,实体记录所属地理层级路径只要包含此值即返回,leftRegionId无值时有效
|
556
|
+
*/
|
557
|
+
pathRegionId?: string;
|
558
|
+
/**
|
559
|
+
* 新建对象
|
560
|
+
* @param record
|
561
|
+
*/
|
562
|
+
onCreateSense?: (record: any) => void;
|
563
|
+
/**
|
564
|
+
* 查看实体
|
565
|
+
* @param record
|
566
|
+
*/
|
567
|
+
onShowSense?: (record: any) => void;
|
568
|
+
/**
|
569
|
+
* 编辑实体
|
570
|
+
* @param record
|
571
|
+
*/
|
572
|
+
onEditSense?: (record: any) => void;
|
573
|
+
/**
|
574
|
+
* 单击实体
|
575
|
+
* @param record
|
576
|
+
*/
|
577
|
+
onClickSense?: (record: any) => void;
|
578
|
+
/**
|
579
|
+
* 双击实体
|
580
|
+
* @param record
|
581
|
+
*/
|
582
|
+
onDoubleClickSense?: (record: any) => void;
|
583
|
+
/**
|
584
|
+
* 过滤条件背景颜色
|
585
|
+
*/
|
586
|
+
filterBgColor?: string;
|
587
|
+
/**
|
588
|
+
* 过滤条件图标颜色
|
589
|
+
*/
|
590
|
+
filterIconColor?: string;
|
591
|
+
/**
|
592
|
+
* 过滤条件右上角图标颜色
|
593
|
+
*/
|
594
|
+
filterActiveClor?: string;
|
595
|
+
/**
|
596
|
+
* 过滤条件内容背景颜色
|
597
|
+
*/
|
598
|
+
filterContentBgColor?: string;
|
599
|
+
/**
|
600
|
+
* 选中行高亮颜色
|
601
|
+
*/
|
602
|
+
rowHighlightColor?: string;
|
603
|
+
proTableContainerHeight?: number;
|
604
|
+
proTableHeadBg?: string;
|
605
|
+
proTableCloseAllBg?: string;
|
606
|
+
proTableSortIconColor?: string;
|
607
|
+
proTableSelectIcon?: string;
|
608
|
+
proTableSelectMultipleIconColor?: string;
|
609
|
+
proTablePaginationArrowBg?: string;
|
610
|
+
proTablePaginationBorderStyle?: string;
|
611
|
+
proTablePaginationBorderWidth?: number;
|
612
|
+
proTablePaginationBorderColor?: string;
|
613
|
+
}
|
614
|
+
interface SenseManagerRef {
|
615
|
+
/**
|
616
|
+
* 刷新台账列表
|
617
|
+
*/
|
618
|
+
refreshBookTable: () => void;
|
619
|
+
/**
|
620
|
+
* 刷新实体记录列表
|
621
|
+
*/
|
622
|
+
refreshSenseTable: () => void;
|
623
|
+
}
|
624
|
+
|
625
|
+
declare const SenseManager: React.ForwardRefExoticComponent<SenseManagerProps & React.RefAttributes<SenseManagerRef>>;
|
626
|
+
|
627
|
+
interface CcosSenseManagerProps extends Omit<SenseManagerProps, 'views'> {
|
628
|
+
'data-dnd': string;
|
629
|
+
tid: string;
|
630
|
+
views: {
|
631
|
+
key: string;
|
632
|
+
value: string;
|
633
|
+
}[] | {
|
634
|
+
label: string;
|
635
|
+
value: string;
|
636
|
+
}[];
|
637
|
+
showBookContextMenuConfig?: boolean;
|
638
|
+
showSenseContextMenuConfig?: boolean;
|
639
|
+
}
|
640
|
+
declare const CcosSenseManager: React.ForwardRefExoticComponent<CcosSenseManagerProps & React.RefAttributes<SenseManagerRef>>;
|
641
|
+
|
642
|
+
interface SenseSearchProps {
|
643
|
+
/**
|
644
|
+
* 功能视图编码
|
645
|
+
*/
|
646
|
+
viewCode?: string;
|
647
|
+
/**
|
648
|
+
* 显示顶部菜单栏
|
649
|
+
*/
|
650
|
+
showView?: boolean;
|
651
|
+
/**
|
652
|
+
* 系统视图列表
|
653
|
+
*/
|
654
|
+
views?: {
|
655
|
+
label: string;
|
656
|
+
value: string;
|
657
|
+
}[];
|
658
|
+
/**
|
659
|
+
* 时空搜索类型
|
660
|
+
* 时间、空间、最近邻、时空
|
661
|
+
*/
|
662
|
+
searchMode?: ('time' | 'space' | 'knn' | 'time-space')[];
|
663
|
+
/**
|
664
|
+
* 触发搜索
|
665
|
+
*/
|
666
|
+
onSearch?: (value: any) => void;
|
667
|
+
/**
|
668
|
+
* 地图开始绘制
|
669
|
+
*/
|
670
|
+
onStartDraw?: (mode: string, callback: any) => void;
|
671
|
+
/**
|
672
|
+
* 地图绘制(绘制回显)
|
673
|
+
*/
|
674
|
+
onMapDraw?: (value: any) => void;
|
675
|
+
/**
|
676
|
+
* tab1背景颜色
|
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
|
+
* 区域选择类型选中颜色
|
709
|
+
*/
|
710
|
+
areaSelectedColor?: string;
|
711
|
+
/**
|
712
|
+
* 空间范围选中项右上角图标颜色
|
713
|
+
*/
|
714
|
+
areaSelectedIconColor?: string;
|
715
|
+
}
|
716
|
+
|
717
|
+
declare const SenseSearch: React.FC<SenseSearchProps>;
|
718
|
+
|
719
|
+
interface CcosSenseSearchProps extends SenseSearchProps {
|
720
|
+
'data-dnd': string;
|
721
|
+
tid: string;
|
722
|
+
showSpaceSearch?: boolean;
|
723
|
+
}
|
724
|
+
declare const CcosSenseSearch: {
|
725
|
+
(props: CcosSenseSearchProps): React.JSX.Element;
|
726
|
+
settings: ComponentPrototype;
|
727
|
+
};
|
728
|
+
|
729
|
+
interface SenseTableProps extends TableProps {
|
730
|
+
/**
|
731
|
+
* 台账 id
|
732
|
+
*/
|
733
|
+
bookId?: string;
|
734
|
+
/**
|
735
|
+
* 台账模板 id
|
736
|
+
*/
|
737
|
+
templateId?: string;
|
738
|
+
/**
|
739
|
+
* 地理层级叶子节点id,实体记录所属地理层级叶子节点为此值时返回
|
740
|
+
*/
|
741
|
+
leafRegionId?: string;
|
742
|
+
/**
|
743
|
+
* 地理层级路径节点id,实体记录所属地理层级路径只要包含此值即返回,leftRegionId无值时有效
|
744
|
+
*/
|
745
|
+
pathRegionId?: string;
|
746
|
+
/**
|
747
|
+
* 视图编码
|
748
|
+
*/
|
749
|
+
viewCodes?: string[];
|
750
|
+
/**
|
751
|
+
* 搜索关键词
|
752
|
+
*/
|
753
|
+
keyword?: string;
|
754
|
+
/**
|
755
|
+
* 过滤条件
|
756
|
+
*/
|
757
|
+
filter?: any;
|
758
|
+
/**
|
759
|
+
* 过滤配置
|
760
|
+
*/
|
761
|
+
filterConfig?: any;
|
762
|
+
/**
|
763
|
+
* 实体记录功能
|
764
|
+
*/
|
765
|
+
contextMenuConfig?: ('show' | 'edit' | 'delete')[];
|
766
|
+
/**
|
767
|
+
* 启用标签
|
768
|
+
*/
|
769
|
+
enableTag?: boolean;
|
770
|
+
/**
|
771
|
+
* 单击实体
|
772
|
+
* @param record
|
773
|
+
*/
|
774
|
+
onClick?: (record: any) => void;
|
775
|
+
/**
|
776
|
+
* 双击实体
|
777
|
+
* @param record
|
778
|
+
*/
|
779
|
+
onDoubleClick?: (record: any) => void;
|
780
|
+
/**
|
781
|
+
* 查看实体
|
782
|
+
* @param record
|
783
|
+
*/
|
784
|
+
onShowSense?: (record: any) => void;
|
785
|
+
/**
|
786
|
+
* 编辑实体
|
787
|
+
* @param record
|
788
|
+
*/
|
789
|
+
onEditSense?: (record: any) => void;
|
790
|
+
/**
|
791
|
+
* 触发刷新的回调
|
792
|
+
*/
|
793
|
+
onRefresh?: () => void;
|
794
|
+
proTableContainerHeight?: number;
|
795
|
+
proTableHeadBg?: string;
|
796
|
+
proTableCloseAllBg?: string;
|
797
|
+
proTableSortIconColor?: string;
|
798
|
+
proTableSelectIcon?: string;
|
799
|
+
proTableSelectMultipleIconColor?: string;
|
800
|
+
proTablePaginationArrowBg?: string;
|
801
|
+
proTablePaginationBorderStyle?: string;
|
802
|
+
proTablePaginationBorderWidth?: number;
|
803
|
+
proTablePaginationBorderColor?: string;
|
804
|
+
}
|
805
|
+
interface SenseTableRef {
|
806
|
+
/**
|
807
|
+
* 刷新
|
808
|
+
*/
|
809
|
+
refresh: () => void;
|
810
|
+
}
|
811
|
+
|
812
|
+
declare const SenseTable: React.ForwardRefExoticComponent<SenseTableProps & React.RefAttributes<SenseTableRef>>;
|
813
|
+
|
814
|
+
interface CheckInfo {
|
815
|
+
info: {
|
816
|
+
selectSenseObjCodes?: string[];
|
817
|
+
selectBookIds?: string[];
|
818
|
+
unSelectBookIds?: string[];
|
819
|
+
selectSenseGlobalCodes?: string[];
|
820
|
+
unSelectSenseGlobalCodes?: string[];
|
821
|
+
selectOrgIds?: string[];
|
822
|
+
};
|
823
|
+
total: number;
|
824
|
+
}
|
825
|
+
interface SenseTreeProps {
|
826
|
+
/**
|
827
|
+
* 树类型
|
828
|
+
* entityClass: 分类-台账-实体记录
|
829
|
+
* region-book: 地理层级-台账-实体记录
|
830
|
+
* region-sense: 地理层级-实体记录
|
831
|
+
*/
|
832
|
+
treeType: 'entityClass' | 'region-book' | 'region-sense';
|
833
|
+
/**
|
834
|
+
* 视图编码
|
835
|
+
*/
|
836
|
+
viewCodes: string[];
|
837
|
+
/**
|
838
|
+
* 搜索参数
|
839
|
+
*/
|
840
|
+
searchParams: any;
|
841
|
+
/**
|
842
|
+
* 地理层级显示区间-根层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
|
843
|
+
*/
|
844
|
+
regionRootLevel?: number;
|
845
|
+
/**
|
846
|
+
* 地理层级显示区间-叶子层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
|
847
|
+
*/
|
848
|
+
regionLeafLevel?: number;
|
849
|
+
/**
|
850
|
+
* 树节点标题额外显示内容
|
851
|
+
*/
|
852
|
+
titleExtra?: (node: any) => React.ReactNode;
|
853
|
+
/**
|
854
|
+
* 默认全选
|
855
|
+
*/
|
856
|
+
defaultCheckedAll?: boolean;
|
857
|
+
/**
|
858
|
+
* 实体记录功能
|
859
|
+
*/
|
860
|
+
senseContextMenuConfig?: ('show' | 'edit')[];
|
861
|
+
/**
|
862
|
+
* 底部按钮功能
|
863
|
+
*/
|
864
|
+
bottomButtonConfig?: ('download' | 'share')[];
|
865
|
+
/**
|
866
|
+
* 点击共享按钮
|
867
|
+
*/
|
868
|
+
onShare?: (checkedInfo: CheckInfo) => void;
|
869
|
+
/**
|
870
|
+
* 实体总数变化
|
871
|
+
*/
|
872
|
+
onTotalChange?: (total: number) => void;
|
873
|
+
/**
|
874
|
+
* 树节点选中变化
|
875
|
+
*/
|
876
|
+
onCheck?: (checkedInfo: CheckInfo) => void;
|
877
|
+
/**
|
878
|
+
* 单击树节点
|
879
|
+
*/
|
880
|
+
onClick?: (node: any, e: any) => void;
|
881
|
+
/**
|
882
|
+
* 双击树节点
|
883
|
+
*/
|
884
|
+
onDoubleClick?: (node: any, e: any) => void;
|
885
|
+
/**
|
886
|
+
* 查看实体记录
|
887
|
+
*/
|
888
|
+
onShowSense?: (node: any, e: any) => void;
|
889
|
+
/**
|
890
|
+
* 编辑实体记录
|
891
|
+
*/
|
892
|
+
onEditSense?: (node: any, e: any) => void;
|
893
|
+
/**
|
894
|
+
* 数据情况背景颜色
|
895
|
+
*/
|
896
|
+
statisticsBgColor?: string;
|
897
|
+
/**
|
898
|
+
* 数据情况字体颜色
|
899
|
+
*/
|
900
|
+
statisticsFontColor?: string;
|
901
|
+
}
|
902
|
+
|
903
|
+
declare const SenseTree: React.FC<SenseTreeProps>;
|
904
|
+
|
905
|
+
interface CcosSenseTreeProps extends SenseTreeProps {
|
906
|
+
'data-dnd': string;
|
907
|
+
tid: string;
|
908
|
+
viewType?: 'system' | 'func';
|
909
|
+
viewCode?: string;
|
910
|
+
showSenseContextMenu?: boolean;
|
911
|
+
showBottomButton?: boolean;
|
912
|
+
}
|
913
|
+
declare const CcosSenseTree: {
|
914
|
+
(props: CcosSenseTreeProps): React.JSX.Element;
|
915
|
+
settings: ComponentPrototype;
|
916
|
+
};
|
917
|
+
|
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
|
+
interface SenseViewProps {
|
982
|
+
/**
|
983
|
+
* 功能视图编码
|
984
|
+
*/
|
985
|
+
viewCode?: string;
|
986
|
+
/**
|
987
|
+
* 显示顶部菜单栏
|
988
|
+
*/
|
989
|
+
showView?: boolean;
|
990
|
+
/**
|
991
|
+
* 系统视图列表
|
992
|
+
*/
|
993
|
+
views?: {
|
994
|
+
label: string;
|
995
|
+
value: string;
|
996
|
+
}[];
|
997
|
+
/**
|
998
|
+
* 时空搜索类型
|
999
|
+
* 时间、空间、最近邻、时空
|
1000
|
+
*/
|
1001
|
+
searchMode?: ('time' | 'space' | 'knn' | 'time-space')[];
|
1002
|
+
/**
|
1003
|
+
* 地图开始绘制
|
1004
|
+
*/
|
1005
|
+
onStartDraw?: (mode: string, callback: any) => void;
|
1006
|
+
/**
|
1007
|
+
* 地图绘制(绘制回显)
|
1008
|
+
*/
|
1009
|
+
onMapDraw?: (value: any) => void;
|
1010
|
+
/**
|
1011
|
+
* 树类型
|
1012
|
+
* entityClass: 分类-台账-实体记录
|
1013
|
+
* region-book: 地理层级-台账-实体记录
|
1014
|
+
* region-sense: 地理层级-实体记录
|
1015
|
+
*/
|
1016
|
+
treeType: 'entityClass' | 'region-book' | 'region-sense';
|
1017
|
+
/**
|
1018
|
+
* 地理层级显示区间-根层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
|
1019
|
+
*/
|
1020
|
+
regionRootLevel?: number;
|
1021
|
+
/**
|
1022
|
+
* 地理层级显示区间-叶子层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
|
1023
|
+
*/
|
1024
|
+
regionLeafLevel?: number;
|
1025
|
+
/**
|
1026
|
+
* 默认全选
|
1027
|
+
*/
|
1028
|
+
defaultCheckedAll?: boolean;
|
1029
|
+
/**
|
1030
|
+
* 实体记录功能
|
1031
|
+
*/
|
1032
|
+
senseContextMenuConfig?: ('show' | 'edit')[];
|
1033
|
+
/**
|
1034
|
+
* 底部按钮功能
|
1035
|
+
*/
|
1036
|
+
bottomButtonConfig?: 'download'[];
|
1037
|
+
/**
|
1038
|
+
* 实体总数变化
|
1039
|
+
*/
|
1040
|
+
onTotalChange?: (total: number) => void;
|
1041
|
+
/**
|
1042
|
+
* 树节点选中变化
|
1043
|
+
*/
|
1044
|
+
onCheck?: (checkedInfo: CheckInfo) => void;
|
1045
|
+
/**
|
1046
|
+
* 单击树节点
|
1047
|
+
*/
|
1048
|
+
onClick?: (node: any, e: any) => void;
|
1049
|
+
/**
|
1050
|
+
* 双击树节点
|
1051
|
+
*/
|
1052
|
+
onDoubleClick?: (node: any, e: any) => void;
|
1053
|
+
/**
|
1054
|
+
* 查看实体记录
|
1055
|
+
*/
|
1056
|
+
onShowSense?: (node: any, e: any) => void;
|
1057
|
+
/**
|
1058
|
+
* 编辑实体记录
|
1059
|
+
*/
|
1060
|
+
onEditSense?: (node: any, e: any) => void;
|
1061
|
+
}
|
1062
|
+
|
1063
|
+
declare const SenseView: React.FC<SenseViewProps>;
|
1064
|
+
|
1065
|
+
interface CcosSenseViewProps extends SenseViewProps {
|
1066
|
+
'data-dnd': string;
|
1067
|
+
tid: string;
|
1068
|
+
showSpaceSearch?: boolean;
|
1069
|
+
showSenseContextMenu?: boolean;
|
1070
|
+
showBottomButton?: boolean;
|
1071
|
+
}
|
1072
|
+
declare const CcosSenseView: {
|
1073
|
+
(props: CcosSenseViewProps): React.JSX.Element;
|
1074
|
+
settings: ComponentPrototype;
|
1075
|
+
};
|
1076
|
+
|
1077
|
+
type TagTreeSelectProps = TreeSelectProps;
|
1078
|
+
|
1079
|
+
declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
|
1080
|
+
|
1081
|
+
interface VideoPlayerProps {
|
1082
|
+
/**
|
1083
|
+
* 视频播放器库路径
|
1084
|
+
*/
|
1085
|
+
libsPath?: {
|
1086
|
+
cityeyes?: string;
|
1087
|
+
h5player?: string;
|
1088
|
+
};
|
1089
|
+
/**
|
1090
|
+
* 视频播放地址
|
1091
|
+
*/
|
1092
|
+
url?: string;
|
1093
|
+
/**
|
1094
|
+
* 实体唯一编码,用于视频控制
|
1095
|
+
*/
|
1096
|
+
senseGlobalCode?: string;
|
1097
|
+
/**
|
1098
|
+
* 视频通道 id
|
1099
|
+
*/
|
1100
|
+
channelId?: string;
|
1101
|
+
/**
|
1102
|
+
* 播放器类型
|
1103
|
+
*/
|
1104
|
+
videoPlayerType?: 'cityeyes' | 'h5player';
|
1105
|
+
/**
|
1106
|
+
* 视频源类型
|
1107
|
+
*/
|
1108
|
+
videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
declare const VideoPlayer: React.FC<VideoPlayerProps>;
|
1112
|
+
|
1113
|
+
interface CcosVideoPlayerProps extends VideoPlayerProps {
|
1114
|
+
'data-dnd': string;
|
1115
|
+
tid: string;
|
1116
|
+
}
|
1117
|
+
declare const CcosVideoPlayer: {
|
1118
|
+
(props: CcosVideoPlayerProps): React.JSX.Element;
|
1119
|
+
settings: ComponentPrototype;
|
1120
|
+
};
|
1121
|
+
|
1122
|
+
type Config = Pick<IcosDesktopType, 'apiPrefix'>;
|
1123
|
+
declare const setCconfig: (config: Config) => void;
|
1124
|
+
|
1125
|
+
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 };
|