antd-management-fast-framework 2.11.178 → 2.11.179

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.
Files changed (49) hide show
  1. package/es/components/ApplicationWrapper/index.d.ts +6 -0
  2. package/es/components/Bootstrap/index.d.ts +6 -0
  3. package/es/components/DataPreviewDrawer/index.d.ts +8 -1
  4. package/es/components/MenuWrapper/index.d.ts +0 -2
  5. package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +10 -2
  6. package/es/components/MobileContainor/MobilePreviewDrawer/index.d.ts +4 -1
  7. package/es/components/PageExtraWrapper/index.d.ts +0 -2
  8. package/es/framework/AuthorizationWrapper/index.d.ts +1 -0
  9. package/es/framework/Common/InternalBuild/index.d.ts +85 -21
  10. package/es/framework/Common/InternalFlow/index.d.ts +747 -155
  11. package/es/framework/Common/InternalLayout/index.d.ts +42 -3
  12. package/es/framework/Common/InternalSwitchoverFlow/index.d.ts +86 -5
  13. package/es/framework/Common/index.d.ts +6 -0
  14. package/es/framework/Core/index.d.ts +117 -35
  15. package/es/framework/CustomWrapper/Supplement/index.d.ts +1 -1
  16. package/es/framework/CustomWrapper/SupplementCore/index.d.ts +36 -5
  17. package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +14 -0
  18. package/es/framework/DataDrawer/Base/index.d.ts +128 -17
  19. package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +1 -1
  20. package/es/framework/DataDrawer/BaseFormDrawer/index.d.ts +20 -1
  21. package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +1 -9
  22. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -9
  23. package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +4 -9
  24. package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +4 -1
  25. package/es/framework/DataForm/BaseAddForm/index.d.ts +50 -9
  26. package/es/framework/DataForm/BaseUpdateForm/index.d.ts +26 -6
  27. package/es/framework/DataListView/Base/index.d.ts +24 -18
  28. package/es/framework/DataMenuContainer/index.d.ts +6 -2
  29. package/es/framework/DataModal/Base/index.d.ts +48 -12
  30. package/es/framework/DataModal/BaseAddModal/index.d.ts +1 -9
  31. package/es/framework/DataModal/BaseDisplayModal/index.d.ts +1 -9
  32. package/es/framework/DataModal/BaseFormModal/index.d.ts +9 -2
  33. package/es/framework/DataModal/BaseImageSortModal/index.d.ts +5 -9
  34. package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -8
  35. package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +5 -9
  36. package/es/framework/DataMultiPageView/MultiPage/index.d.ts +5 -0
  37. package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +43 -6
  38. package/es/framework/DataMultiPageView/MultiPageModal/index.d.ts +51 -9
  39. package/es/framework/DataOperation/Base/index.d.ts +1 -0
  40. package/es/framework/DataOperation/BaseWindow/index.d.ts +135 -36
  41. package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +43 -6
  42. package/es/framework/DataSinglePageView/SinglePageModal/index.d.ts +47 -7
  43. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +4 -2
  44. package/es/framework/DataSinglePageView/SinglePageSelectModal/index.d.ts +15 -3
  45. package/es/framework/DataSingleView/DataCore/index.d.ts +59 -12
  46. package/es/framework/DataSingleView/DataLoad/index.d.ts +35 -25
  47. package/es/framework/DataTabContainer/index.d.ts +1 -1
  48. package/es/index.js +2 -2
  49. package/package.json +20 -20
@@ -1,21 +1,53 @@
1
1
  /**
2
- * InternalFlow
2
+ * 构建流程相关。
3
3
  * @namespace Common
4
4
  * @class InternalFlow
5
- * @augments Core
5
+ * @extends Core
6
6
  */
