antd-management-fast-framework 2.1.0 → 2.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/es/index.js +3 -9771
- package/package.json +7 -7
- package/es/configGroup/configGeneral.d.ts +0 -28
- package/es/configGroup/configGeneral.js +0 -36
- package/es/configGroup/index.d.ts +0 -2
- package/es/configGroup/themeCollection.d.ts +0 -7
- package/es/configGroup/themeCollection.js +0 -9
- package/es/configGroup/webpackPlugin.d.ts +0 -4
- package/es/configGroup/webpackPlugin.js +0 -351
- package/es/customComponents/ApplicationProvider/index.d.ts +0 -12
- package/es/customComponents/ApplicationWrapper/index.d.ts +0 -9
- package/es/customComponents/Bootstrap/index.d.ts +0 -3
- package/es/customComponents/Bootstrap/index.js +0 -67
- package/es/customComponents/DataPreviewDrawer/index.d.ts +0 -31
- package/es/customComponents/DataPreviewDrawer/index.js +0 -169
- package/es/customComponents/LoadingOverlay/index.d.ts +0 -6
- package/es/customComponents/LoadingOverloay/index.d.ts +0 -3
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -10
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -83
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -75
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -193
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +0 -54
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -157
- package/es/customComponents/MobileContainor/index.d.ts +0 -8
- package/es/customComponents/index.d.ts +0 -5
- package/es/framework/AuthorizationWrapper/index.js +0 -108
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -98
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -149
- package/es/framework/Common/CardCollectionItemContent/index.d.ts +0 -14
- package/es/framework/Common/CommonInternal/index.d.ts +0 -167
- package/es/framework/Common/InternalMake/index.d.ts +0 -9
- package/es/framework/Common/index.js +0 -39
- package/es/framework/Core/index.js +0 -38
- package/es/framework/CustomWrapper/Supplement/index.js +0 -67
- package/es/framework/CustomWrapper/SupplementCore/index.js +0 -131
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -61
- package/es/framework/DataDrawer/Base/index.js +0 -335
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -95
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -82
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -94
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -85
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
- package/es/framework/DataForm/BaseAddForm/index.js +0 -261
- package/es/framework/DataForm/BaseUpdateForm/index.js +0 -183
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -72
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -66
- package/es/framework/DataListView/Base/index.js +0 -1261
- package/es/framework/DataListView/BatchAction/index.js +0 -73
- package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -116
- package/es/framework/DataListView/ColumnSetting/index.js +0 -319
- package/es/framework/DataListView/DensityAction/index.js +0 -63
- package/es/framework/DataMenuContainer/index.js +0 -282
- package/es/framework/DataModal/Base/index.js +0 -231
- package/es/framework/DataModal/BaseAddModal/index.js +0 -72
- package/es/framework/DataModal/BaseLoadModal/index.js +0 -80
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -106
- package/es/framework/DataModal/BaseSelectModal/index.js +0 -74
- package/es/framework/DataModal/BaseUpdateModal/index.js +0 -62
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -140
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -82
- package/es/framework/DataMultiPageView/MultiPage/index.js +0 -299
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -457
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -123
- package/es/framework/DataOperation/Base/index.js +0 -322
- package/es/framework/DataOperation/BaseView/index.js +0 -83
- package/es/framework/DataOperation/BaseWindow/index.js +0 -330
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -82
- package/es/framework/DataSinglePageView/SinglePage/index.js +0 -254
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -438
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -126
- package/es/framework/DataSingleView/DataCore/index.js +0 -260
- package/es/framework/DataSingleView/DataLoad/index.js +0 -151
- package/es/framework/DataTabContainer/index.js +0 -254
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -158
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -159
- package/es/framework/LayoutWrapper/index.d.ts +0 -2
- package/es/framework/Wrapper/index.js +0 -59
- package/es/get.js +0 -28
- package/es/getPrototypeOf.js +0 -76
- package/es/index2.js +0 -2075
- package/es/index3.js +0 -383
- package/es/models/index.d.ts +0 -1
- package/es/models/schedulingControl.d.ts +0 -46
- package/es/models/schedulingControl.js +0 -171
- package/es/objectSpread2.js +0 -40
- package/es/services/schedulingControl.js +0 -135
- package/es/slicedToArray.js +0 -43
- package/es/toConsumableArray.js +0 -19
- package/es/toPropertyKey.js +0 -19
- package/es/typeof.js +0 -11
- package/es/unsupportedIterableToArray.js +0 -16
- package/es/utils/appListDataAssist.js +0 -69
- package/es/utils/applicationAssist.js +0 -28
- package/es/utils/bootstrap.js +0 -58
- package/es/utils/layoutSettingAssist.js +0 -60
- package/es/utils/metaDataAssist.js +0 -69
- package/es/utils/storageAssist.js +0 -153
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../getPrototypeOf.js';
|
|
3
|
-
import { Menu } from 'antd';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { GridContent } from '@ant-design/pro-layout';
|
|
6
|
-
import { isArray, endsWith, removeEndMatch } from 'antd-management-fast-common/es/utils/tools';
|
|
7
|
-
import IconInfo from 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
8
|
-
import AuthorizationWrapper from '../AuthorizationWrapper/index.js';
|
|
9
|
-
import '../../toPropertyKey.js';
|
|
10
|
-
import '../../typeof.js';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
12
|
-
import '../CustomWrapper/SupplementWrapper/index.js';
|
|
13
|
-
import '../CustomWrapper/Supplement/index.js';
|
|
14
|
-
import '../CustomWrapper/SupplementCore/index.js';
|
|
15
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
16
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
17
|
-
import '../../index2.js';
|
|
18
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
19
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
36
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
37
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
38
|
-
import '../../utils/metaDataAssist.js';
|
|
39
|
-
import '../../index3.js';
|
|
40
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
41
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
42
|
-
import '../../utils/storageAssist.js';
|
|
43
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
44
|
-
import '../Core/index.js';
|
|
45
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
46
|
-
|
|
47
|
-
var styles = {"main":"index_main__8WA-d","leftMenu":"index_leftMenu__urYtH","right":"index_right__IUROV"};
|
|
48
|
-
|
|
49
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
50
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
|
-
var Item = Menu.Item;
|
|
52
|
-
var DataMenuContainer = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
53
|
-
_inherits(DataMenuContainer, _AuthorizationWrapper);
|
|
54
|
-
var _super = _createSuper(DataMenuContainer);
|
|
55
|
-
function DataMenuContainer(props) {
|
|
56
|
-
var _this;
|
|
57
|
-
_classCallCheck(this, DataMenuContainer);
|
|
58
|
-
_this = _super.call(this, props);
|
|
59
|
-
_this.loadDataAfterMount = false;
|
|
60
|
-
_this.resetDataAfterLoad = false;
|
|
61
|
-
_this.menuList = [];
|
|
62
|
-
_this.doWorkBeforeAdjustDidMount = function () {
|
|
63
|
-
window.addEventListener('resize', _this.resize);
|
|
64
|
-
_this.resize();
|
|
65
|
-
};
|
|
66
|
-
_this.doWorkBeforeUnmount = function () {
|
|
67
|
-
window.removeEventListener('resize', _this.resize);
|
|
68
|
-
};
|
|
69
|
-
_this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
|
|
70
|
-
var urlParams = _this.state.urlParams;
|
|
71
|
-
var urlParamsPrev = preState.urlParams;
|
|
72
|
-
if ((urlParams || null) == null || (urlParamsPrev || null) == null) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
var op = urlParams.op;
|
|
76
|
-
var prevOp = urlParamsPrev.op;
|
|
77
|
-
var dataLoading = _this.state.dataLoading;
|
|
78
|
-
if (!dataLoading) {
|
|
79
|
-
if (prevOp === 'load' && op === 'update' || _this.checkNeedUpdate(preProps, preState, snapshot)) {
|
|
80
|
-
_this.reloadData();
|
|
81
|
-
var pathname = _this.props.location.pathname;
|
|
82
|
-
_this.redirectToPath("".concat(pathname.replace('/update/', '/load/')));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
_this.adjustTabListAvailable = function (tabListAvailable) {
|
|
87
|
-
return tabListAvailable;
|
|
88
|
-
};
|
|
89
|
-
_this.getMenuListAvailable = function () {
|
|
90
|
-
var tabListAvailable = [];
|
|
91
|
-
(_this.menuList || []).forEach(function (o) {
|
|
92
|
-
var v = typeof o.show === 'undefined' ? true : o.show === true;
|
|
93
|
-
if (v) {
|
|
94
|
-
tabListAvailable.push(o);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
return _this.adjustTabListAvailable(tabListAvailable);
|
|
98
|
-
};
|
|
99
|
-
_this.getMenuActiveKeyCore = function (defaultKey) {
|
|
100
|
-
var result = '';
|
|
101
|
-
var _this$props = _this.props,
|
|
102
|
-
match = _this$props.match,
|
|
103
|
-
pathname = _this$props.location.pathname;
|
|
104
|
-
var menuListAvailable = _this.getMenuListAvailable();
|
|
105
|
-
if (!isArray(menuListAvailable)) {
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
if (menuListAvailable.length <= 0) {
|
|
109
|
-
return result;
|
|
110
|
-
}
|
|
111
|
-
var selectKeyExist = false;
|
|
112
|
-
var selectKey = pathname.replace(/\//g, '-').replace("".concat(match.url.replace(/\//g, '-'), "-"), '').replace(/-/g, '/');
|
|
113
|
-
menuListAvailable.some(function (o) {
|
|
114
|
-
var _key = _objectSpread2(_objectSpread2({}, {
|
|
115
|
-
key: ''
|
|
116
|
-
}), o || {}),
|
|
117
|
-
key = _key.key;
|
|
118
|
-
if (key === selectKey) {
|
|
119
|
-
result = selectKey || '';
|
|
120
|
-
selectKeyExist = true;
|
|
121
|
-
return true;
|
|
122
|
-
}
|
|
123
|
-
return false;
|
|
124
|
-
});
|
|
125
|
-
if (!selectKeyExist) {
|
|
126
|
-
if (!checkStringIsNullOrWhiteSpace(defaultKey || '')) {
|
|
127
|
-
result = defaultKey;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return result;
|
|
131
|
-
};
|
|
132
|
-
_this.getMenuActiveKey = function () {
|
|
133
|
-
return _this.getMenuActiveKeyCore(_this.getDefaultMenuKey());
|
|
134
|
-
};
|
|
135
|
-
_this.getDefaultMenuKey = function () {
|
|
136
|
-
var result = '';
|
|
137
|
-
var menuListAvailable = _this.getMenuListAvailable();
|
|
138
|
-
if (!isArray(menuListAvailable)) {
|
|
139
|
-
return result;
|
|
140
|
-
}
|
|
141
|
-
if (menuListAvailable.length <= 0) {
|
|
142
|
-
return result;
|
|
143
|
-
}
|
|
144
|
-
menuListAvailable.some(function (o) {
|
|
145
|
-
var _defaultSelect$key = _objectSpread2(_objectSpread2({}, {
|
|
146
|
-
defaultSelect: false,
|
|
147
|
-
key: ''
|
|
148
|
-
}), o || {}),
|
|
149
|
-
defaultSelect = _defaultSelect$key.defaultSelect,
|
|
150
|
-
key = _defaultSelect$key.key;
|
|
151
|
-
if (defaultSelect) {
|
|
152
|
-
result = key || '';
|
|
153
|
-
return true;
|
|
154
|
-
}
|
|
155
|
-
return false;
|
|
156
|
-
});
|
|
157
|
-
return result;
|
|
158
|
-
};
|
|
159
|
-
_this.getRightTitleConfig = function () {
|
|
160
|
-
var result = null;
|
|
161
|
-
var selectMenuKey = _this.getMenuActiveKey();
|
|
162
|
-
if (checkStringIsNullOrWhiteSpace(selectMenuKey)) {
|
|
163
|
-
return '';
|
|
164
|
-
}
|
|
165
|
-
var menuListAvailable = _this.getMenuListAvailable();
|
|
166
|
-
menuListAvailable.some(function (o) {
|
|
167
|
-
var _key2 = _objectSpread2(_objectSpread2({}, {
|
|
168
|
-
key: ''
|
|
169
|
-
}), o || {}),
|
|
170
|
-
key = _key2.key,
|
|
171
|
-
icon = _key2.icon,
|
|
172
|
-
text = _key2.text;
|
|
173
|
-
if (key === selectMenuKey) {
|
|
174
|
-
result = {
|
|
175
|
-
icon: icon,
|
|
176
|
-
text: text
|
|
177
|
-
};
|
|
178
|
-
return true;
|
|
179
|
-
}
|
|
180
|
-
return false;
|
|
181
|
-
});
|
|
182
|
-
return result || {};
|
|
183
|
-
};
|
|
184
|
-
_this.buildRightTitle = function (_ref) {
|
|
185
|
-
var _ref$icon = _ref.icon,
|
|
186
|
-
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
187
|
-
_ref$text = _ref.text,
|
|
188
|
-
text = _ref$text === void 0 ? null : _ref$text;
|
|
189
|
-
return /*#__PURE__*/React.createElement(IconInfo, {
|
|
190
|
-
icon: icon,
|
|
191
|
-
text: text
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
_this.buildMenu = function () {
|
|
195
|
-
var menuListAvailable = _this.getMenuListAvailable();
|
|
196
|
-
if (!isArray(menuListAvailable)) {
|
|
197
|
-
return [];
|
|
198
|
-
}
|
|
199
|
-
if (menuListAvailable.length <= 0) {
|
|
200
|
-
return [];
|
|
201
|
-
}
|
|
202
|
-
return menuListAvailable.map(function (o) {
|
|
203
|
-
var key = o.key,
|
|
204
|
-
icon = o.icon,
|
|
205
|
-
text = o.text;
|
|
206
|
-
return /*#__PURE__*/React.createElement(Item, {
|
|
207
|
-
key: key
|
|
208
|
-
}, /*#__PURE__*/React.createElement(IconInfo, {
|
|
209
|
-
icon: icon,
|
|
210
|
-
text: text
|
|
211
|
-
}));
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
|
-
_this.selectKey = function (_ref2) {
|
|
215
|
-
var key = _ref2.key;
|
|
216
|
-
var path = '';
|
|
217
|
-
var match = _this.props.match;
|
|
218
|
-
var currentKey = _this.getMenuActiveKeyCore('');
|
|
219
|
-
if (endsWith(match.url, '/' + currentKey)) {
|
|
220
|
-
path = removeEndMatch(match.url, '/' + currentKey) + '/' + key;
|
|
221
|
-
} else {
|
|
222
|
-
path = match.url + '/' + key;
|
|
223
|
-
}
|
|
224
|
-
_this.goToPath(path);
|
|
225
|
-
};
|
|
226
|
-
_this.resize = function () {
|
|
227
|
-
if (!_this.main) {
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
requestAnimationFrame(function () {
|
|
231
|
-
var menuMode = 'inline';
|
|
232
|
-
if (_this.main != null) {
|
|
233
|
-
var offsetWidth = _this.main.offsetWidth;
|
|
234
|
-
if (offsetWidth != null) {
|
|
235
|
-
if (_this.main.offsetWidth < 641 && offsetWidth > 400) {
|
|
236
|
-
menuMode = 'horizontal';
|
|
237
|
-
}
|
|
238
|
-
if (window.innerWidth < 768 && offsetWidth > 400) {
|
|
239
|
-
menuMode = 'horizontal';
|
|
240
|
-
}
|
|
241
|
-
_this.setState({
|
|
242
|
-
menuMode: menuMode
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
};
|
|
248
|
-
_this.renderRightTitle = function () {
|
|
249
|
-
return _this.buildRightTitle(_this.getRightTitleConfig());
|
|
250
|
-
};
|
|
251
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {
|
|
252
|
-
menuMode: 'inline'
|
|
253
|
-
});
|
|
254
|
-
return _this;
|
|
255
|
-
}
|
|
256
|
-
_createClass(DataMenuContainer, [{
|
|
257
|
-
key: "renderFurther",
|
|
258
|
-
value: function renderFurther() {
|
|
259
|
-
var _this2 = this;
|
|
260
|
-
var selectMenuKey = this.getMenuActiveKey();
|
|
261
|
-
var children = this.props.children;
|
|
262
|
-
var menuMode = this.state.menuMode;
|
|
263
|
-
return /*#__PURE__*/React.createElement(GridContent, null, /*#__PURE__*/React.createElement("div", {
|
|
264
|
-
className: styles.main,
|
|
265
|
-
ref: function ref(_ref3) {
|
|
266
|
-
_this2.main = _ref3;
|
|
267
|
-
}
|
|
268
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
269
|
-
className: styles.leftMenu
|
|
270
|
-
}, /*#__PURE__*/React.createElement(Menu, {
|
|
271
|
-
mode: menuMode,
|
|
272
|
-
selectedKeys: [selectMenuKey],
|
|
273
|
-
onClick: this.selectKey
|
|
274
|
-
}, this.buildMenu())), /*#__PURE__*/React.createElement("div", {
|
|
275
|
-
className: styles.right
|
|
276
|
-
}, children)));
|
|
277
|
-
}
|
|
278
|
-
}]);
|
|
279
|
-
return DataMenuContainer;
|
|
280
|
-
}(AuthorizationWrapper);
|
|
281
|
-
|
|
282
|
-
export { DataMenuContainer as default };
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from '../../../index2.js';
|
|
2
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
3
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
4
|
-
import { Form, Modal, Spin } from 'antd';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { cardConfig } from 'antd-management-fast-common/es/utils/constants';
|
|
7
|
-
import { defaultFormState, isUndefined } from 'antd-management-fast-common/es/utils/tools';
|
|
8
|
-
import FlexText from 'antd-management-fast-component/es/customComponents/FlexText';
|
|
9
|
-
import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
|
|
10
|
-
import BaseWindow from '../../DataOperation/BaseWindow/index.js';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
12
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
13
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
14
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
15
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
16
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
30
|
-
import '../../../utils/metaDataAssist.js';
|
|
31
|
-
import '../../../index3.js';
|
|
32
|
-
import '../../../typeof.js';
|
|
33
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
34
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
35
|
-
import '../../../utils/storageAssist.js';
|
|
36
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
37
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
38
|
-
import '../../../toPropertyKey.js';
|
|
39
|
-
import '../../Core/index.js';
|
|
40
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
41
|
-
import '../../DataOperation/Base/index.js';
|
|
42
|
-
import '../../AuthorizationWrapper/index.js';
|
|
43
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
44
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
45
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
46
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
47
|
-
|
|
48
|
-
var styles = {"buttonText":"index_buttonText__n69Cb"};
|
|
49
|
-
|
|
50
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
51
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
52
|
-
var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
53
|
-
_inherits(Base, _BaseWindow);
|
|
54
|
-
var _super = _createSuper(Base);
|
|
55
|
-
function Base(props) {
|
|
56
|
-
var _this;
|
|
57
|
-
_classCallCheck(this, Base);
|
|
58
|
-
_this = _super.call(this, props);
|
|
59
|
-
_this.reloadWhenShow = true;
|
|
60
|
-
_this.buildFormLayout = function () {
|
|
61
|
-
return 'horizontal';
|
|
62
|
-
};
|
|
63
|
-
_this.establishFormAdditionalConfig = function () {
|
|
64
|
-
return {
|
|
65
|
-
labelCol: {
|
|
66
|
-
span: 7
|
|
67
|
-
},
|
|
68
|
-
wrapperCol: {
|
|
69
|
-
span: 17
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
_this.establishCardCollectionConfig = function () {
|
|
74
|
-
return null;
|
|
75
|
-
};
|
|
76
|
-
_this.establishWrapperTypeConfig = function () {
|
|
77
|
-
return {
|
|
78
|
-
mode: cardConfig.wrapperType.model
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
_this.getSaveButtonDisabled = function () {
|
|
82
|
-
return _this.checkOperability();
|
|
83
|
-
};
|
|
84
|
-
_this.buildOkButtonProps = function () {
|
|
85
|
-
if (_this.reloadWhenShow) {
|
|
86
|
-
var _buttonDisabled = _this.getSaveButtonDisabled() || _this.getOtherButtonDisabled();
|
|
87
|
-
return {
|
|
88
|
-
disabled: _buttonDisabled
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
var buttonDisabled = _this.getOtherButtonDisabled();
|
|
92
|
-
return {
|
|
93
|
-
disabled: buttonDisabled
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
_this.buildOkText = function () {
|
|
97
|
-
return '';
|
|
98
|
-
};
|
|
99
|
-
_this.buildOkTextWrapper = function () {
|
|
100
|
-
var okText = _this.buildOkText();
|
|
101
|
-
var buttonProcessing = _this.getSaveButtonProcessing();
|
|
102
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, buttonProcessing ? iconBuilder.loading() : _this.getSaveButtonIcon(), /*#__PURE__*/React.createElement("span", {
|
|
103
|
-
className: styles.buttonText
|
|
104
|
-
}, okText || '保存'));
|
|
105
|
-
};
|
|
106
|
-
_this.buildCancelButtonProps = function () {
|
|
107
|
-
if (_this.reloadWhenShow) {
|
|
108
|
-
var buttonDisabled = _this.getSaveButtonDisabled() || _this.getOtherButtonDisabled();
|
|
109
|
-
return {
|
|
110
|
-
disabled: buttonDisabled
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
return {};
|
|
114
|
-
};
|
|
115
|
-
_this.buildCancelText = function () {
|
|
116
|
-
var saveButtonText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
117
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, iconBuilder.closeCircle(), /*#__PURE__*/React.createElement("span", {
|
|
118
|
-
className: styles.buttonText
|
|
119
|
-
}, saveButtonText || '取消'));
|
|
120
|
-
};
|
|
121
|
-
_this.buildModalBodyStyle = function () {
|
|
122
|
-
return {
|
|
123
|
-
padding: 0
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
_this.getModalBodyStyle = function () {
|
|
127
|
-
var otherModalBodyStyle = _this.buildModalBodyStyle();
|
|
128
|
-
return _objectSpread2(_objectSpread2({}, {
|
|
129
|
-
padding: 0
|
|
130
|
-
}), otherModalBodyStyle || {});
|
|
131
|
-
};
|
|
132
|
-
_this.buildTitleIcon = function () {
|
|
133
|
-
return iconBuilder.edit();
|
|
134
|
-
};
|
|
135
|
-
_this.buildTitlePrevText = function () {
|
|
136
|
-
return '';
|
|
137
|
-
};
|
|
138
|
-
_this.buildTitleText = function () {
|
|
139
|
-
var pageName = _this.state.pageName;
|
|
140
|
-
return pageName;
|
|
141
|
-
};
|
|
142
|
-
_this.buildTitleSubText = function () {
|
|
143
|
-
return '';
|
|
144
|
-
};
|
|
145
|
-
_this.buildTitle = function () {
|
|
146
|
-
var subText = _this.buildTitleSubText();
|
|
147
|
-
var subInfo = checkStringIsNullOrWhiteSpace(subText) ? null : /*#__PURE__*/React.createElement(FlexText, {
|
|
148
|
-
flexAuto: "right",
|
|
149
|
-
addonBefore: '【',
|
|
150
|
-
text: subText,
|
|
151
|
-
addonAfter: '】'
|
|
152
|
-
});
|
|
153
|
-
return /*#__PURE__*/React.createElement(FlexText, {
|
|
154
|
-
flexAuto: "right",
|
|
155
|
-
icon: _this.buildTitleIcon(),
|
|
156
|
-
textPrefix: _this.buildTitlePrevText(),
|
|
157
|
-
text: _this.buildTitleText(),
|
|
158
|
-
extra: subInfo
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
_this.formContent = function () {
|
|
162
|
-
return _this.buildCardCollection(_this.establishCardCollectionConfig());
|
|
163
|
-
};
|
|
164
|
-
_this.renderForm = function () {
|
|
165
|
-
var _this$state = _this.state,
|
|
166
|
-
metaData = _this$state.metaData,
|
|
167
|
-
metaListData = _this$state.metaListData,
|
|
168
|
-
metaExtra = _this$state.metaExtra,
|
|
169
|
-
metaOriginalData = _this$state.metaOriginalData;
|
|
170
|
-
var initialValues = _this.buildInitialValues({
|
|
171
|
-
metaData: metaData,
|
|
172
|
-
metaListData: metaListData,
|
|
173
|
-
metaExtra: metaExtra,
|
|
174
|
-
metaOriginalData: metaOriginalData
|
|
175
|
-
});
|
|
176
|
-
var otherFormProps = _this.establishFormAdditionalConfig();
|
|
177
|
-
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
178
|
-
ref: _this.formRef,
|
|
179
|
-
layout: _this.buildFormLayout(),
|
|
180
|
-
initialValues: initialValues,
|
|
181
|
-
className: _this.getFormClassName()
|
|
182
|
-
}, otherFormProps), _this.formContent());
|
|
183
|
-
};
|
|
184
|
-
_this.renderFormWrapper = function () {
|
|
185
|
-
return _this.renderForm();
|
|
186
|
-
};
|
|
187
|
-
_this.renderModalInner = function () {
|
|
188
|
-
return _this.renderFormWrapper();
|
|
189
|
-
};
|
|
190
|
-
var defaultState = defaultFormState();
|
|
191
|
-
_this.state = _objectSpread2(_objectSpread2({}, defaultState), {
|
|
192
|
-
visible: false,
|
|
193
|
-
dataLoading: false,
|
|
194
|
-
width: 520
|
|
195
|
-
});
|
|
196
|
-
return _this;
|
|
197
|
-
}
|
|
198
|
-
_createClass(Base, [{
|
|
199
|
-
key: "renderFurther",
|
|
200
|
-
value: function renderFurther() {
|
|
201
|
-
var _this2 = this;
|
|
202
|
-
var _this$state2 = this.state,
|
|
203
|
-
width = _this$state2.width,
|
|
204
|
-
visible = _this$state2.visible,
|
|
205
|
-
processing = _this$state2.processing,
|
|
206
|
-
dataLoading = _this$state2.dataLoading;
|
|
207
|
-
var maskClosable = this.props.maskClosable;
|
|
208
|
-
return /*#__PURE__*/React.createElement(Modal, {
|
|
209
|
-
title: this.buildTitle(),
|
|
210
|
-
width: width,
|
|
211
|
-
bodyStyle: this.getModalBodyStyle(),
|
|
212
|
-
open: visible,
|
|
213
|
-
maskClosable: isUndefined(maskClosable) ? false : maskClosable,
|
|
214
|
-
zIndex: 1001,
|
|
215
|
-
okButtonProps: this.buildOkButtonProps(),
|
|
216
|
-
onOk: function onOk(e) {
|
|
217
|
-
_this2.handleOk(e);
|
|
218
|
-
},
|
|
219
|
-
okText: this.buildOkTextWrapper(),
|
|
220
|
-
cancelButtonProps: this.buildCancelButtonProps(),
|
|
221
|
-
cancelText: this.buildCancelText(),
|
|
222
|
-
onCancel: this.handleCancel
|
|
223
|
-
}, /*#__PURE__*/React.createElement(Spin, {
|
|
224
|
-
spinning: processing || dataLoading
|
|
225
|
-
}, this.renderModalInner()), this.renderOther());
|
|
226
|
-
}
|
|
227
|
-
}]);
|
|
228
|
-
return Base;
|
|
229
|
-
}(BaseWindow);
|
|
230
|
-
|
|
231
|
-
export { Base as default };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
3
|
-
import { _ as _get } from '../../../get.js';
|
|
4
|
-
import BaseAddModal$1 from '../BaseNeedlessLoadModal/index.js';
|
|
5
|
-
import '../../../toPropertyKey.js';
|
|
6
|
-
import '../../../typeof.js';
|
|
7
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
8
|
-
import 'antd-management-fast-common/es/utils/tools';
|
|
9
|
-
import '../Base/index.js';
|
|
10
|
-
import '../../../index2.js';
|
|
11
|
-
import 'antd';
|
|
12
|
-
import 'react';
|
|
13
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
14
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
15
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
16
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
34
|
-
import '../../../utils/metaDataAssist.js';
|
|
35
|
-
import '../../../index3.js';
|
|
36
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
37
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
38
|
-
import '../../../utils/storageAssist.js';
|
|
39
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
40
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
41
|
-
import '../../Core/index.js';
|
|
42
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
43
|
-
import '../../DataOperation/BaseWindow/index.js';
|
|
44
|
-
import '../../DataOperation/Base/index.js';
|
|
45
|
-
import '../../AuthorizationWrapper/index.js';
|
|
46
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
47
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
48
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
49
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
50
|
-
|
|
51
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
52
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
53
|
-
var BaseAddModal = /*#__PURE__*/function (_BaseNeedlessLoadModa) {
|
|
54
|
-
_inherits(BaseAddModal, _BaseNeedlessLoadModa);
|
|
55
|
-
var _super = _createSuper(BaseAddModal);
|
|
56
|
-
function BaseAddModal(props) {
|
|
57
|
-
var _this;
|
|
58
|
-
_classCallCheck(this, BaseAddModal);
|
|
59
|
-
_this = _super.call(this, props);
|
|
60
|
-
_this.state = _objectSpread2({}, _this.state);
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
_createClass(BaseAddModal, null, [{
|
|
64
|
-
key: "getDerivedStateFromProps",
|
|
65
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
66
|
-
return _get(_getPrototypeOf(BaseAddModal), "getDerivedStateFromProps", this).call(this, nextProps, prevState);
|
|
67
|
-
}
|
|
68
|
-
}]);
|
|
69
|
-
return BaseAddModal;
|
|
70
|
-
}(BaseAddModal$1);
|
|
71
|
-
|
|
72
|
-
export { BaseAddModal as default };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
2
|
-
import Base from '../Base/index.js';
|
|
3
|
-
import '../../../toPropertyKey.js';
|
|
4
|
-
import '../../../typeof.js';
|
|
5
|
-
import '../../../index2.js';
|
|
6
|
-
import '../../../objectSpread2.js';
|
|
7
|
-
import 'antd';
|
|
8
|
-
import 'react';
|
|
9
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
10
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
12
|
-
import 'antd-management-fast-common/es/utils/tools';
|
|
13
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
14
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
15
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
16
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
32
|
-
import '../../../utils/metaDataAssist.js';
|
|
33
|
-
import '../../../index3.js';
|
|
34
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
35
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
36
|
-
import '../../../utils/storageAssist.js';
|
|
37
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
38
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
39
|
-
import '../../Core/index.js';
|
|
40
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
41
|
-
import '../../DataOperation/BaseWindow/index.js';
|
|
42
|
-
import '../../DataOperation/Base/index.js';
|
|
43
|
-
import '../../AuthorizationWrapper/index.js';
|
|
44
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
45
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
46
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
47
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
48
|
-
|
|
49
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
50
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
|
-
var BaseLoadModal = /*#__PURE__*/function (_Base) {
|
|
52
|
-
_inherits(BaseLoadModal, _Base);
|
|
53
|
-
var _super = _createSuper(BaseLoadModal);
|
|
54
|
-
function BaseLoadModal() {
|
|
55
|
-
var _this;
|
|
56
|
-
_classCallCheck(this, BaseLoadModal);
|
|
57
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
58
|
-
args[_key] = arguments[_key];
|
|
59
|
-
}
|
|
60
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
61
|
-
_this.doOtherWhenChangeVisibleToShow = function (preProps, preState, snapshot) {
|
|
62
|
-
if (_this.reloadWhenShow) {
|
|
63
|
-
var form = _this.getTargetForm();
|
|
64
|
-
if (form) {
|
|
65
|
-
form.resetFields();
|
|
66
|
-
}
|
|
67
|
-
_this.reloadData({
|
|
68
|
-
dataLoading: true
|
|
69
|
-
}, null, 300);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
_this.buildOkText = function () {
|
|
73
|
-
return '确定';
|
|
74
|
-
};
|
|
75
|
-
return _this;
|
|
76
|
-
}
|
|
77
|
-
return _createClass(BaseLoadModal);
|
|
78
|
-
}(Base);
|
|
79
|
-
|
|
80
|
-
export { BaseLoadModal as default };
|