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
|
@@ -1,13 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 构建布局相关。
|
|
3
|
+
* @namespace Common
|
|
4
|
+
* @class InternalLayout
|
|
5
|
+
* @extends InternalBuild
|
|
6
|
+
*/
|
|
1
7
|
export class InternalLayout extends InternalBuild {
|
|
2
|
-
|
|
3
|
-
|
|
8
|
+
/**
|
|
9
|
+
* 渲染预设侧边栏上部。
|
|
10
|
+
* @function
|
|
11
|
+
*/
|
|
12
|
+
renderPresetSiderTopArea: () => Object | null;
|
|
13
|
+
/**
|
|
14
|
+
* 渲染预设侧边栏下部。
|
|
15
|
+
* @function
|
|
16
|
+
*/
|
|
17
|
+
renderPresetSiderBottomArea: () => Object | null;
|
|
18
|
+
/**
|
|
19
|
+
* 渲染预设内容区域,默认为空逻辑,可根据需要重载。
|
|
20
|
+
* @function
|
|
21
|
+
* @example
|
|
22
|
+
* renderPresetContentArea = () => {}
|
|
23
|
+
*/
|
|
4
24
|
renderPresetContentArea: () => null;
|
|
25
|
+
/**
|
|
26
|
+
* 渲染预设页面 Body 内容区域。
|
|
27
|
+
* @function
|
|
28
|
+
*/
|
|
5
29
|
renderPresetPageBodyContent: () => React.JSX.Element | null;
|
|
30
|
+
/**
|
|
31
|
+
* 渲染预设页面左侧内容区域。
|
|
32
|
+
* @function
|
|
33
|
+
*/
|
|
6
34
|
renderPresetPageLeftArea: () => null;
|
|
35
|
+
/**
|
|
36
|
+
* 渲染预设页面 Body 区域。
|
|
37
|
+
* @function
|
|
38
|
+
*/
|
|
7
39
|
renderPresetPageBody: () => React.JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* 渲染预设页面 Footer 区域。
|
|
42
|
+
* @function
|
|
43
|
+
*/
|
|
8
44
|
renderPresetPageFooter: () => null;
|
|
45
|
+
/**
|
|
46
|
+
* 渲染预设悬浮按钮。
|
|
47
|
+
* @function
|
|
48
|
+
*/
|
|
9
49
|
renderPresetFloatButton: () => React.JSX.Element;
|
|
10
|
-
renderFurther(): React.JSX.Element;
|
|
11
50
|
}
|
|
12
51
|
import { InternalBuild } from '../InternalBuild';
|
|
13
52
|
import React from 'react';
|
|
@@ -1,21 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 构建可切换相关。
|
|
3
|
+
* @namespace Common
|
|
4
|
+
* @class InternalSwitchoverFlow
|
|
5
|
+
* @extends InternalFlow
|
|
6
|
+
*/
|
|
1
7
|
export class InternalSwitchoverFlow extends InternalFlow {
|
|
8
|
+
/**
|
|
9
|
+
* 构造函数
|
|
10
|
+
* @param {Object} properties
|
|
11
|
+
*/
|
|
12
|
+
constructor(properties: Object);
|
|
13
|
+
/**
|
|
14
|
+
* path 路径前缀。
|
|
15
|
+
* @member {string}
|
|
16
|
+
*/
|
|
2
17
|
pathPrefix: string;
|
|
18
|
+
/**
|
|
19
|
+
* Tab 页集合。
|
|
20
|
+
* @member {Array}
|
|
21
|
+
*/
|
|
3
22
|
tabList: any[];
|
|
23
|
+
/**
|
|
24
|
+
* Menu 页集合。
|
|
25
|
+
* @member {Array}
|
|
26
|
+
*/
|
|
4
27
|
menuList: any[];
|
|
5
|
-
|
|
6
|
-
|
|
28
|
+
/**
|
|
29
|
+
* 调整可用 Menu 页集合,默认为空逻辑,可根据需要重载。
|
|
30
|
+
* @function
|
|
31
|
+
* @param {Array} menuList 将要调整的 Menu 页集合
|
|
32
|
+
* @returns {Array} 经过调整的可用 Menu 页集合
|
|
33
|
+
* @example
|
|
34
|
+
* adjustMenuListAvailable = (menuListAvailable) => menuListAvailable
|
|
35
|
+
*/
|
|
36
|
+
adjustMenuListAvailable: (menuList: any[]) => any[];
|
|
37
|
+
/**
|
|
38
|
+
* 获取可用 Menu 页集合。
|
|
39
|
+
* @function
|
|
40
|
+
* @returns {Array} 可用 Menu 页集合
|
|
41
|
+
*/
|
|
42
|
+
getMenuListAvailable: () => any[];
|
|
43
|
+
/**
|
|
44
|
+
* Menu页切换回调处理。
|
|
45
|
+
* @function
|
|
46
|
+
* @param {Object} option 配置项。
|
|
47
|
+
* @param {string} option.key 显示页的 key。
|
|
48
|
+
*/
|
|
7
49
|
handleMenuChange: ({ key }: {
|
|
8
|
-
key:
|
|
50
|
+
key: string;
|
|
9
51
|
}) => void;
|
|
52
|
+
/**
|
|
53
|
+
* 构建 Tab Bar Extra Content 左侧区域配置,默认为空,可根据需要重载。
|
|
54
|
+
* @function
|
|
55
|
+
* @example
|
|
56
|
+
* establishTabBarExtraContentLeftConfig = () => null
|
|
57
|
+
*/
|
|
10
58
|
establishTabBarExtraContentLeftConfig: () => null;
|
|
59
|
+
/**
|
|
60
|
+
* 构建 Tab Bar Extra Content 右侧区域配置,默认为空,可根据需要重载。
|
|
61
|
+
* @function
|
|
62
|
+
* @example
|
|
63
|
+
* establishTabBarExtraContentRightConfig = () => null
|
|
64
|
+
*/
|
|
11
65
|
establishTabBarExtraContentRightConfig: () => null;
|
|
12
|
-
|
|
13
|
-
|
|
66
|
+
/**
|
|
67
|
+
* 调整可用 Tab 页集合,默认为空逻辑,可根据需要重载。
|
|
68
|
+
* @function
|
|
69
|
+
* @param {Array} menuList 将要调整的 Tab 页集合
|
|
70
|
+
* @returns {Array} 经过调整的可用 Tab 页集合
|
|
71
|
+
* @example
|
|
72
|
+
* adjustTabListAvailable = (tabList) => tabList
|
|
73
|
+
*/
|
|
74
|
+
adjustTabListAvailable: (tabList: any) => any[];
|
|
75
|
+
/**
|
|
76
|
+
* 获取可用 Tab 页集合。
|
|
77
|
+
* @function
|
|
78
|
+
* @returns {Array} 可用 Tab 页集合
|
|
79
|
+
*/
|
|
80
|
+
getTabListAvailable: () => any[];
|
|
81
|
+
/**
|
|
82
|
+
* Tab 页切换回调处理。
|
|
83
|
+
* @function
|
|
84
|
+
* @param {Object} option 配置项。
|
|
85
|
+
* @param {string} option.key 显示页的 key。
|
|
86
|
+
*/
|
|
14
87
|
handleTabChange: (key: any) => void;
|
|
88
|
+
/**
|
|
89
|
+
* 创建 Tab Bar Extra Content 部分。
|
|
90
|
+
* @function
|
|
91
|
+
*/
|
|
15
92
|
buildTabBarExtraContent: () => {
|
|
16
93
|
left: React.JSX.Element;
|
|
17
94
|
right: React.JSX.Element;
|
|
18
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* 配置额外的 Tab 属性。
|
|
98
|
+
* @function
|
|
99
|
+
*/
|
|
19
100
|
buildOtherTabProps: () => {
|
|
20
101
|
type: string;
|
|
21
102
|
size: string;
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 框架内核定义类。
|
|
3
3
|
* @namespace framework
|
|
4
4
|
* @class Core
|
|
5
|
-
* @
|
|
5
|
+
* @extends BaseComponent
|
|
6
6
|
*/
|
|
7
7
|
export class Core extends BaseComponent {
|
|
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
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* 构造函数
|
|
18
18
|
* @param {Object} properties
|
|
19
19
|
*/
|
|
20
20
|
constructor(properties: Object);
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 最近一次调用数据加载时候的传递参数。
|
|
23
23
|
* @member {Object}
|
|
24
24
|
*/
|
|
25
25
|
lastLoadParams: null;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 加载中的标记符号变量,默认 ""。
|
|
28
28
|
* @member {string}
|
|
29
29
|
*/
|
|
30
30
|
viewLoadingFlag: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* 搜索中的标记符号变量,默认 ""。
|
|
33
33
|
* @member {string}
|
|
34
34
|
*/
|
|
35
35
|
viewSearchingFlag: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 重置中的标记符号变量,默认 ""。
|
|
38
38
|
* @member {string}
|
|
39
39
|
*/
|
|
40
40
|
viewResettingFlag: string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* 刷新中的标记符号变量,默认 ""。
|
|
43
43
|
* @member {string}
|
|
44
44
|
*/
|
|
45
45
|
viewRefreshingFlag: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* 重新载入中的标记符号变量,默认 ""。
|
|
48
48
|
* @member {string}
|
|
49
49
|
*/
|
|
50
50
|
viewReloadingFlag: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* 处理中的标记符号变量,默认 ""。
|
|
53
53
|
* @member {string}
|
|
54
54
|
*/
|
|
55
55
|
viewProcessingFlag: string;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* 标签页标记符号变量,默认 ""。
|
|
58
58
|
* @member {string}
|
|
59
59
|
*/
|
|
60
60
|
viewTabFlag: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* 菜单页标记符号变量,默认 ""。
|
|
63
63
|
* @member {string}
|
|
64
64
|
*/
|
|
65
65
|
viewMenuFlag: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* 动画提示标记符号变量,默认 ""。
|
|
68
68
|
* @member {string}
|
|
69
69
|
*/
|
|
70
70
|
viewAnimalPromptFlag: string;
|
|
@@ -75,6 +75,10 @@ export class Core extends BaseComponent {
|
|
|
75
75
|
urlParams: null;
|
|
76
76
|
externalData: null;
|
|
77
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* 获取标记变量集合。
|
|
80
|
+
* @function
|
|
81
|
+
*/
|
|
78
82
|
getViewFlagInfo(): {
|
|
79
83
|
viewLoadingFlag: string;
|
|
80
84
|
viewSearchingFlag: string;
|
|
@@ -86,32 +90,110 @@ export class Core extends BaseComponent {
|
|
|
86
90
|
viewMenuFlag: string;
|
|
87
91
|
viewAnimalPromptFlag: string;
|
|
88
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* 获取当前激活的 Tab 页标记。
|
|
95
|
+
* @function
|
|
96
|
+
*/
|
|
89
97
|
getTabActiveKey: () => any;
|
|
90
|
-
|
|
98
|
+
/**
|
|
99
|
+
* 设置当前激活的 Tab 页标记。
|
|
100
|
+
* @function
|
|
101
|
+
* @param {string} key Tab页标记值
|
|
102
|
+
*/
|
|
103
|
+
setTabActiveKey(key: string): void;
|
|
104
|
+
/**
|
|
105
|
+
* 获取当前激活的 Menu 页标记。
|
|
106
|
+
* @function
|
|
107
|
+
*/
|
|
91
108
|
getMenuActiveKey: () => any;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
*
|
|
109
|
+
/**
|
|
110
|
+
* 设置当前激活的 Menu 页标记。
|
|
111
|
+
* @function
|
|
112
|
+
* @param {string} key Menu页标记值
|
|
113
|
+
*/
|
|
114
|
+
setMenuActiveKey(key: string): void;
|
|
115
|
+
/**
|
|
116
|
+
* 开始加载,影响"加载中"效果。
|
|
117
|
+
* @function
|
|
118
|
+
* @param {Array} messages 消息或消息集合
|
|
119
|
+
*/
|
|
120
|
+
startLoading(...messages: any[]): void;
|
|
121
|
+
/**
|
|
122
|
+
* 停止加载,影响"加载中"效果。
|
|
123
|
+
* @function
|
|
124
|
+
* @param {Array} messages 消息或消息集合
|
|
125
|
+
*/
|
|
126
|
+
stopLoading(...messages: any[]): void;
|
|
127
|
+
/**
|
|
128
|
+
* 开始搜索,影响"搜索中"效果。
|
|
129
|
+
* @function
|
|
130
|
+
* @param {Array} messages 消息或消息集合
|
|
131
|
+
*/
|
|
132
|
+
startSearching(...messages: any[]): void;
|
|
133
|
+
/**
|
|
134
|
+
* 停止搜索,影响"搜索中"效果。
|
|
135
|
+
* @function
|
|
136
|
+
* @param {Array} messages 消息或消息集合
|
|
137
|
+
*/
|
|
138
|
+
stopSearching(...messages: any[]): void;
|
|
139
|
+
/**
|
|
140
|
+
* 开始重置,影响"重置中"效果。
|
|
141
|
+
* @function
|
|
142
|
+
* @param {Array} messages 消息或消息集合
|
|
143
|
+
*/
|
|
144
|
+
startResetting(...messages: any[]): void;
|
|
145
|
+
/**
|
|
146
|
+
* 停止重置,影响"重置中"效果。
|
|
147
|
+
* @function
|
|
148
|
+
* @param {Array} messages 消息或消息集合
|
|
149
|
+
*/
|
|
150
|
+
stopResetting(...messages: any[]): void;
|
|
151
|
+
/**
|
|
152
|
+
* 开始刷新,影响"刷新中"效果。
|
|
153
|
+
* @function
|
|
154
|
+
* @param {Array} messages 消息或消息集合
|
|
155
|
+
*/
|
|
156
|
+
startRefreshing(...messages: any[]): void;
|
|
157
|
+
/**
|
|
158
|
+
* 停止刷新,影响"刷新中"效果。
|
|
159
|
+
* @function
|
|
160
|
+
* @param {Array} messages 消息或消息集合
|
|
161
|
+
*/
|
|
162
|
+
stopRefreshing(...messages: any[]): void;
|
|
163
|
+
/**
|
|
164
|
+
* 开始重载,影响"重载中"效果。
|
|
165
|
+
* @function
|
|
166
|
+
* @param {Array} messages 消息或消息集合
|
|
167
|
+
*/
|
|
168
|
+
startReloading(...messages: any[]): void;
|
|
169
|
+
/**
|
|
170
|
+
* 停止重载,影响"重载中"效果。
|
|
171
|
+
* @function
|
|
172
|
+
* @param {Array} messages 消息或消息集合
|
|
173
|
+
*/
|
|
174
|
+
stopReloading(...messages: any[]): void;
|
|
175
|
+
/**
|
|
176
|
+
* 开始处理,影响"处理中"效果。
|
|
177
|
+
* @function
|
|
178
|
+
* @param {Array} messages 消息或消息集合
|
|
179
|
+
*/
|
|
180
|
+
startProcessing(...messages: any[]): void;
|
|
181
|
+
/**
|
|
182
|
+
* 停止处理,影响"处理中"效果。
|
|
183
|
+
* @function
|
|
184
|
+
* @param {Array} messages 消息或消息集合
|
|
185
|
+
*/
|
|
186
|
+
stopProcessing(...messages: any[]): void;
|
|
187
|
+
/**
|
|
188
|
+
* 检查加载进度,如果加载或加载失败,返回false,否则返回true。
|
|
107
189
|
*/
|
|
108
190
|
checkLoadingProgress(): boolean;
|
|
109
191
|
/**
|
|
110
|
-
*
|
|
192
|
+
* 检查可操作性,如果加载或处理或加载失败,返回false,否则返回true。
|
|
111
193
|
*/
|
|
112
194
|
checkOperability(): boolean;
|
|
113
195
|
/**
|
|
114
|
-
*
|
|
196
|
+
* 检查是否在加载或处理中,如果正在加载或正在处理,返回false,否则返回true。
|
|
115
197
|
*/
|
|
116
198
|
checkInProgress(): any;
|
|
117
199
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 该类作为特有项目的补充,视具体项目进行增部方法
|
|
3
3
|
* @namespace CustomWrapper
|
|
4
4
|
* @class Supplement
|
|
5
|
-
* @
|
|
5
|
+
* @extends SupplementCore
|
|
6
6
|
*/
|
|
7
7
|
export class Supplement extends SupplementCore {
|
|
8
8
|
static getDerivedStateFromProps(nextProperties: any, previousState: any): any;
|
|
@@ -1,21 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 该类作为特有项目的补充,视具体项目进行增部方法
|
|
3
|
+
* @namespace CustomWrapper
|
|
4
|
+
* @class SupplementCore
|
|
5
|
+
* @extends Common
|
|
6
|
+
*/
|
|
1
7
|
export class SupplementCore extends Common {
|
|
2
|
-
|
|
8
|
+
/**
|
|
9
|
+
* 预处理图片上传结果。
|
|
10
|
+
* @function
|
|
11
|
+
* @param {Object} response 上传结果。
|
|
12
|
+
*/
|
|
13
|
+
pretreatmentImageUploadRemoteResponse: (response: Object) => {
|
|
3
14
|
image: string;
|
|
4
15
|
data: {};
|
|
5
16
|
};
|
|
6
|
-
|
|
17
|
+
/**
|
|
18
|
+
* 预处理文件Base64上传结果。
|
|
19
|
+
* @function
|
|
20
|
+
* @param {Object} response 上传结果。
|
|
21
|
+
*/
|
|
22
|
+
pretreatmentFileBase64UploadRemoteResponse: (response: Object) => {
|
|
7
23
|
image: string;
|
|
8
24
|
data: {};
|
|
9
25
|
};
|
|
10
|
-
|
|
26
|
+
/**
|
|
27
|
+
* 预处理视频上传结果。
|
|
28
|
+
* @function
|
|
29
|
+
* @param {Object} response 上传结果。
|
|
30
|
+
*/
|
|
31
|
+
pretreatmentVideoUploadRemoteResponse: (response: Object) => {
|
|
11
32
|
video: string;
|
|
12
33
|
data: {};
|
|
13
34
|
};
|
|
14
|
-
|
|
35
|
+
/**
|
|
36
|
+
* 预处理音频上传结果。
|
|
37
|
+
* @function
|
|
38
|
+
* @param {Object} response 上传结果。
|
|
39
|
+
*/
|
|
40
|
+
pretreatmentAudioUploadRemoteResponse: (response: Object) => {
|
|
15
41
|
audio: string;
|
|
16
42
|
data: {};
|
|
17
43
|
};
|
|
18
|
-
|
|
44
|
+
/**
|
|
45
|
+
* 预处理文件上传结果。
|
|
46
|
+
* @function
|
|
47
|
+
* @param {Object} response 上传结果。
|
|
48
|
+
*/
|
|
49
|
+
pretreatmentFileUploadRemoteResponse: (response: Object) => {
|
|
19
50
|
file: string;
|
|
20
51
|
data: {};
|
|
21
52
|
};
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 该类作为特有项目的补充,视具体项目进行增部方法
|
|
3
|
+
* @namespace CustomWrapper
|
|
4
|
+
* @class SupplementWrapper
|
|
5
|
+
* @extends Supplement
|
|
6
|
+
*/
|
|
1
7
|
export class SupplementWrapper extends Supplement {
|
|
8
|
+
/**
|
|
9
|
+
* get derived state from props。
|
|
10
|
+
* @static
|
|
11
|
+
* @param {Object} nextProperties 即将更改的属性值
|
|
12
|
+
* @param {Object} previousState 之前的 state 值
|
|
13
|
+
* @returns {Object} 更新后的 state 值
|
|
14
|
+
*/
|
|
15
|
+
static getDerivedStateFromProps(nextProperties: Object, previousState: Object): Object;
|
|
2
16
|
}
|
|
3
17
|
import { Supplement } from '../Supplement';
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer 操作基类
|
|
3
|
+
* @namespace DataDrawer
|
|
4
|
+
* @class DataDrawer.Base
|
|
5
|
+
* @extends BaseWindow
|
|
6
|
+
*/
|
|
1
7
|
export class Base extends BaseWindow {
|
|
2
|
-
|
|
8
|
+
/**
|
|
9
|
+
* 构造函数
|
|
10
|
+
* @param {Object} properties 属性值集合。
|
|
11
|
+
* @param {string} visibleFlag 可见性标记。
|
|
12
|
+
*/
|
|
13
|
+
constructor(properties: Object, visibleFlag: string);
|
|
3
14
|
state: {
|
|
4
15
|
title: string;
|
|
5
16
|
width: number;
|
|
@@ -24,25 +35,126 @@ export class Base extends BaseWindow {
|
|
|
24
35
|
urlParams: null;
|
|
25
36
|
externalData: null;
|
|
26
37
|
};
|
|
27
|
-
|
|
38
|
+
/**
|
|
39
|
+
* 调整头部样式。
|
|
40
|
+
* @function
|
|
41
|
+
* @returns {Object} style
|
|
42
|
+
* @example
|
|
43
|
+
* adjustHeaderStyle = () => { return {}; }
|
|
44
|
+
*/
|
|
45
|
+
adjustHeaderStyle: () => Object;
|
|
46
|
+
/**
|
|
47
|
+
* 创建标题前缀文字,默认为空,可根据需要重载。
|
|
48
|
+
* @function
|
|
49
|
+
* @returns {string} 标题前缀文本
|
|
50
|
+
* @example
|
|
51
|
+
* buildTitlePrevText = () => ""
|
|
52
|
+
*/
|
|
28
53
|
buildTitlePrevText: () => string;
|
|
54
|
+
/**
|
|
55
|
+
* 创建标题文字。
|
|
56
|
+
* @function
|
|
57
|
+
* @returns {string} 标题文本
|
|
58
|
+
*/
|
|
29
59
|
buildTitleText: () => string;
|
|
60
|
+
/**
|
|
61
|
+
* 创建副标题文字,默认为空,可根据需要重载。
|
|
62
|
+
* @function
|
|
63
|
+
* @returns {string} 副标题文本
|
|
64
|
+
* @example
|
|
65
|
+
* buildTitleSubText = () => ""
|
|
66
|
+
*/
|
|
30
67
|
buildTitleSubText: () => string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
68
|
+
/**
|
|
69
|
+
* 渲染标题图标,默认为空,可根据需要重载。
|
|
70
|
+
* @function
|
|
71
|
+
* @returns {Object} 标题图标
|
|
72
|
+
* @example
|
|
73
|
+
* renderPresetTitleIcon = () => null
|
|
74
|
+
*/
|
|
75
|
+
renderPresetTitleIcon: () => Object;
|
|
76
|
+
/**
|
|
77
|
+
* 渲染内容容器内部。
|
|
78
|
+
* @function
|
|
79
|
+
* @returns {Object} 渲染结果
|
|
80
|
+
* @example
|
|
81
|
+
* renderPresetContentContainorInner = () => null
|
|
82
|
+
*/
|
|
83
|
+
renderPresetContentContainorInner: () => Object;
|
|
84
|
+
/**
|
|
85
|
+
* 渲染内容容器。
|
|
86
|
+
* @function
|
|
87
|
+
* @returns {Object} 渲染结果
|
|
88
|
+
*/
|
|
89
|
+
renderPresetContentContainor: () => Object;
|
|
90
|
+
/**
|
|
91
|
+
* 渲染关闭按钮。
|
|
92
|
+
* @function
|
|
93
|
+
* @param {Object} option 配置项
|
|
94
|
+
* @returns {Object} 渲染结果
|
|
95
|
+
*/
|
|
96
|
+
renderPresetCloseButton: (option: Object) => Object;
|
|
97
|
+
/**
|
|
98
|
+
* 构造底部栏内部Extra区域配置集合。
|
|
99
|
+
* @function
|
|
100
|
+
* @returns {Array} 配置集合
|
|
101
|
+
* @example
|
|
102
|
+
* buildBottomBarInnerExtraConfigList = () => []
|
|
103
|
+
*/
|
|
104
|
+
buildBottomBarInnerExtraConfigList: () => any[];
|
|
105
|
+
/**
|
|
106
|
+
* 构造底部栏内部默认配置集合。
|
|
107
|
+
* @function
|
|
108
|
+
* @returns {Array} 配置集合
|
|
109
|
+
*/
|
|
110
|
+
buildBottomBarInnerDefaultConfigList: () => any[];
|
|
111
|
+
/**
|
|
112
|
+
* 构造底部栏内部左侧项配置集合。
|
|
113
|
+
* @function
|
|
114
|
+
* @returns {Array} 配置集合
|
|
115
|
+
* @example
|
|
116
|
+
* buildBottomBarInnerLeftItemConfigList = () => []
|
|
117
|
+
*/
|
|
118
|
+
buildBottomBarInnerLeftItemConfigList: () => any[];
|
|
119
|
+
/**
|
|
120
|
+
* 构造底部栏内部右侧项配置集合。
|
|
121
|
+
* @function
|
|
122
|
+
* @returns {Array} 配置集合
|
|
123
|
+
*/
|
|
40
124
|
buildBottomBarInnerRightItemConfigList: () => any[];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
125
|
+
/**
|
|
126
|
+
* 渲染底部栏右侧部份。
|
|
127
|
+
* @function
|
|
128
|
+
* @returns {Object} 渲染结果
|
|
129
|
+
*/
|
|
130
|
+
renderPresetBottomBarRightBox: () => Object;
|
|
131
|
+
/**
|
|
132
|
+
* 渲染底部栏左侧部份。
|
|
133
|
+
* @function
|
|
134
|
+
* @returns {Object} 渲染结果
|
|
135
|
+
*/
|
|
136
|
+
renderPresetBottomBarLeftBox: () => Object;
|
|
137
|
+
/**
|
|
138
|
+
* 渲染底部栏内部部份。
|
|
139
|
+
* @function
|
|
140
|
+
* @param {Array} configList 配置项集合
|
|
141
|
+
* @returns {Object} 渲染结果
|
|
142
|
+
*/
|
|
143
|
+
renderPresetBottomBarInnerBox: (configList: any[]) => Object;
|
|
144
|
+
/**
|
|
145
|
+
* 渲染底部栏。
|
|
146
|
+
* @function
|
|
147
|
+
* @returns {Object} 渲染结果
|
|
148
|
+
*/
|
|
149
|
+
renderPresetBottomBar: () => Object;
|
|
150
|
+
/**
|
|
151
|
+
* 渲染遮罩层内容区域,默认为空,可根据需要重载。
|
|
152
|
+
* @function
|
|
153
|
+
* @returns {Object} 渲染结果
|
|
154
|
+
* @example
|
|
155
|
+
* renderOverlayContent = () => null
|
|
156
|
+
*/
|
|
157
|
+
renderOverlayContent: () => Object;
|
|
46
158
|
}
|
|
47
159
|
export namespace Base {
|
|
48
160
|
namespace defaultProps {
|
|
@@ -50,4 +162,3 @@ export namespace Base {
|
|
|
50
162
|
}
|
|
51
163
|
}
|
|
52
164
|
import { BaseWindow } from '../../DataOperation/BaseWindow';
|
|
53
|
-
import React from 'react';
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
export class BaseFormDrawer extends Base {
|
|
2
|
+
/**
|
|
3
|
+
* 构造 Card 配置集合。
|
|
4
|
+
* @function
|
|
5
|
+
* @example
|
|
6
|
+
* establishCardCollectionConfig = () => null
|
|
7
|
+
*/
|
|
2
8
|
establishCardCollectionConfig: () => null;
|
|
9
|
+
/**
|
|
10
|
+
* 配置表单布局。
|
|
11
|
+
* @function
|
|
12
|
+
* @returns {string} 'vertical'
|
|
13
|
+
*/
|
|
3
14
|
buildFormLayout: () => string;
|
|
4
|
-
|
|
15
|
+
/**
|
|
16
|
+
* 渲染表单内容。
|
|
17
|
+
* @function
|
|
18
|
+
*/
|
|
19
|
+
renderPresetFormContent: () => Object;
|
|
20
|
+
/**
|
|
21
|
+
* 渲染表单。
|
|
22
|
+
* @function
|
|
23
|
+
*/
|
|
5
24
|
renderPresetForm: () => React.JSX.Element;
|
|
6
25
|
renderPresetContentContainorInner: () => React.JSX.Element;
|
|
7
26
|
}
|