7
7
  export class InternalFlow extends Core {
8
8
  /**
9
- * @constructs InternalFlow
9
+ * 构造函数
10
10
  */
11
11
  constructor(properties: any);
12
+ /**
13
+ * 在提交成功时刷新页头部数据,默认 true。
14
+ * @member {boolean}
15
+ */
12
16
  reloadHeaderOnSubmitSuccess: boolean;
17
+ /**
18
+ * 显示页头部,默认 true。
19
+ * @member {boolean}
20
+ */
13
21
  showPageHeader: boolean;
22
+ /**
23
+ * 显示重载按钮,默认 true。
24
+ * @member {boolean}
25
+ */
14
26
  showReloadButton: boolean;
27
+ /**
28
+ * 页包裹模式,默认 contentConfig.wrapperType.page
29
+ * @member {string}
30
+ */
15
31
  contentWrapperType: string;
32
+ /**
33
+ * 显示额外动作分割线,默认 false。
34
+ * @member {boolean}
35
+ */
16
36
  showExtraActionDivider: boolean;
37
+ /**
38
+ * 挂载完成后自动执行数据加载的延迟时间,默认 0。
39
+ * @member {number}
40
+ */
17
41
  loadRemoteRequestDelay: number;
42
+ /**
43
+ * 分页数据加载的延迟时间,默认 0。
44
+ * @member {number}
45
+ */
18
46
  pageRemoteRequestDelay: number;
47
+ /**
48
+ * 最后请求值。
49
+ * @member {Object}
50
+ */
19
51
  lastRequestingData: {
20
52
  type: string;
21
53
  payload: {};
@@ -35,191 +67,751 @@ export class InternalFlow extends Core {
35
67
  urlParams: null;
36
68
  externalData: null;
37
69
  };
38
- checkNeedUpdate: (preProperties: any, preState: any, snapshot: any) => boolean;
39
- beforeFirstLoadRequest: (submitData: any) => void;
40
- beforeReLoadRequest: (submitData: any) => void;
41
- beforeRequest: (submitData: any) => void;
42
- afterGetFirstRequestResult: (submitData: any, responseData: any) => void;
43
- afterGetRequestResult: (submitData: any, responseData: any) => void;
44
- afterGetReLoadRequestResult: (submitData: any, responseData: any) => void;
70
+ /**
71
+ * 检测是否需要更新。
72
+ * @function
73
+ * @param {Object} preProperties 先前属性值。
74
+ * @param {Object} preState 先前 state 值。
75
+ * @param {Object} snapshot 快照。
76
+ * @returns {boolean} 检测结果。
77
+ */
78
+ checkNeedUpdate: (preProperties: Object, preState: Object, snapshot: Object) => boolean;
79
+ /**
80
+ * 首次执行远程数据加载请求的前置处理,默认为空逻辑,可根据需要重载。
81
+ * @function
82
+ * @param {Object} requestData 请求参数。
83
+ * @example
84
+ * beforeFirstLoadRequest = () => {}
85
+ */
86
+ beforeFirstLoadRequest: (requestData: Object) => void;
87
+ /**
88
+ * 执行重载请求的前置处理,默认为空逻辑,可根据需要重载。
89
+ * @function
90
+ * @param {Object} requestData 请求参数。
91
+ * @example
92
+ * beforeReLoadRequest = () => {}
93
+ */
94
+ beforeReLoadRequest: (requestData: Object) => void;
95
+ /**
96
+ * 执行请求的前置处理,默认为空逻辑,可根据需要重载。
97
+ * @function
98
+ * @param {Object} requestData 请求参数。
99
+ * @example
100
+ * beforeReLoadRequest = () => {}
101
+ */
102
+ beforeRequest: (requestData: Object) => void;
103
+ /**
104
+ * 首次获取请求结果后的处理,默认为空逻辑,可根据需要重载。
105
+ * @function
106
+ * @param {Object} requestData 请求参数。
107
+ * @param {Object} responseData 返回数据。
108
+ * @example
109
+ * afterGetFirstRequestResult = () => {}
110
+ */
111
+ afterGetFirstRequestResult: (requestData: Object, responseData: Object) => void;
112
+ /**
113
+ * 获取请求结果后的处理,默认为空逻辑,可根据需要重载。
114
+ * @function
115
+ * @param {Object} requestData 请求参数。
116
+ * @param {Object} responseData 返回数据。
117
+ * @example
118
+ * afterGetRequestResult = () => {}
119
+ */
120
+ afterGetRequestResult: (requestData: Object, responseData: Object) => void;
121
+ /**
122
+ * 获取重载结果后的处理,默认为空逻辑,可根据需要重载。
123
+ * @function
124
+ * @param {Object} requestData 请求参数。
125
+ * @param {Object} responseData 返回数据。
126
+ * @example
127
+ * afterGetReLoadRequestResult = () => {}
128
+ */
129
+ afterGetReLoadRequestResult: (requestData: Object, responseData: Object) => void;
130
+ /**
131
+ * 获取请求数据。
132
+ * @function
133
+ */
45
134
  getRequestingData(): {
46
135
  type: string;
47
136
  payload: {};
48
137
  };
49
- setRequestingData(parameters: any, callback: any): void;
138
+ /**
139
+ * 设置请求数据。
140
+ * @function
141
+ * @param {Object} parameters 参数。
142
+ * @param {Function} callback 回调处理。
143
+ */
144
+ setRequestingData(parameters: Object, callback: Function): void;
145
+ /**
146
+ * 清理请求数据。
147
+ * @function
148
+ */
50
149
  clearRequestingData(): void;
51
- initLoadRequestParams: (o: any) => any;
52
- supplementLoadRequestParams: (o: any) => any;
53
- checkLoadRequestParams: (o: any) => boolean;
150
+ /**
151
+ * 初始化加载请求参数,默认为空逻辑,可根据需要重载。
152
+ * @function
153
+ * @param {Object} o 参数。
154
+ * @returns {Object} 处理结果。
155
+ * @example
156
+ * initLoadRequestParams = (o) => o
157
+ */
158
+ initLoadRequestParams: (o: Object) => Object;
159
+ /**
160
+ * 追加加载请求参数,默认为空逻辑,可根据需要重载。
161
+ * @function
162
+ * @param {Object} o 参数。
163
+ * @returns {Object} 处理结果。
164
+ * @example
165
+ * supplementLoadRequestParams = (o) => o
166
+ */
167
+ supplementLoadRequestParams: (o: Object) => Object;
168
+ /**
169
+ * 检测加载请求参数,默认检测通过,可根据需要重载。
170
+ * @function
171
+ * @param {Object} o 参数。
172
+ * @returns {boolean} 检测结果。
173
+ * @example
174
+ * checkLoadRequestParams = (o) => true
175
+ */
176
+ checkLoadRequestParams: (o: Object) => boolean;
177
+ /**
178
+ * 执行加载。
179
+ * @function
180
+ * @param {Object} option 配置项。
181
+ * @param {Object} [option.requestData={}] 请求参数。
182
+ * @param {Object} option.otherState 请求前的 state 赋值。
183
+ * @param {number} option.delay 请求延迟值。
184
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
185
+ * @param {Function} option.beforeRequest 请求预处理。
186
+ * @param {Function} option.successCallback 请求成功后的回调。
187
+ * @param {Function} option.failCallback 请求失败后的回调。
188
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
189
+ */
54
190
  initLoad: ({ requestData: requestDataSource, otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback, }: {
55
- requestData?: {} | undefined;
56
- otherState?: {} | undefined;
57
- delay?: number | undefined;
58
- prepareRequest?: null | undefined;
59
- beforeRequest?: null | undefined;
60
- successCallback?: null | undefined;
61
- failCallback?: null | undefined;
62
- completeCallback?: null | undefined;
191
+ requestData?: Object | undefined;
192
+ otherState: Object;
193
+ delay: number;
194
+ prepareRequest: Function;
195
+ beforeRequest: Function;
196
+ successCallback: Function;
197
+ failCallback: Function;
198
+ completeCallback: Function;
63
199
  }) => void;
200
+ /**
201
+ * 调整加载接口配置,默认为空,可根据需要重载。
202
+ * @function
203
+ * @returns {string} 要调整为的请求入口。
204
+ * @example
205
+ * adjustLoadApiPath = () => ""
206
+ */
64
207
  adjustLoadApiPath: () => string;
208
+ /**
209
+ * 执行加载核心逻辑。
210
+ * @function
211
+ * @param {Object} option 配置项。
212
+ * @param {Object} option.requestData 请求参数。
213
+ * @param {number} option.delay 请求延迟值。
214
+ * @param {Function} option.beforeRequest 请求预处理。
215
+ * @param {Function} option.successCallback 请求成功后的回调。
216
+ * @param {Function} option.failCallback 请求失败后的回调。
217
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
218
+ */
65
219
  initLoadCore: ({ requestData, delay, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback, }: {
66
- requestData: any;
67
- delay?: number | undefined;
68
- beforeRequest?: null | undefined;
69
- successCallback?: null | undefined;
70
- failCallback?: null | undefined;
71
- completeCallback?: null | undefined;
220
+ requestData: Object;
221
+ delay: number;
222
+ beforeRequest: Function;
223
+ successCallback: Function;
224
+ failCallback: Function;
225
+ completeCallback: Function;
72
226
  }) => void;
227
+ /**
228
+ * 远程加载。
229
+ * @function
230
+ * @param {Object} option 配置项。
231
+ * @param {Object} option.requestData 请求参数。
232
+ * @param {Function} option.successCallback 请求成功后的回调。
233
+ * @param {Function} option.failCallback 请求失败后的回调。
234
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
235
+ */
73
236
  loadFromApi: ({ requestData, successCallback, failCallback, completeCallback, }: {
74
- requestData: any;
75
- successCallback?: null | undefined;
76
- failCallback?: null | undefined;
77
- completeCallback?: null | undefined;
237
+ requestData: Object;
238
+ successCallback: Function;
239
+ failCallback: Function;
240
+ completeCallback: Function;
78
241
  }) => void;
79
242
  /**
80
- * query page list data
81
- * @param {*} options
243
+ * 分页加载。
244
+ * @function
245
+ * @param {*} option 配置项。
246
+ * @param {Object} option.otherState 请求前的 state 赋值。
247
+ * @param {Object} option.requestData 请求参数。
248
+ * @param {number} option.delay 请求延迟值。
249
+ * @param {Function} option.successCallback 请求成功后的回调。
250
+ * @param {Function} option.failCallback 请求失败后的回调。
251
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
82
252
  */
83
253
  pageListData: ({ otherState, requestData, delay, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
84
- reloadData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: {
85
- otherState?: {} | undefined;
86
- delay?: number | undefined;
87
- prepareRequest?: null | undefined;
88
- beforeRequest?: null | undefined;
89
- successCallback?: null | undefined;
90
- failCallback?: null | undefined;
91
- completeCallback?: null | undefined;
92
- }) => void;
93
- reloadDataWithReloadAnimalPrompt: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: {
94
- otherState?: {} | undefined;
95
- delay?: number | undefined;
96
- prepareRequest?: null | undefined;
97
- beforeRequest?: null | undefined;
98
- successCallback?: null | undefined;
99
- failCallback?: null | undefined;
100
- completeCallback?: null | undefined;
101
- }) => void;
102
- searchData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: {
103
- otherState?: {} | undefined;
104
- delay?: number | undefined;
105
- prepareRequest?: null | undefined;
106
- beforeRequest?: null | undefined;
107
- successCallback?: null | undefined;
108
- failCallback?: null | undefined;
109
- completeCallback?: null | undefined;
110
- }) => void;
111
- resetData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: {
112
- otherState?: {} | undefined;
113
- delay?: number | undefined;
114
- prepareRequest?: null | undefined;
115
- beforeRequest?: null | undefined;
116
- successCallback?: null | undefined;
117
- failCallback?: null | undefined;
118
- completeCallback?: null | undefined;
119
- }) => void;
120
- refreshData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: {
121
- otherState?: {} | undefined;
122
- delay?: number | undefined;
123
- prepareRequest?: null | undefined;
124
- beforeRequest?: null | undefined;
125
- successCallback?: null | undefined;
126
- failCallback?: null | undefined;
127
- completeCallback?: null | undefined;
128
- }) => void;
129
- refreshDataWithReloadAnimalPrompt: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: {
130
- otherState?: {} | undefined;
131
- delay?: number | undefined;
132
- prepareRequest?: null | undefined;
133
- beforeRequest?: null | undefined;
134
- successCallback?: null | undefined;
135
- failCallback?: null | undefined;
136
- completeCallback?: null | undefined;
137
- }) => void;
138
- reloadGlobalData: ({ successCallback, failCallback }: {
139
- successCallback?: null | undefined;
140
- failCallback?: null | undefined;
141
- }) => void;
254
+ /**
255
+ * 重载数据。
256
+ * @function
257
+ * @param {*} option 配置项。
258
+ * @param {Object} option.otherState 请求前的 state 赋值。
259
+ * @param {number} option.delay 请求延迟值。
260
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
261
+ * @param {Function} option.beforeRequest 请求预处理。
262
+ * @param {Function} option.successCallback 请求成功后的回调。
263
+ * @param {Function} option.failCallback 请求失败后的回调。
264
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
265
+ */
266
+ reloadData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
267
+ /**
268
+ * 重载数据【显示重载提示效果】。
269
+ * @function
270
+ * @param {*} option 配置项。
271
+ * @param {Object} option.otherState 请求前的 state 赋值。
272
+ * @param {number} option.delay 请求延迟值。
273
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
274
+ * @param {Function} option.beforeRequest 请求预处理。
275
+ * @param {Function} option.successCallback 请求成功后的回调。
276
+ * @param {Function} option.failCallback 请求失败后的回调。
277
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
278
+ */
279
+ reloadDataWithReloadAnimalPrompt: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
280
+ /**
281
+ * 检索数据。
282
+ * @function
283
+ * @param {*} option 配置项。
284
+ * @param {Object} option.otherState 请求前的 state 赋值。
285
+ * @param {number} option.delay 请求延迟值。
286
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
287
+ * @param {Function} option.beforeRequest 请求预处理。
288
+ * @param {Function} option.successCallback 请求成功后的回调。
289
+ * @param {Function} option.failCallback 请求失败后的回调。
290
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
291
+ */
292
+ searchData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
293
+ /**
294
+ * 重置数据。
295
+ * @function
296
+ * @param {*} option 配置项。
297
+ * @param {Object} option.otherState 请求前的 state 赋值。
298
+ * @param {number} option.delay 请求延迟值。
299
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
300
+ * @param {Function} option.beforeRequest 请求预处理。
301
+ * @param {Function} option.successCallback 请求成功后的回调。
302
+ * @param {Function} option.failCallback 请求失败后的回调。
303
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
304
+ */
305
+ resetData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
306
+ /**
307
+ * 刷新数据。
308
+ * @function
309
+ * @param {*} option 配置项。
310
+ * @param {Object} option.otherState 请求前的 state 赋值。
311
+ * @param {number} option.delay 请求延迟值。
312
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
313
+ * @param {Function} option.beforeRequest 请求预处理。
314
+ * @param {Function} option.successCallback 请求成功后的回调。
315
+ * @param {Function} option.failCallback 请求失败后的回调。
316
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
317
+ */
318
+ refreshData: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
319
+ /**
320
+ * 刷新数据【显示刷新提示效果】。
321
+ * @function
322
+ * @param {*} option 配置项。
323
+ * @param {Object} option.otherState 请求前的 state 赋值。
324
+ * @param {number} option.delay 请求延迟值。
325
+ * @param {Function} option.prepareRequest 请求前准备逻辑。
326
+ * @param {Function} option.beforeRequest 请求预处理。
327
+ * @param {Function} option.successCallback 请求成功后的回调。
328
+ * @param {Function} option.failCallback 请求失败后的回调。
329
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
330
+ */
331
+ refreshDataWithReloadAnimalPrompt: ({ otherState, delay, prepareRequest: prepareRequestSource, beforeRequest: beforeRequestSource, successCallback, failCallback, completeCallback: completeCallbackSource, }: any) => void;
332
+ /**
333
+ * 重载全局数据。
334
+ * @function
335
+ * @param {*} option 配置项。
336
+ * @param {Function} option.successCallback 请求成功后的回调。
337
+ * @param {Function} option.failCallback 请求失败后的回调。
338
+ */
339
+ reloadGlobalData: ({ successCallback, failCallback }: any) => void;
340
+ /**
341
+ * 首次加载数据成功后执行,默认为空逻辑,可根据需要重载。
342
+ * @function
343
+ * @example
344
+ * afterFirstLoadSuccess = () => {}
345
+ */
142
346
  afterFirstLoadSuccess: () => void;
