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.
- package/es/components/ApplicationWrapper/index.d.ts +6 -0
- package/es/components/Bootstrap/index.d.ts +6 -0
- package/es/components/DataPreviewDrawer/index.d.ts +8 -1
- package/es/components/MenuWrapper/index.d.ts +0 -2
- package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +10 -2
- package/es/components/MobileContainor/MobilePreviewDrawer/index.d.ts +4 -1
- package/es/components/PageExtraWrapper/index.d.ts +0 -2
- package/es/framework/AuthorizationWrapper/index.d.ts +1 -0
- package/es/framework/Common/InternalBuild/index.d.ts +85 -21
- package/es/framework/Common/InternalFlow/index.d.ts +747 -155
- package/es/framework/Common/InternalLayout/index.d.ts +42 -3
- package/es/framework/Common/InternalSwitchoverFlow/index.d.ts +86 -5
- package/es/framework/Common/index.d.ts +6 -0
- package/es/framework/Core/index.d.ts +117 -35
- package/es/framework/CustomWrapper/Supplement/index.d.ts +1 -1
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +36 -5
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +14 -0
- package/es/framework/DataDrawer/Base/index.d.ts +128 -17
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +1 -1
- package/es/framework/DataDrawer/BaseFormDrawer/index.d.ts +20 -1
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +1 -9
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -9
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +4 -9
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +4 -1
- package/es/framework/DataForm/BaseAddForm/index.d.ts +50 -9
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +26 -6
- package/es/framework/DataListView/Base/index.d.ts +24 -18
- package/es/framework/DataMenuContainer/index.d.ts +6 -2
- package/es/framework/DataModal/Base/index.d.ts +48 -12
- package/es/framework/DataModal/BaseAddModal/index.d.ts +1 -9
- package/es/framework/DataModal/BaseDisplayModal/index.d.ts +1 -9
- package/es/framework/DataModal/BaseFormModal/index.d.ts +9 -2
- package/es/framework/DataModal/BaseImageSortModal/index.d.ts +5 -9
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -8
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +5 -9
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +5 -0
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +43 -6
- package/es/framework/DataMultiPageView/MultiPageModal/index.d.ts +51 -9
- package/es/framework/DataOperation/Base/index.d.ts +1 -0
- package/es/framework/DataOperation/BaseWindow/index.d.ts +135 -36
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +43 -6
- package/es/framework/DataSinglePageView/SinglePageModal/index.d.ts +47 -7
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +4 -2
- package/es/framework/DataSinglePageView/SinglePageSelectModal/index.d.ts +15 -3
- package/es/framework/DataSingleView/DataCore/index.d.ts +59 -12
- package/es/framework/DataSingleView/DataLoad/index.d.ts +35 -25
- package/es/framework/DataTabContainer/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/package.json +20 -20
|
@@ -2,16 +2,8 @@
|
|
|
2
2
|
* base load drawer
|
|
3
3
|
* @namespace framework.DataDrawer
|
|
4
4
|
* @class BaseLoadDrawer
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseFormDrawer
|
|
6
6
|
*/
|
|
7
7
|
export class BaseLoadDrawer extends BaseFormDrawer {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
}
|
|
17
9
|
import { BaseFormDrawer } from '../BaseFormDrawer';
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
* base needless load drawer
|
|
3
3
|
* @namespace framework.DataDrawer
|
|
4
4
|
* @class BaseNeedlessLoadDrawer
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseFormDrawer
|
|
6
6
|
*/
|
|
7
7
|
export class BaseNeedlessLoadDrawer extends BaseFormDrawer {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
buildInitialValues: () => {};
|
|
17
9
|
fillDefaultInitialValues: () => {};
|
|
18
10
|
}
|
|
@@ -2,17 +2,12 @@
|
|
|
2
2
|
* base save drawer
|
|
3
3
|
* @namespace framework.DataDrawer
|
|
4
4
|
* @class BaseSaveDrawer
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseFormDrawer
|
|
6
6
|
*/
|
|
7
7
|
export class BaseSaveDrawer extends BaseFormDrawer {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
adjustWhenDidMount: () => void;
|
|
9
|
+
buildBottomBarInnerDefaultConfigList: () => {
|
|
10
|
+
buildType: string;
|
|
11
|
+
}[];
|
|
17
12
|
}
|
|
18
13
|
import { BaseFormDrawer } from '../BaseFormDrawer';
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* base update drawer
|
|
3
3
|
* @namespace framework.DataDrawer
|
|
4
4
|
* @class BaseUpdateDrawer
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseLoadDrawer
|
|
6
6
|
*/
|
|
7
7
|
export class BaseUpdateDrawer extends BaseLoadDrawer {
|
|
8
|
+
buildBottomBarInnerDefaultConfigList: () => {
|
|
9
|
+
buildType: string;
|
|
10
|
+
}[];
|
|
8
11
|
}
|
|
9
12
|
import { BaseLoadDrawer } from '../BaseLoadDrawer';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* base add form
|
|
3
3
|
* @namespace framework.DataForm
|
|
4
4
|
* @class BaseAddForm
|
|
5
|
-
* @
|
|
5
|
+
* @extends DataCore
|
|
6
6
|
*/
|
|
7
7
|
export class BaseAddForm extends DataCore {
|
|
8
8
|
state: {
|
|
@@ -23,9 +23,42 @@ export class BaseAddForm extends DataCore {
|
|
|
23
23
|
};
|
|
24
24
|
adjustWhenDidMount: () => void;
|
|
25
25
|
fillData: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* 填充数据后触发逻辑。
|
|
28
|
+
* @function
|
|
29
|
+
* @param {*} option 配置项。
|
|
30
|
+
* @param {Object} option.metaData 单体数据。
|
|
31
|
+
* @param {Array} option.metaListData 列表数据。
|
|
32
|
+
* @param {Object} option.metaExtra 额外数据。
|
|
33
|
+
* @param {Object} option.metaOriginalData 原始数据。
|
|
34
|
+
* @example
|
|
35
|
+
* afterFillForm = () => {}
|
|
36
|
+
*/
|
|
26
37
|
afterFillForm: (initialValues: any) => void;
|
|
38
|
+
/**
|
|
39
|
+
* 设置表单项值。
|
|
40
|
+
* @function
|
|
41
|
+
* @param {*} v 值。
|
|
42
|
+
*/
|
|
43
|
+
setFormFieldsValue: (v: any) => void;
|
|
44
|
+
/**
|
|
45
|
+
* 处理表单数据重置。
|
|
46
|
+
* @function
|
|
47
|
+
*/
|
|
27
48
|
handleFormReset: () => void;
|
|
28
|
-
|
|
49
|
+
/**
|
|
50
|
+
* 补全提交表单时的数据。
|
|
51
|
+
* @function
|
|
52
|
+
* @param {Object} o 将要提交的数据
|
|
53
|
+
* @returns {Object} 补全后的将要提交的数据
|
|
54
|
+
*/
|
|
55
|
+
supplementSubmitRequestParams: (o: Object) => Object;
|
|
56
|
+
/**
|
|
57
|
+
* 检测表单提交数据之后的触发逻辑。
|
|
58
|
+
* @function
|
|
59
|
+
* @example
|
|
60
|
+
* afterCheckSubmitRequestParams = (o) => o
|
|
61
|
+
*/
|
|
29
62
|
afterCheckSubmitRequestParams: (o: any) => any;
|
|
30
63
|
execSubmitApi: ({ values, successCallback, failCallback, completeCallback, }: {
|
|
31
64
|
values?: {} | undefined;
|
|
@@ -33,14 +66,22 @@ export class BaseAddForm extends DataCore {
|
|
|
33
66
|
failCallback?: null | undefined;
|
|
34
67
|
completeCallback?: null | undefined;
|
|
35
68
|
}) => void;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
69
|
+
/**
|
|
70
|
+
* 校验数据。
|
|
71
|
+
* @function
|
|
72
|
+
* @param {*} option 配置项。
|
|
73
|
+
* @param {Function} option.successCallback 成功后的回调。
|
|
74
|
+
* @param {Function} option.failCallback 失败后的回调。
|
|
75
|
+
* @param {Function} option.completeCallback 完成后的回调,成功或失败后都将触发。
|
|
76
|
+
*/
|
|
77
|
+
validate: ({ successCallback, failCallback, completeCallback, }: any) => void;
|
|
41
78
|
buildInitialValues: () => {};
|
|
42
79
|
fillDefaultInitialValues: () => {};
|
|
43
|
-
|
|
80
|
+
/**
|
|
81
|
+
* 渲染 Modal 内部区域。
|
|
82
|
+
* @function
|
|
83
|
+
* @return {Object} 渲染结果。
|
|
84
|
+
*/
|
|
85
|
+
renderPresetModalInner: () => Object;
|
|
44
86
|
}
|
|
45
87
|
import { DataCore } from '../../DataSingleView/DataCore';
|
|
46
|
-
import React from 'react';
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
export class BaseUpdateForm extends DataLoad {
|
|
2
|
+
/**
|
|
3
|
+
* 处理表单数据重置。
|
|
4
|
+
* @function
|
|
5
|
+
*/
|
|
2
6
|
handleFormReset: () => void;
|
|
3
|
-
|
|
7
|
+
/**
|
|
8
|
+
* 补全提交表单时的数据。
|
|
9
|
+
* @function
|
|
10
|
+
* @param {Object} o 将要提交的数据
|
|
11
|
+
* @returns {Object} 补全后的将要提交的数据
|
|
12
|
+
*/
|
|
13
|
+
supplementSubmitRequestParams: (o: Object) => Object;
|
|
14
|
+
/**
|
|
15
|
+
* 检测表单提交数据之后的触发逻辑。
|
|
16
|
+
* @function
|
|
17
|
+
* @example
|
|
18
|
+
* afterCheckSubmitRequestParams = (o) => o
|
|
19
|
+
*/
|
|
4
20
|
afterCheckSubmitRequestParams: (o: any) => any;
|
|
5
21
|
execSubmitApi: ({ values, successCallback, failCallback, completeCallback, }: {
|
|
6
22
|
values?: {} | undefined;
|
|
@@ -8,10 +24,14 @@ export class BaseUpdateForm extends DataLoad {
|
|
|
8
24
|
failCallback?: null | undefined;
|
|
9
25
|
completeCallback?: null | undefined;
|
|
10
26
|
}) => void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
27
|
+
/**
|
|
28
|
+
* 校验数据。
|
|
29
|
+
* @function
|
|
30
|
+
* @param {*} option 配置项。
|
|
31
|
+
* @param {Function} option.successCallback 成功后的回调。
|
|
32
|
+
* @param {Function} option.failCallback 失败后的回调。
|
|
33
|
+
* @param {Function} option.completeCallback 完成后的回调,成功或失败后都将触发。
|
|
34
|
+
*/
|
|
35
|
+
validate: ({ successCallback, failCallback, completeCallback, }: any) => void;
|
|
16
36
|
}
|
|
17
37
|
import { DataLoad } from '../../DataSingleView/DataLoad';
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* DataListView.Base
|
|
3
3
|
* @namespace DataListView
|
|
4
4
|
* @class Base
|
|
5
|
-
* @
|
|
5
|
+
* @extends AuthorizationWrapper
|
|
6
6
|
*/
|
|
7
7
|
export class Base extends AuthorizationWrapper {
|
|
8
8
|
/**
|
|
9
|
-
* get derived state from props
|
|
9
|
+
* get derived state from props。
|
|
10
10
|
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
11
|
+
* @param {Object} nextProperties 即将更改的属性值
|
|
12
|
+
* @param {Object} previousState 之前的 state 值
|
|
13
|
+
* @returns {Object} 更新后的 state 值
|
|
14
14
|
*/
|
|
15
15
|
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
|
+
constructor(properties: any);
|
|
16
17
|
batchActionSwitch: boolean;
|
|
17
18
|
/**
|
|
18
19
|
* 使用远端分页
|
|
@@ -69,18 +70,18 @@ export class Base extends AuthorizationWrapper {
|
|
|
69
70
|
externalData: null;
|
|
70
71
|
backPath: string;
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}) => void;
|
|
73
|
+
/**
|
|
74
|
+
* 加载数据成功后的额外执行逻辑,在 afterLoadSuccess 调用后触发。
|
|
75
|
+
* @function
|
|
76
|
+
* @param {*} option 配置项。
|
|
77
|
+
* @param {Object} option.metaData 单体数据。
|
|
78
|
+
* @param {Array} option.metaListData 列表数据。
|
|
79
|
+
* @param {Object} option.metaExtra 额外数据。
|
|
80
|
+
* @param {Object} option.metaOriginalData 原始数据。
|
|
81
|
+
* @example
|
|
82
|
+
* doOtherAfterLoadSuccess = () => {}
|
|
83
|
+
*/
|
|
84
|
+
doOtherAfterLoadSuccess: ({ metaData, metaListData, metaExtra, metaOriginalData, }: any) => void;
|
|
84
85
|
onDateRangeChange: (dates: any, dateStrings: any) => void;
|
|
85
86
|
handleSelectRows: (rows: any) => void;
|
|
86
87
|
clearSelectRow: () => void;
|
|
@@ -130,6 +131,10 @@ export class Base extends AuthorizationWrapper {
|
|
|
130
131
|
fillSearchCardInitialValues: () => {};
|
|
131
132
|
buildSearchCard: () => React.JSX.Element | null;
|
|
132
133
|
establishPresetFormOverlayStyle: () => void;
|
|
134
|
+
/**
|
|
135
|
+
* 渲染表单。
|
|
136
|
+
* @function
|
|
137
|
+
*/
|
|
133
138
|
renderPresetForm: () => React.JSX.Element | null;
|
|
134
139
|
renderPresetFormOverlayContent: () => null;
|
|
135
140
|
renderPresetListMainViewOverlayContent: () => null;
|
|
@@ -156,7 +161,7 @@ export class Base extends AuthorizationWrapper {
|
|
|
156
161
|
renderPresetAboveTable: () => React.JSX.Element | null;
|
|
157
162
|
establishDataContainerExtraActionCollectionConfig: () => never[];
|
|
158
163
|
establishDataContainerExtraAffixConfig: () => {};
|
|
159
|
-
buildDataContainerExtraActionCollection: () =>
|
|
164
|
+
buildDataContainerExtraActionCollection: () => Object;
|
|
160
165
|
renderPresetExtraActionView: () => React.JSX.Element | null;
|
|
161
166
|
establishPresetBatchActionSize: () => string;
|
|
162
167
|
establishPresetBatchActionIcon: () => null;
|
|
@@ -239,6 +244,7 @@ export class Base extends AuthorizationWrapper {
|
|
|
239
244
|
renderPresetPaginationView: () => React.JSX.Element;
|
|
240
245
|
renderPresetListMainView: () => React.JSX.Element | null;
|
|
241
246
|
renderPresetContentArea: () => React.JSX.Element;
|
|
247
|
+
establishPageContentLayoutConfig: () => {};
|
|
242
248
|
establishListItemDropdownConfig: (record: any) => null;
|
|
243
249
|
renderPresetListItemDropdown: (record: any) => React.JSX.Element;
|
|
244
250
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* DataMenuContainer
|
|
3
3
|
* @namespace DataMenuContainer
|
|
4
4
|
* @class DataMenuContainer
|
|
5
|
-
* @
|
|
5
|
+
* @extends DataTabContainer
|
|
6
6
|
*/
|
|
7
7
|
export class DataMenuContainer extends DataTabContainer {
|
|
8
8
|
showHeader: boolean;
|
|
@@ -25,7 +25,11 @@ export class DataMenuContainer extends DataTabContainer {
|
|
|
25
25
|
urlParams: null;
|
|
26
26
|
externalData: null;
|
|
27
27
|
};
|
|
28
|
-
buildMenu: () =>
|
|
28
|
+
buildMenu: () => {
|
|
29
|
+
key: any;
|
|
30
|
+
label: any;
|
|
31
|
+
icon: any;
|
|
32
|
+
}[];
|
|
29
33
|
renderPresetPageLeftArea: () => React.JSX.Element;
|
|
30
34
|
}
|
|
31
35
|
import { DataTabContainer } from '../DataTabContainer';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export class Base extends BaseWindow {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 构造函数
|
|
4
|
+
* @param {Object} properties 属性值集合。
|
|
5
|
+
* @param {string} visibleFlag 可见性标记。
|
|
6
|
+
*/
|
|
7
|
+
constructor(properties: Object, visibleFlag: string);
|
|
3
8
|
showFooter: boolean;
|
|
4
9
|
state: {
|
|
5
10
|
width: number;
|
|
@@ -18,15 +23,24 @@ export class Base extends BaseWindow {
|
|
|
18
23
|
urlParams: null;
|
|
19
24
|
externalData: null;
|
|
20
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* 配置表单布局。
|
|
28
|
+
* @function
|
|
29
|
+
* @returns {string} 'horizontal'
|
|
30
|
+
*/
|
|
21
31
|
buildFormLayout: () => string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
/**
|
|
33
|
+
* 构建表单额外配置。
|
|
34
|
+
* @function
|
|
35
|
+
* @returns {Object} 额外配置
|
|
36
|
+
*/
|
|
37
|
+
establishFormAdditionalConfig: () => Object;
|
|
38
|
+
/**
|
|
39
|
+
* 构造 Card 配置集合。
|
|
40
|
+
* @function
|
|
41
|
+
* @example
|
|
42
|
+
* establishCardCollectionConfig = () => null
|
|
43
|
+
*/
|
|
30
44
|
establishCardCollectionConfig: () => null;
|
|
31
45
|
getSaveButtonDisabled: () => boolean;
|
|
32
46
|
buildOkButtonProps: () => {
|
|
@@ -46,15 +60,37 @@ export class Base extends BaseWindow {
|
|
|
46
60
|
getModalBodyStyle: () => {
|
|
47
61
|
padding: number;
|
|
48
62
|
};
|
|
49
|
-
|
|
63
|
+
/**
|
|
64
|
+
* 构造标题图标。
|
|
65
|
+
* @function
|
|
66
|
+
* @returns {Object} 标题图标。
|
|
67
|
+
*/
|
|
68
|
+
buildTitleIcon: () => Object;
|
|
69
|
+
/**
|
|
70
|
+
* 创建标题前缀文字,默认为空,可根据需要重载。
|
|
71
|
+
* @function
|
|
72
|
+
* @returns {string} 标题前缀文本
|
|
73
|
+
* @example
|
|
74
|
+
* buildTitlePrevText = () => ""
|
|
75
|
+
*/
|
|
50
76
|
buildTitlePrevText: () => string;
|
|
51
77
|
buildTitleText: () => string;
|
|
52
78
|
buildTitleSubText: () => string;
|
|
53
79
|
buildTitleSubTextPrefix: () => string;
|
|
54
80
|
buildTitleSubTextAlign: () => string;
|
|
55
|
-
|
|
81
|
+
/**
|
|
82
|
+
* 渲染标题图标,默认为空,可根据需要重载。
|
|
83
|
+
* @function
|
|
84
|
+
* @returns {Object} 标题图标
|
|
85
|
+
*/
|
|
86
|
+
renderPresetTitleIcon: () => Object;
|
|
56
87
|
renderPresetContentContainorInner: () => null;
|
|
57
|
-
|
|
88
|
+
/**
|
|
89
|
+
* 渲染 Modal 内部区域。
|
|
90
|
+
* @function
|
|
91
|
+
* @return {Object} 渲染结果。
|
|
92
|
+
*/
|
|
93
|
+
renderPresetModalInner: () => Object;
|
|
58
94
|
}
|
|
59
95
|
import { BaseWindow } from '../../DataOperation/BaseWindow';
|
|
60
96
|
import React from 'react';
|
|
@@ -2,16 +2,8 @@
|
|
|
2
2
|
* base add modal
|
|
3
3
|
* @namespace framework.DataModal
|
|
4
4
|
* @class BaseAddModal
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseNeedlessLoadModal
|
|
6
6
|
*/
|
|
7
7
|
export class BaseAddModal extends BaseNeedlessLoadModal {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
}
|
|
17
9
|
import { BaseNeedlessLoadModal } from '../BaseNeedlessLoadModal';
|
|
@@ -2,16 +2,8 @@
|
|
|
2
2
|
* base display modal
|
|
3
3
|
* @namespace framework.DataModal
|
|
4
4
|
* @class BaseDisplayModal
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseNeedlessLoadModal
|
|
6
6
|
*/
|
|
7
7
|
export class BaseDisplayModal extends BaseNeedlessLoadModal {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
}
|
|
17
9
|
import { BaseNeedlessLoadModal } from '../BaseNeedlessLoadModal';
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export class BaseFormModal extends Base {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 渲染表单内容。
|
|
4
|
+
* @function
|
|
5
|
+
*/
|
|
6
|
+
renderPresetFormContent: () => Object;
|
|
7
|
+
/**
|
|
8
|
+
* 渲染表单。
|
|
9
|
+
* @function
|
|
10
|
+
*/
|
|
3
11
|
renderPresetForm: () => React.JSX.Element;
|
|
4
12
|
renderPresetFormWrapper: () => React.JSX.Element;
|
|
5
13
|
renderPresetContentContainorInner: () => React.JSX.Element;
|
|
6
|
-
renderPresetModalInner: () => React.JSX.Element;
|
|
7
14
|
}
|
|
8
15
|
import { Base } from '../Base';
|
|
9
16
|
import React from 'react';
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
* base image sort modal
|
|
3
3
|
* @namespace framework.DataModal
|
|
4
4
|
* @class BaseImageSortModal
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseUpdateModal
|
|
6
6
|
*/
|
|
7
7
|
export class BaseImageSortModal extends BaseUpdateModal {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
state: {
|
|
17
9
|
pageTitle: string;
|
|
18
10
|
width: number;
|
|
@@ -45,6 +37,10 @@ export class BaseImageSortModal extends BaseUpdateModal {
|
|
|
45
37
|
}) => never;
|
|
46
38
|
changeSort: (key: any, record: any) => void;
|
|
47
39
|
buildChangeSortArea: () => React.JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* 构造 Card 配置集合。
|
|
42
|
+
* @function
|
|
43
|
+
*/
|
|
48
44
|
establishCardCollectionConfig: () => {
|
|
49
45
|
list: {
|
|
50
46
|
items: {
|
|
@@ -24,14 +24,10 @@ export class BaseSelectModal extends BaseLoadModal {
|
|
|
24
24
|
onChange: (value: any, selectData: any, option: any, list: any) => void;
|
|
25
25
|
handleOk: () => void;
|
|
26
26
|
transferData: (o: any, index: any) => any;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
wrapperCol: {
|
|
32
|
-
flex: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
27
|
+
/**
|
|
28
|
+
* 构造 Card 配置集合。
|
|
29
|
+
* @function
|
|
30
|
+
*/
|
|
35
31
|
establishCardCollectionConfig: () => {
|
|
36
32
|
list: {
|
|
37
33
|
items: {
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
* base update transfer modal
|
|
3
3
|
* @namespace framework.DataModal
|
|
4
4
|
* @class BaseUpdateTransferModal
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseUpdateModal
|
|
6
6
|
*/
|
|
7
7
|
export class BaseUpdateTransferModal extends BaseUpdateModal {
|
|
8
|
-
/**
|
|
9
|
-
* get derived state from props
|
|
10
|
-
* @static
|
|
11
|
-
* @param {Object} nextProperties
|
|
12
|
-
* @param {Object} previousState
|
|
13
|
-
* @returns {Object}
|
|
14
|
-
*/
|
|
15
|
-
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
16
8
|
state: {
|
|
17
9
|
width: number;
|
|
18
10
|
targetKeys: never[];
|
|
@@ -38,6 +30,10 @@ export class BaseUpdateTransferModal extends BaseUpdateModal {
|
|
|
38
30
|
buildDataSource: () => never;
|
|
39
31
|
buildTransferTitle: () => string[];
|
|
40
32
|
buildItem: (o: any) => never;
|
|
33
|
+
/**
|
|
34
|
+
* 构造 Card 配置集合。
|
|
35
|
+
* @function
|
|
36
|
+
*/
|
|
41
37
|
establishCardCollectionConfig: () => {
|
|
42
38
|
list: {
|
|
43
39
|
spinning: any;
|
|
@@ -13,10 +13,15 @@ export class MultiPage extends Base {
|
|
|
13
13
|
*/
|
|
14
14
|
restoreSearchComplete: boolean;
|
|
15
15
|
supplementPageLoadRequestParams: () => void;
|
|
16
|
+
supplementLoadRequestParams: (o: any) => any;
|
|
16
17
|
/**
|
|
17
18
|
* 轻微调整初始化请求数据体
|
|
18
19
|
*/
|
|
19
20
|
adjustLoadRequestParams: (o: any) => any;
|
|
21
|
+
/**
|
|
22
|
+
* 创建初始化请求数据体
|
|
23
|
+
*/
|
|
24
|
+
initLoadRequestParams: (o: any) => any;
|
|
20
25
|
restoreQueryDataBeforeFirstRequest: (d: any) => void;
|
|
21
26
|
afterGetRequestResult: () => void;
|
|
22
27
|
/**
|
|
@@ -6,7 +6,16 @@ export class MultiPageDrawer extends MultiPage {
|
|
|
6
6
|
static getDerivedStateFromProps(nextProperties: any, previousState: any): {
|
|
7
7
|
externalData: any;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* 构造函数
|
|
11
|
+
* @param {Object} properties 属性值集合。
|
|
12
|
+
* @param {string} visibleFlag 可见性标记。
|
|
13
|
+
*/
|
|
14
|
+
constructor(properties: Object, visibleFlag: string);
|
|
15
|
+
/**
|
|
16
|
+
* 可见性标记,通过构造函数赋值,请务必不要使用其他渠道赋值。
|
|
17
|
+
* @member {string}
|
|
18
|
+
*/
|
|
10
19
|
visibleFlag: string;
|
|
11
20
|
resetDataAfterLoad: boolean;
|
|
12
21
|
reloadWhenShow: boolean;
|
|
@@ -58,15 +67,24 @@ export class MultiPageDrawer extends MultiPage {
|
|
|
58
67
|
*/
|
|
59
68
|
doOtherWhenChangeVisibleToShow: () => void;
|
|
60
69
|
/**
|
|
61
|
-
*
|
|
70
|
+
* 切换为显示状态后,doOtherWhenChangeVisibleToShow 执行后的附加逻辑, 默认为空逻辑,可根据需要重载
|
|
71
|
+
* @function
|
|
72
|
+
* @example
|
|
73
|
+
* executeAfterDoOtherWhenChangeVisibleToShow = () => {}
|
|
62
74
|
*/
|
|
63
75
|
executeAfterDoOtherWhenChangeVisibleToShow: () => void;
|
|
64
76
|
/**
|
|
65
|
-
*
|
|
77
|
+
* 切换为隐藏状态后的额外执行逻辑, 在 doOtherWhenChangeVisible 中根据可见状态自动触发,当前为空逻辑,可根据需要重载。
|
|
78
|
+
* @function
|
|
79
|
+
* @example
|
|
80
|
+
* doOtherWhenChangeVisibleToHide = () => {}
|
|
66
81
|
*/
|
|
67
82
|
doOtherWhenChangeVisibleToHide: () => void;
|
|
68
83
|
/**
|
|
69
|
-
*
|
|
84
|
+
* 切换为隐藏状态后的额外附加执行逻辑, 在 doOtherWhenChangeVisible 中根据可见状态自动触发,排在 doOtherWhenChangeVisibleToHide 之后触发,当前为空逻辑,可根据需要重载。
|
|
85
|
+
* @function
|
|
86
|
+
* @example
|
|
87
|
+
* executeAfterDoOtherWhenChangeVisibleToHide = () => {}
|
|
70
88
|
*/
|
|
71
89
|
executeAfterDoOtherWhenChangeVisibleToHide: () => void;
|
|
72
90
|
/**
|
|
@@ -83,13 +101,32 @@ export class MultiPageDrawer extends MultiPage {
|
|
|
83
101
|
* @param {*} handleData
|
|
84
102
|
*/
|
|
85
103
|
selectRecord: ({ handleData }: any) => void;
|
|
86
|
-
|
|
104
|
+
/**
|
|
105
|
+
* 渲染标题图标,默认为空,可根据需要重载。
|
|
106
|
+
* @function
|
|
107
|
+
* @returns {Object} 标题图标
|
|
108
|
+
* @example
|
|
109
|
+
* renderPresetTitleIcon = () => null
|
|
110
|
+
*/
|
|
111
|
+
renderPresetTitleIcon: () => Object;
|
|
112
|
+
/**
|
|
113
|
+
* 创建标题前缀文字,默认为空,可根据需要重载。
|
|
114
|
+
* @function
|
|
115
|
+
* @returns {string} 标题前缀文本
|
|
116
|
+
* @example
|
|
117
|
+
* buildTitlePrevText = () => ""
|
|
118
|
+
*/
|
|
87
119
|
buildTitlePrevText: () => string;
|
|
88
120
|
buildTitleText: () => any;
|
|
89
121
|
buildTitleSubText: () => string;
|
|
90
122
|
hideDrawer: () => void;
|
|
91
123
|
renderPresetListMainViewContainor: () => React.JSX.Element;
|
|
92
|
-
|
|
124
|
+
/**
|
|
125
|
+
* 渲染内容容器。
|
|
126
|
+
* @function
|
|
127
|
+
* @returns {Object} 渲染结果
|
|
128
|
+
*/
|
|
129
|
+
renderPresetContentContainor: () => Object;
|
|
93
130
|
renderPresetDrawerInner: () => React.JSX.Element;
|
|
94
131
|
renderOverlayContent: () => null;
|
|
95
132
|
}
|