143
- afterLoadSuccess: ({ metaData, metaListData, metaExtra, metaOriginalData, }: {
144
- metaData?: null | undefined;
145
- metaListData?: any[] | undefined;
146
- metaExtra?: null | undefined;
147
- metaOriginalData?: null | undefined;
148
- }) => void;
347
+ /**
348
+ * 加载数据成功后执行。
349
+ * @function
350
+ * @param {*} option 配置项。
351
+ * @param {Object} option.metaData 单体数据。
352
+ * @param {Array} option.metaListData 列表数据。
353
+ * @param {Object} option.metaExtra 额外数据。
354
+ * @param {Object} option.metaOriginalData 原始数据。
355
+ */
356
+ afterLoadSuccess: ({ metaData, metaListData, metaExtra, metaOriginalData, }: any) => void;
357
+ /**
358
+ * 重载数据成功后执行。
359
+ * @function
360
+ * @example
361
+ * afterReloadSuccess = () => {}
362
+ */
149
363
  afterReloadSuccess: () => void;
364
+ /**
365
+ * 返回列表。
366
+ * @function
367
+ */
150
368
  backToList: () => void;
369
+ /**
370
+ * 检测是否有作业正在处理中。
371
+ * @function
372
+ * @returns {boolean} 检测结果。
373
+ */
151
374
  checkWorkDoing(): boolean;
375
+ /**
376
+ * 数据校验。
377
+ * @function
378
+ * @param {Object} option 配置项。
379
+ * @param {Function} option.successCallback 请求成功后的回调。
380
+ * @param {Function} option.failCallback 请求失败后的回调。
381
+ * @param {Function} option.completeCallback 请求完成后的回调,成功或失败后都将触发。
382
+ */
152
383
  validate: ({ successCallback, failCallback, completeCallback, }: {
153
- successCallback?: null | undefined;
154
- failCallback?: null | undefined;
155
- completeCallback?: null | undefined;
384
+ successCallback: Function;
385
+ failCallback: Function;
386
+ completeCallback: Function;
156
387
  }) => never;
388
+ /**
389
+ * 根据 Url 触发重载。
390
+ * @function
391
+ */
157
392
  reloadByUrl(): void;
393
+ /**
394
+ * 渲染其他预设逻辑。
395
+ * @function
396
+ */
158
397
  renderPresetOther: () => null;
159
- renderPresetFormNowTimeField: (data: any) => React.JSX.Element;
160
- renderPresetFormCreateTimeField: (name?: string, helper?: string, label?: string, formItemLayout?: null) => React.JSX.Element;
161
- renderPresetFormUpdateTimeField: (name?: string, helper?: string, label?: string, formItemLayout?: null) => React.JSX.Element;
162
- renderPresetFormRadioCore: (listDataSource: any, adjustListDataCallback?: null) => React.JSX.Element;
163
- renderPresetSearchInput: (label: any, name: any, helper?: null, icon?: React.JSX.Element, innerProperties?: {}, canOperate?: boolean, formItemLayout?: {}) => React.JSX.Element;
164
- renderPresetSearchInputNumber: (label: any, name: any, helper?: null, icon?: React.JSX.Element, innerProperties?: {}, canOperate?: boolean, formItemLayout?: {}) => React.JSX.Element;
165
- renderPresetFormDisplay: (label: any, content: any, formItemLayout?: {}) => React.JSX.Element;
166
- renderPresetFormHiddenWrapper: (children: any, hidden?: boolean) => React.JSX.Element;
167
- renderPresetFormInputFieldData: (fieldData: any, required?: boolean, icon?: React.JSX.Element, innerProperties?: {}, canOperate?: boolean, formItemLayout?: {}, reminderPrefix?: string, hidden?: boolean) => React.JSX.Element;
168
- renderPresetFormInput: (label: any, name: any, required?: boolean, helper?: null, icon?: React.JSX.Element, innerProperties?: {}, canOperate?: boolean, formItemLayout?: {}, reminderPrefix?: string, hidden?: boolean) => React.JSX.Element;
169
- renderPresetFormPassword: (label: any, name: any, required?: boolean, helper?: null, icon?: React.JSX.Element, innerProperties?: {}, canOperate?: boolean, formItemLayout?: {}) => React.JSX.Element;
170
- renderPresetFormOnlyShowText: (label: any, value: any, helper?: null, formItemLayout?: {}, requiredForShow?: boolean) => React.JSX.Element;
171
- renderPresetFormButton: (config: any, formItemLayout?: {}) => React.JSX.Element;
172
- renderPresetFormActionItem: (component: any, formItemLayout?: {}) => React.JSX.Element | null;
173
- renderPresetFormOnlyShowTextarea: (label: any, value: any, helper?: null, textAreaProperties?: null, formItemLayout?: {}) => React.JSX.Element;
174
- renderPresetFormText: (label: any, value: any, helper?: null, formItemLayout?: {}) => React.JSX.Element;
175
- renderPresetFormRadio: (label: any, name: any, renderItem: any, helper?: null, onChangeCallback?: null, formItemLayout?: null, required?: boolean, innerProperties?: null) => React.JSX.Element;
176
- renderPresetSearchFormSelect: (label: any, name: any, options: any, helper?: null) => React.JSX.Element;
398
+ /**
399
+ * 渲染预设表单当前时间项。
400
+ * @function
401
+ * @param {Object} data 配置数据。
402
+ */
403
+ renderPresetFormNowTimeField: (data: Object) => React.JSX.Element;
404
+ /**
405
+ * 渲染预设表单创建时间项。
406
+ * @function
407
+ * @param {string} name 名称。
408
+ * @param {string} helper 说明。
409
+ * @param {string} label 标签。
410
+ * @param {Object} formItemLayout 表单布局。
411
+ * @returns {Object} 渲染结果
412
+ */
413
+ renderPresetFormCreateTimeField: (name?: string, helper?: string, label?: string, formItemLayout?: Object) => Object;
414
+ /**
415
+ * 渲染预设表单更新时间项。
416
+ * @function
417
+ * @param {string} name 名称。
418
+ * @param {string} helper 说明。
419
+ * @param {string} label 标签。
420
+ * @param {Object} formItemLayout 表单布局。
421
+ * @returns {Object} 渲染结果
422
+ */
423
+ renderPresetFormUpdateTimeField: (name?: string, helper?: string, label?: string, formItemLayout?: Object) => Object;
424
+ /**
425
+ * 渲染预设表单单选项。
426
+ * @function
427
+ * @param {Array} listDataSource 列表数据源。
428
+ * @param {Function} adjustListDataCallback 调整回调。
429
+ * @returns {Object} 渲染结果
430
+ */
431
+ renderPresetFormRadioCore: (listDataSource: any[], adjustListDataCallback?: Function) => Object;
432
+ /**
433
+ * 渲染预设表单搜索文本输入项。
434
+ * @function
435
+ * @param {string} name 名称。
436
+ * @param {string} helper 说明。
437
+ * @param {string} label 标签。
438
+ * @param {Object} icon 图标。
439
+ * @param {Object} innerProperties 内部组件属性配置。
440
+ * @param {boolean} canOperate 是否可操作。
441
+ * @param {Object} formItemLayout 表单布局。
442
+ * @returns {Object} 渲染结果
443
+ */
444
+ renderPresetSearchInput: (label: string, name: string, helper?: string, icon?: Object, innerProperties?: Object, canOperate?: boolean, formItemLayout?: Object) => Object;
445
+ /**
446
+ * 渲染预设表单搜索数字输入项。
447
+ * @function
448
+ * @param {string} name 名称。
449
+ * @param {string} helper 说明。
450
+ * @param {string} label 标签。
451
+ * @param {Object} icon 图标。
452
+ * @param {Object} innerProperties 内部组件属性配置。
453
+ * @param {boolean} canOperate 是否可操作。
454
+ * @param {Object} formItemLayout 表单布局。
455
+ * @returns {Object} 渲染结果
456
+ */
457
+ renderPresetSearchInputNumber: (label: string, name: string, helper?: string, icon?: Object, innerProperties?: Object, canOperate?: boolean, formItemLayout?: Object) => Object;
458
+ /**
459
+ * 渲染预设表单显示项。
460
+ * @function
461
+ * @param {string} label 标签。
462
+ * @param {string} content 内容。
463
+ * @param {Object} formItemLayout 表单布局。
464
+ * @returns {Object} 渲染结果
465
+ */
466
+ renderPresetFormDisplay: (label: string, content: string, formItemLayout?: Object) => Object;
467
+ /**
468
+ * 渲染预设表单隐藏项。
469
+ * @function
470
+ * @param {string} children 内部内容。
471
+ * @param {boolean} hidden 隐藏状态。
472
+ * @returns {Object} 渲染结果
473
+ */
474
+ renderPresetFormHiddenWrapper: (children: string, hidden?: boolean) => Object;
475
+ /**
476
+ * 渲染预设表单输入项。
477
+ * @function
478
+ * @param {Object} fieldData 字段数据。
479
+ * @param {boolean} required 必填设置。
480
+ * @param {Object} icon 图标。
481
+ * @param {Object} innerProperties 内部组件属性配置。
482
+ * @param {boolean} canOperate 是否可操作。
483
+ * @param {Object} formItemLayout 表单布局。
484
+ * @param {string} reminderPrefix 提醒前缀。
485
+ * @param {boolean} hidden 隐藏状态。
486
+ * @returns {Object} 渲染结果
487
+ */
488
+ renderPresetFormInputFieldData: (fieldData: Object, required?: boolean, icon?: Object, innerProperties?: Object, canOperate?: boolean, formItemLayout?: Object, reminderPrefix?: string, hidden?: boolean) => Object;
489
+ /**
490
+ * 渲染预设表单输入框。
491
+ * @function
492
+ * @param {string} name 名称。
493
+ * @param {string} helper 说明。
494
+ * @param {string} label 标签。
495
+ * @param {boolean} required 必填设置。
496
+ * @param {Object} icon 图标。
497
+ * @param {Object} innerProperties 内部组件属性配置。
498
+ * @param {boolean} canOperate 是否可操作。
499
+ * @param {Object} formItemLayout 表单布局。
500
+ * @param {string} reminderPrefix 提醒前缀。
501
+ * @param {boolean} hidden 隐藏状态。
502
+ * @returns {Object} 渲染结果
503
+ */
504
+ renderPresetFormInput: (label: string, name: string, required?: boolean, helper?: string, icon?: Object, innerProperties?: Object, canOperate?: boolean, formItemLayout?: Object, reminderPrefix?: string, hidden?: boolean) => Object;
505
+ /**
506
+ * 渲染预设表单密码框。
507
+ * @function
508
+ * @param {string} name 名称。
509
+ * @param {string} helper 说明。
510
+ * @param {string} label 标签。
511
+ * @param {boolean} required 必填设置。
512
+ * @param {Object} icon 图标。
513
+ * @param {Object} innerProperties 内部组件属性配置。
514
+ * @param {boolean} canOperate 是否可操作。
515
+ * @param {Object} formItemLayout 表单布局。
516
+ * @returns {Object} 渲染结果
517
+ */
518
+ renderPresetFormPassword: (label: string, name: string, required?: boolean, helper?: string, icon?: Object, innerProperties?: Object, canOperate?: boolean, formItemLayout?: Object) => Object;
519
+ /**
520
+ * 渲染预设表单纯展示框。
521
+ * @function
522
+ * @param {string} label 标签。
523
+ * @param {string} value 值。
524
+ * @param {string} helper 说明。
525
+ * @param {Object} formItemLayout 表单布局。
526
+ * @param {boolean} requiredForShow 是否显示*标。
527
+ * @returns {Object} 渲染结果
528
+ */
529
+ renderPresetFormOnlyShowText: (label: string, value: string, helper?: string, formItemLayout?: Object, requiredForShow?: boolean) => Object;
530
+ /**
531
+ * 渲染预设表单按钮。
532
+ * @function
533
+ * @param {Object} config 配置。
534
+ * @param {Object} formItemLayout 表单布局。
535
+ * @returns {Object} 渲染结果
536
+ */
537
+ renderPresetFormButton: (config: Object, formItemLayout?: Object) => Object;
538
+ /**
539
+ * 渲染预设表单动作项。
540
+ * @function
541
+ * @param {Object} component 组件。
542
+ * @param {Object} formItemLayout 表单布局。
543
+ * @returns {Object} 渲染结果
544
+ */
545
+ renderPresetFormActionItem: (component: Object, formItemLayout?: Object) => Object;
546
+ /**
547
+ * 渲染预设表单纯展示文本域。
548
+ * @function
549
+ * @param {string} label 标签。
550
+ * @param {string} value 值。
551
+ * @param {string} helper 说明。
552
+ * @param {Object} textAreaProperties 内部属性配置。
553
+ * @param {Object} formItemLayout 表单布局。
554
+ * @returns {Object} 渲染结果
555
+ */
556
+ renderPresetFormOnlyShowTextarea: (label: string, value: string, helper?: string, textAreaProperties?: Object, formItemLayout?: Object) => Object;
557
+ /**
558
+ * 渲染预设表单纯展示文本。
559
+ * @function
560
+ * @param {string} label 标签。
561
+ * @param {string} value 值。
562
+ * @param {string} helper 说明。
563
+ * @param {Object} formItemLayout 表单布局。
564
+ * @returns {Object} 渲染结果
565
+ */
566
+ renderPresetFormText: (label: string, value: string, helper?: string, formItemLayout?: Object) => Object;
567
+ /**
568
+ * 渲染预设表单单选项。
569
+ * @function
570
+ * @param {string} label 标签。
571
+ * @param {string} name 名称。
572
+ * @param {Function} renderItem 项渲染。
573
+ * @param {string} helper 说明。
574
+ * @param {Function} onChange 值变更回调。
575
+ * @param {Object} formItemLayout 表单布局。
576
+ * @param {boolean} required 是否显示必填*标。
577
+ * @param {Object} innerProperties 内部组件属性配置。
578
+ * @returns {Object} 渲染结果
579
+ */
580
+ renderPresetFormRadio: (label: string, name: string, renderItem: Function, helper?: string, onChange?: Function, formItemLayout?: Object, required?: boolean, innerProperties?: Object) => Object;
581
+ /**
582
+ * 渲染预设搜索表单下拉选择项。
583
+ * @function
584
+ * @param {string} label 标签。
585
+ * @param {string} name 名称。
586
+ * @param {Function} option 配置项。
587
+ * @param {string} helper 说明。
588
+ * @returns {Object} 渲染结果
589
+ */
590
+ renderPresetSearchFormSelect: (label: string, name: string, options: any, helper?: string) => Object;
591
+ /**
592
+ * 获取其他按钮是否为禁用状态。
593
+ * @function
594
+ */
177
595
  getOtherButtonDisabled: () => boolean;
596
+ /**
597
+ * 获取保存按钮是否为禁用状态。
598
+ * @function
599
+ */
178
600
  getSaveButtonDisabled: () => any;
601
+ /**
602
+ * 获取保存按钮是否为加载中状态。
603
+ * @function
604
+ */
179
605
  getSaveButtonLoading: () => boolean;
606
+ /**
607
+ * 获取保存按钮是否为处理中状态。
608
+ * @function
609
+ */
180
610
  getSaveButtonProcessing: () => any;
611
+ /**
612
+ * 获取保存按钮图标。
613
+ * @function
614
+ */
181
615
  getSaveButtonIcon: () => React.JSX.Element;
616
+ /**
617
+ * 获取禁用状态下保存按钮图标。
618
+ * @function
619
+ */
182
620
  getDisabledButtonIcon: () => React.JSX.Element;
621
+ /**
622
+ * 获取页面标题。
623
+ * @function
624
+ */
183
625
  getPresetPageTitle: () => string;
184
- renderPresetDisabledButton: (text?: string) => React.JSX.Element;
185
- renderPresetSaveButton: ({ icon, text, handleClick, disabled, hidden, }: {
186
- icon: any;
187
- text: any;
188
- handleClick: any;
189
- disabled?: boolean | undefined;
190
- hidden?: boolean | undefined;
191
- }) => React.JSX.Element;
626
+ /**
627
+ * 渲染预设的禁用按钮
628
+ * @function
629
+ * @param {string} text 按钮文字。
630
+ * @returns {Object} 渲染结果
631
+ */
632
+ renderPresetDisabledButton: (text?: string) => Object;
633
+ /**
634
+ * 渲染预设的保存按钮
635
+ * @function
636
+ * @param {*} option 配置项。
637
+ * @param {Object} option.icon 图标。
638
+ * @param {string} option.text 按钮文字。
639
+ * @param {Function} option.handleClick 按钮回调。
640
+ * @param {boolean} option.disabled 是否禁用状态。
641
+ * @param {boolean} option.hidden 是否隐藏状态。
642
+ * @returns {Object} 渲染结果
643
+ */
644
+ renderPresetSaveButton: ({ icon, text, handleClick, disabled, hidden, }: any) => Object;
645
+ /**
646
+ * 构建表单额外配置,默认为空,可根据需要重载。
647
+ * @function
648
+ * @example
649
+ * establishFormAdditionalConfig = () => {}
650
+ */
192
651
  establishFormAdditionalConfig: () => {};
193
- renderPresetRefreshButton: (properties?: null) => React.JSX.Element;
194
- beforeVideoUpload: (file: any) => boolean;
195
- pretreatmentImageUploadRemoteResponse: (response: any) => never;
196
- pretreatmentFileBase64UploadRemoteResponse: (response: any) => never;
197
- pretreatmentVideoUploadRemoteResponse: (response: any) => never;
198
- pretreatmentAudioUploadRemoteResponse: (response: any) => never;
199
- pretreatmentFileUploadRemoteResponse: (response: any) => never;
200
- establishToolBarConfig: () => null;
201
- establishHelpConfig: () => null;
202
- establishSiderTopAreaConfig: () => null;
203
- establishSiderBottomAreaConfig: () => null;
204
- establishPageContentLayoutSiderConfig: () => {};
205
- establishPageContentLayoutConfig: () => {};
652
+ /**
653
+ * 渲染预设刷新按钮。
654
+ * @function
655
+ * @param {Object} properties 内部组件属性配置。
656
+ * @returns {Object} 渲染结果
657
+ */
658
+ renderPresetRefreshButton: (properties?: Object) => Object;
659
+ /**
660
+ * 视频上传预处理。
661
+ * @function
662
+ * @param {Object} file 文件。
663
+ */
664
+ beforeVideoUpload: (file: Object) => boolean;
665
+ /**
666
+ * 预处理图片上传结果。
667
+ * @function
668
+ * @param {Object} response 上传结果。
669
+ */
670
+ pretreatmentImageUploadRemoteResponse: (response: Object) => never;
671
+ /**
672
+ * 预处理文件Base64上传结果。
673
+ * @function
674
+ * @param {Object} response 上传结果。
675
+ */
676
+ pretreatmentFileBase64UploadRemoteResponse: (response: Object) => never;
677
+ /**
678
+ * 预处理视频上传结果。
679
+ * @function
680
+ * @param {Object} response 上传结果。
681
+ */
682
+ pretreatmentVideoUploadRemoteResponse: (response: Object) => never;
683
+ /**
684
+ * 预处理音频上传结果。
685
+ * @function
686
+ * @param {Object} response 上传结果。
687
+ */
688
+ pretreatmentAudioUploadRemoteResponse: (response: Object) => never;
689
+ /**
690
+ * 预处理文件上传结果。
691
+ * @function
692
+ * @param {Object} response 上传结果。
693
+ */
694
+ pretreatmentFileUploadRemoteResponse: (response: Object) => never;
695
+ /**
696
+ * 构建工具栏配置,默认为空逻辑,可根据需要重载。
697
+ * @function
698
+ * @returns {Object} 配置数据
699
+ * @example
700
+ * establishToolBarConfig = () => { return null; }
701
+ */
702
+ establishToolBarConfig: () => Object;
703
+ /**
704
+ * 构建提示栏配置,默认为空逻辑,可根据需要重载。
705
+ * @function
706
+ * @returns {Object} 配置数据
707
+ * @example
708
+ * establishHelpConfig = () => { return null; }
709
+ */
710
+ establishHelpConfig: () => Object;
711
+ /**
712
+ * 构建侧边栏上部配置,默认为空逻辑,可根据需要重载。
713
+ * @function
714
+ * @returns {Object} 配置数据
715
+ * @example
716
+ * establishSiderTopAreaConfig = () => { return null; }
717
+ */
718
+ establishSiderTopAreaConfig: () => Object;
719
+ /**
720
+ * 构建侧边栏下部配置,默认为空逻辑,可根据需要重载。
721
+ * @function
722
+ * @returns {Object} 配置数据
723
+ * @example
724
+ * establishPageContentLayoutSiderConfig = () => { return null; }
725
+ */
726
+ establishSiderBottomAreaConfig: () => Object;
727
+ /**
728
+ * 构建页面内容侧栏布局配置,默认为空逻辑,可根据需要重载。
729
+ * @function
730
+ * @returns {Object} 配置数据
731
+ * @example
732
+ * establishPageContentLayoutSiderConfig = () => { return {}; }
733
+ */
734
+ establishPageContentLayoutSiderConfig: () => Object;
735
+ /**
736
+ * 构建页面内容布局配置,默认为空逻辑,可根据需要重载。
737
+ * @function
738
+ * @returns {Object} 配置数据
739
+ * @example
740
+ * establishPageHeaderSubTitle = () => { return {}; }
741
+ */
742
+ establishPageContentLayoutConfig: () => Object;
743
+ /**
744
+ * 构建页面头部标题前缀,默认为空逻辑,可根据需要重载。
745
+ * @function
746
+ * @returns {string} 前缀文本
747
+ * @example
748
+ * establishPageHeaderSubTitle = () => ''
749
+ */
206
750
  establishPageHeaderTitlePrefix: () => string;
751
+ /**
752
+ * 构建页面头部子标题,默认为空逻辑,可根据需要重载。
753
+ * @function
754
+ * @returns {string} 子标题
755
+ * @example
756
+ * establishPageHeaderSubTitle = () => ''
757
+ */
207
758
  establishPageHeaderSubTitle: () => string;
208
- establishPageHeaderContentGridConfig: () => {
209
- gridConfig: null;
210
- };
211
- establishPageHeaderContentParagraphConfig: () => {
212
- paragraph: null;
213
- };
214
- establishPageHeaderContentActionConfig: () => {
215
- actions: never[];
216
- };
217
- establishPageHeaderContentComponentConfig: () => {
218
- component: null;
219
- };
220
- establishExtraActionConfig: () => null;
221
- establishExtraActionGroupConfig: () => null;
222
- establishExtraActionEllipsisConfig: () => null;
759
+ /**
760
+ * 构建页面头部内容表格配置,默认为空逻辑,可根据需要重载。
761
+ * @function
762
+ * @returns {Object} 配置数据
763
+ * @example
764
+ * establishPageHeaderContentGridConfig = () => { return { gridConfig: null }; }
765
+ */
766
+ establishPageHeaderContentGridConfig: () => Object;
767
+ /**
768
+ * 构建页面头部内容段落配置,默认为空逻辑,可根据需要重载。
769
+ * @function
770
+ * @returns {Object} 配置数据
771
+ * @example
772
+ * establishPageHeaderContentActionConfig = () => { return { paragraph: null }; }
773
+ */
774
+ establishPageHeaderContentParagraphConfig: () => Object;
775
+ /**
776
+ * 构建页面头部内容动作配置,默认为空逻辑,可根据需要重载。
777
+ * @function
778
+ * @returns {Object} 配置数据
779
+ * @example
780
+ * establishPageHeaderContentActionConfig = () => { return { actions: [] }; }
781
+ */
782
+ establishPageHeaderContentActionConfig: () => Object;
783
+ /**
784
+ * 构建页面头部内容组件配置,默认为空逻辑,可根据需要重载。
785
+ * @function
786
+ * @returns {Object} 配置数据
787
+ * @example
788
+ * establishExtraActionConfig = () => { return { component: null }; }
789
+ */
790
+ establishPageHeaderContentComponentConfig: () => Object;
791
+ /**
792
+ * 构建Extra区域动作配置,默认为空逻辑,可根据需要重载。
793
+ * @function
794
+ * @returns {Object} 配置数据
795
+ * @example
796
+ * establishExtraActionConfig = () => null
797
+ */
798
+ establishExtraActionConfig: () => Object;
799
+ /**
800
+ * 构建Extra区域动作组配置,默认为空逻辑,可根据需要重载。
801
+ * @function
802
+ * @returns {Object} 配置数据
803
+ * @example
804
+ * establishExtraActionGroupConfig = () => null
805
+ */
806
+ establishExtraActionGroupConfig: () => Object;
807
+ /**
808
+ * 构建Extra区域下拉动作配置,默认为空逻辑,可根据需要重载。
809
+ * @function
810
+ * @returns {Object} 配置数据
811
+ * @example
812
+ * establishExtraActionEllipsisConfig = () => null
813
+ */
814
+ establishExtraActionEllipsisConfig: () => Object;
223
815
  }
224
816
  import { Core } from '../../Core';
225
817
  import React from 'react';