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,438 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, e as _assertThisInitialized, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
3
|
-
import { Card, Row, Col, Tag, Divider, Tooltip, Button, List, Drawer } from 'antd';
|
|
4
|
-
import QueueAnim from 'rc-queue-anim';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { ReadOutlined } from '@ant-design/icons';
|
|
7
|
-
import { contentConfig, listViewConfig } from 'antd-management-fast-common/es/utils/constants';
|
|
8
|
-
import { isFunction } from 'antd-management-fast-common/es/utils/tools';
|
|
9
|
-
import { buildListViewItemActionSelect } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
10
|
-
import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
|
|
11
|
-
import ColumnSetting from '../../DataListView/ColumnSetting/index.js';
|
|
12
|
-
import DensityAction from '../../DataListView/DensityAction/index.js';
|
|
13
|
-
import SinglePage from '../SinglePage/index.js';
|
|
14
|
-
import '../../../toPropertyKey.js';
|
|
15
|
-
import '../../../typeof.js';
|
|
16
|
-
import '../../../toConsumableArray.js';
|
|
17
|
-
import '../../../unsupportedIterableToArray.js';
|
|
18
|
-
import 'react-dnd';
|
|
19
|
-
import 'react-dnd-html5-backend';
|
|
20
|
-
import '../../DataListView/ColumnSetting/DndItem.js';
|
|
21
|
-
import '../../../slicedToArray.js';
|
|
22
|
-
import '../../DataListView/Base/index.js';
|
|
23
|
-
import '../../../index2.js';
|
|
24
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
25
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
36
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
37
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
38
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
39
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
40
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
41
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
42
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
43
|
-
import '../../../utils/metaDataAssist.js';
|
|
44
|
-
import '../../../index3.js';
|
|
45
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
46
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
47
|
-
import '../../../utils/storageAssist.js';
|
|
48
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
49
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
50
|
-
import '../../Core/index.js';
|
|
51
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
52
|
-
import 'classnames';
|
|
53
|
-
import '@ant-design/pro-layout';
|
|
54
|
-
import 'antd-management-fast-common/es/utils/routeAssist';
|
|
55
|
-
import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
56
|
-
import 'antd-management-fast-component/es/customComponents/StandardTableCustom';
|
|
57
|
-
import '../../AuthorizationWrapper/index.js';
|
|
58
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
59
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
60
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
61
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
62
|
-
import '../../DataListView/BatchAction/index.js';
|
|
63
|
-
import 'antd/lib/config-provider/context';
|
|
64
|
-
|
|
65
|
-
var styles = {"containorBox":"index_containorBox__n0gB6","titleIcon":"index_titleIcon__CdBdK","titleText":"index_titleText__hMjCw","mainContainor":"index_mainContainor__UBuik","contentContainor":"index_contentContainor__J0Gb5","containorTable":"index_containorTable__iox1-","iconAction":"index_iconAction__vrmiQ"};
|
|
66
|
-
|
|
67
|
-
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); }; }
|
|
68
|
-
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; } }
|
|
69
|
-
var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
70
|
-
_inherits(SinglePageDrawer, _SinglePage);
|
|
71
|
-
var _super = _createSuper(SinglePageDrawer);
|
|
72
|
-
function SinglePageDrawer(props) {
|
|
73
|
-
var _this;
|
|
74
|
-
_classCallCheck(this, SinglePageDrawer);
|
|
75
|
-
_this = _super.call(this, props);
|
|
76
|
-
_this.loadDataAfterMount = false;
|
|
77
|
-
_this.resetDataAfterLoad = false;
|
|
78
|
-
_this.reloadWhenShow = true;
|
|
79
|
-
_this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
|
|
80
|
-
var visiblePre = preState.visible;
|
|
81
|
-
var visible = _this.state.visible;
|
|
82
|
-
if (visiblePre !== visible) {
|
|
83
|
-
_this.doOtherWhenChangeVisible(preProps, preState, snapshot, visible);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
_this.doOtherWhenChangeVisible = function (preProps, preState, snapshot, currentVisible) {
|
|
87
|
-
if (currentVisible) {
|
|
88
|
-
_this.doOtherWhenChangeVisibleToShow(preProps, preState, snapshot);
|
|
89
|
-
_this.executeAfterDoOtherWhenChangeVisibleToShow(preProps, preState, snapshot);
|
|
90
|
-
} else {
|
|
91
|
-
_this.doOtherWhenChangeVisibleToHide(preProps, preState, snapshot);
|
|
92
|
-
_this.executeAfterDoOtherWhenChangeVisibleToHide(preProps, preState, snapshot);
|
|
93
|
-
}
|
|
94
|
-
_this.executeOtherAfterDoOtherWhenChangeVisible(preProps, preState, snapshot);
|
|
95
|
-
};
|
|
96
|
-
_this.doOtherWhenChangeVisibleToShow = function (preProps, preState, snapshot) {
|
|
97
|
-
var firstLoadSuccess = _this.state.firstLoadSuccess;
|
|
98
|
-
|
|
99
|
-
// 未加载数据过数据的时候,进行加载
|
|
100
|
-
if (!firstLoadSuccess) {
|
|
101
|
-
// 设置界面效果为加载中,减少用户误解
|
|
102
|
-
_this.setState({
|
|
103
|
-
dataLoading: true
|
|
104
|
-
});
|
|
105
|
-
_this.handleSearchReset(false, 700);
|
|
106
|
-
} else if (_this.reloadWhenShow) {
|
|
107
|
-
_this.reloadData({
|
|
108
|
-
reloadAnimalShow: true
|
|
109
|
-
}, function () {
|
|
110
|
-
_this.setState({
|
|
111
|
-
reloadAnimalShow: false
|
|
112
|
-
});
|
|
113
|
-
}, 700);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
_this.executeAfterDoOtherWhenChangeVisibleToShow = function (
|
|
117
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
|
-
preProps,
|
|
119
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
120
|
-
preState,
|
|
121
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
122
|
-
snapshot) {};
|
|
123
|
-
_this.doOtherWhenChangeVisibleToHide = function (preProps, preState, snapshot) {};
|
|
124
|
-
_this.executeAfterDoOtherWhenChangeVisibleToHide = function (
|
|
125
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
126
|
-
preProps,
|
|
127
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
128
|
-
preState,
|
|
129
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
130
|
-
snapshot) {};
|
|
131
|
-
_this.executeOtherAfterDoOtherWhenChangeVisible = function (
|
|
132
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
|
-
preProps,
|
|
134
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
135
|
-
preState,
|
|
136
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
137
|
-
snapshot) {};
|
|
138
|
-
_this.onClose = function () {
|
|
139
|
-
var afterClose = _this.props.afterClose;
|
|
140
|
-
if (typeof afterClose === 'function') {
|
|
141
|
-
afterClose();
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
_this.selectRecord = function (_ref) {
|
|
145
|
-
var handleData = _ref.handleData;
|
|
146
|
-
var _this$props = _this.props,
|
|
147
|
-
afterSelectSuccess = _this$props.afterSelectSuccess,
|
|
148
|
-
hideDrawerAfterSelect = _this$props.hideDrawerAfterSelect;
|
|
149
|
-
if (isFunction(afterSelectSuccess)) {
|
|
150
|
-
afterSelectSuccess(handleData);
|
|
151
|
-
}
|
|
152
|
-
if (hideDrawerAfterSelect) {
|
|
153
|
-
_this.hideDrawer();
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
_this.renderTitleIcon = function () {
|
|
157
|
-
return /*#__PURE__*/React.createElement(ReadOutlined, {
|
|
158
|
-
className: styles.titleIcon
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
_this.hideDrawer = function () {
|
|
162
|
-
_this.onClose();
|
|
163
|
-
};
|
|
164
|
-
_this.establishWrapperTypeConfig = function () {
|
|
165
|
-
return {
|
|
166
|
-
mode: contentConfig.wrapperType.drawer
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
_this.renderViewContainor = function () {
|
|
170
|
-
var _this$state = _this.state,
|
|
171
|
-
reloadAnimalShow = _this$state.reloadAnimalShow,
|
|
172
|
-
listTitle = _this$state.listTitle,
|
|
173
|
-
tableSize = _this$state.tableSize,
|
|
174
|
-
refreshing = _this$state.refreshing,
|
|
175
|
-
listViewMode = _this$state.listViewMode;
|
|
176
|
-
var extraAction = _this.renderExtraActionView();
|
|
177
|
-
var searchForm = _this.renderForm();
|
|
178
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
179
|
-
className: styles.tableList,
|
|
180
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
181
|
-
height: '100%',
|
|
182
|
-
overflow: 'hidden'
|
|
183
|
-
} : {}
|
|
184
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
185
|
-
className: styles.containorBox,
|
|
186
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
187
|
-
height: '100%',
|
|
188
|
-
overflow: 'hidden',
|
|
189
|
-
display: 'flex',
|
|
190
|
-
flexDirection: 'column'
|
|
191
|
-
} : {}
|
|
192
|
-
}, _this.showSearchForm && (searchForm || null) != null ? /*#__PURE__*/React.createElement("div", {
|
|
193
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
194
|
-
flex: 0
|
|
195
|
-
} : {}
|
|
196
|
-
}, /*#__PURE__*/React.createElement(Card, {
|
|
197
|
-
bordered: false,
|
|
198
|
-
className: styles.containorSearch,
|
|
199
|
-
bodyStyle: {
|
|
200
|
-
padding: 0
|
|
201
|
-
}
|
|
202
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
203
|
-
className: styles.tableListForm
|
|
204
|
-
}, _this.renderForm())), /*#__PURE__*/React.createElement("div", {
|
|
205
|
-
style: {
|
|
206
|
-
height: '1px',
|
|
207
|
-
backgroundColor: '#f0f2f5'
|
|
208
|
-
}
|
|
209
|
-
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
210
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
211
|
-
flex: 'auto',
|
|
212
|
-
overflow: 'hidden'
|
|
213
|
-
} : {}
|
|
214
|
-
}, /*#__PURE__*/React.createElement(Card, {
|
|
215
|
-
title: /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
|
|
216
|
-
flex: "70px"
|
|
217
|
-
}, " ", listTitle), /*#__PURE__*/React.createElement(Col, {
|
|
218
|
-
flex: "auto"
|
|
219
|
-
}, /*#__PURE__*/React.createElement(QueueAnim, null, reloadAnimalShow ? /*#__PURE__*/React.createElement("div", {
|
|
220
|
-
key: "3069dd18-f530-43ab-b96d-a86f8079358f"
|
|
221
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
222
|
-
color: "gold"
|
|
223
|
-
}, "\u5373\u5C06\u5237\u65B0")) : null))),
|
|
224
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
225
|
-
height: '100%',
|
|
226
|
-
overflow: 'hidden',
|
|
227
|
-
display: 'flex',
|
|
228
|
-
flexDirection: 'column'
|
|
229
|
-
} : {},
|
|
230
|
-
headStyle: {
|
|
231
|
-
borderBottom: 0,
|
|
232
|
-
paddingLeft: 0,
|
|
233
|
-
paddingRight: 0,
|
|
234
|
-
flex: 0
|
|
235
|
-
},
|
|
236
|
-
bodyStyle: {
|
|
237
|
-
paddingTop: 0,
|
|
238
|
-
paddingBottom: 0,
|
|
239
|
-
paddingLeft: 0,
|
|
240
|
-
paddingRight: 0,
|
|
241
|
-
flex: 'auto',
|
|
242
|
-
overflow: 'hidden'
|
|
243
|
-
// height: 'calc(100vh - 103px)',
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
bordered: false,
|
|
247
|
-
className: styles.containorTable,
|
|
248
|
-
extra: /*#__PURE__*/React.createElement(React.Fragment, null, extraAction, extraAction == null ? null : /*#__PURE__*/React.createElement(Divider, {
|
|
249
|
-
type: "vertical"
|
|
250
|
-
}), _this.renderBatchAction(), listViewMode === listViewConfig.viewMode.table ? /*#__PURE__*/React.createElement(DensityAction, {
|
|
251
|
-
tableSize: tableSize,
|
|
252
|
-
setTableSize: function setTableSize(key) {
|
|
253
|
-
_this.setTableSize(key);
|
|
254
|
-
}
|
|
255
|
-
}) : null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
256
|
-
title: "\u5237\u65B0\u672C\u9875"
|
|
257
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
258
|
-
shape: "circle",
|
|
259
|
-
className: styles.iconAction,
|
|
260
|
-
loading: refreshing,
|
|
261
|
-
icon: iconBuilder.reload(),
|
|
262
|
-
onClick: function onClick() {
|
|
263
|
-
_this.refreshData();
|
|
264
|
-
}
|
|
265
|
-
})), listViewMode === listViewConfig.viewMode.table ? /*#__PURE__*/React.createElement(ColumnSetting, {
|
|
266
|
-
columns: _this.getColumn(),
|
|
267
|
-
columnsMap: _this.getColumnsMap(),
|
|
268
|
-
setColumnsMap: function setColumnsMap(e) {
|
|
269
|
-
_this.setColumnsMap(e);
|
|
270
|
-
},
|
|
271
|
-
setSortKeyColumns: function setSortKeyColumns(key) {
|
|
272
|
-
_this.setSortKeyColumns(key);
|
|
273
|
-
}
|
|
274
|
-
}) : null)
|
|
275
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
276
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
277
|
-
height: '100%',
|
|
278
|
-
overflow: 'hidden',
|
|
279
|
-
display: 'flex',
|
|
280
|
-
flexDirection: 'column'
|
|
281
|
-
} : {}
|
|
282
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
283
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
284
|
-
flex: 0
|
|
285
|
-
} : {}
|
|
286
|
-
}, _this.renderAboveTable()), /*#__PURE__*/React.createElement("div", {
|
|
287
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
288
|
-
flex: 'auto',
|
|
289
|
-
overflow: 'hidden',
|
|
290
|
-
paddingTop: 5
|
|
291
|
-
} : {}
|
|
292
|
-
}, _this.renderView()))))), _this.renderOther());
|
|
293
|
-
};
|
|
294
|
-
_this.renderContentContainor = function () {
|
|
295
|
-
var listViewMode = _this.state.listViewMode;
|
|
296
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
297
|
-
className: styles.contentContainor,
|
|
298
|
-
style: _objectSpread2(_objectSpread2(_objectSpread2({}, listViewMode === listViewConfig.viewMode.list ? {
|
|
299
|
-
paddingBottom: 0,
|
|
300
|
-
height: '100%',
|
|
301
|
-
overflow: 'hidden'
|
|
302
|
-
} : {
|
|
303
|
-
paddingBottom: 0
|
|
304
|
-
}), _this.showSearchForm ? {} : {
|
|
305
|
-
paddingTop: 0
|
|
306
|
-
}), {
|
|
307
|
-
backgroundColor: '#fff'
|
|
308
|
-
})
|
|
309
|
-
}, _this.renderViewContainor());
|
|
310
|
-
};
|
|
311
|
-
_this.renderDrawerInner = function () {
|
|
312
|
-
var listViewMode = _this.state.listViewMode;
|
|
313
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
314
|
-
className: styles.mainContainor,
|
|
315
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
316
|
-
height: '100%',
|
|
317
|
-
overflow: 'hidden'
|
|
318
|
-
} : {}
|
|
319
|
-
}, _this.renderContentContainor());
|
|
320
|
-
};
|
|
321
|
-
_this.renderListView = function () {
|
|
322
|
-
var _this$state2 = _this.state,
|
|
323
|
-
dataLoading = _this$state2.dataLoading,
|
|
324
|
-
listViewMode = _this$state2.listViewMode;
|
|
325
|
-
var list = _this.getCanUseFrontendPagination() ? _this.adjustFrontendPaginationViewDataSource() : _this.adjustViewDataSource();
|
|
326
|
-
var bottomBar = _this.renderPaginationView();
|
|
327
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
328
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
329
|
-
height: '100%',
|
|
330
|
-
overflow: 'hidden',
|
|
331
|
-
display: 'flex',
|
|
332
|
-
flexDirection: 'column'
|
|
333
|
-
} : {}
|
|
334
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
335
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
336
|
-
flex: 'auto',
|
|
337
|
-
overflow: 'hidden'
|
|
338
|
-
} : {}
|
|
339
|
-
}, /*#__PURE__*/React.createElement(List, {
|
|
340
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
341
|
-
height: '100%',
|
|
342
|
-
overflow: 'auto'
|
|
343
|
-
} : {},
|
|
344
|
-
loading: dataLoading,
|
|
345
|
-
itemLayout: _this.renderListViewItemLayout(),
|
|
346
|
-
dataSource: list,
|
|
347
|
-
renderItem: function renderItem(item, index) {
|
|
348
|
-
return _this.renderListViewItem(item, index);
|
|
349
|
-
}
|
|
350
|
-
})), (bottomBar || null) == null ? null : /*#__PURE__*/React.createElement("div", {
|
|
351
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
352
|
-
flex: 0
|
|
353
|
-
} : {}
|
|
354
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
355
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
356
|
-
height: '100%',
|
|
357
|
-
display: 'flex',
|
|
358
|
-
justifyContent: 'space-between'
|
|
359
|
-
} : {}
|
|
360
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
361
|
-
style: listViewMode === listViewConfig.viewMode.list ? {
|
|
362
|
-
flex: 'auto'
|
|
363
|
-
} : {}
|
|
364
|
-
}), bottomBar)));
|
|
365
|
-
};
|
|
366
|
-
_this.renderListViewItemActionSelect = function (item, index) {
|
|
367
|
-
var that = _assertThisInitialized(_this);
|
|
368
|
-
return buildListViewItemActionSelect({
|
|
369
|
-
index: index,
|
|
370
|
-
selectData: item,
|
|
371
|
-
selectCallback: function selectCallback(data) {
|
|
372
|
-
return that.selectRecord({
|
|
373
|
-
handleData: data || null
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
};
|
|
378
|
-
var s = _this.state;
|
|
379
|
-
s.dataLoading = false;
|
|
380
|
-
_this.state = _objectSpread2(_objectSpread2({}, s), {
|
|
381
|
-
visible: false,
|
|
382
|
-
reloadAnimalShow: false,
|
|
383
|
-
listViewMode: listViewConfig.viewMode.table
|
|
384
|
-
});
|
|
385
|
-
return _this;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
389
|
-
_createClass(SinglePageDrawer, [{
|
|
390
|
-
key: "renderFurther",
|
|
391
|
-
value: function renderFurther() {
|
|
392
|
-
var widthDrawer = this.props.width;
|
|
393
|
-
var _this$state3 = this.state,
|
|
394
|
-
visible = _this$state3.visible,
|
|
395
|
-
listViewMode = _this$state3.listViewMode;
|
|
396
|
-
return /*#__PURE__*/React.createElement(Drawer, {
|
|
397
|
-
title: /*#__PURE__*/React.createElement("span", null, this.renderTitleIcon(), this.getPageName()),
|
|
398
|
-
destroyOnClose: false,
|
|
399
|
-
className: styles.containorBox,
|
|
400
|
-
width: widthDrawer,
|
|
401
|
-
placement: "right",
|
|
402
|
-
visible: visible || false,
|
|
403
|
-
onClose: this.onClose,
|
|
404
|
-
bodyStyle: {
|
|
405
|
-
padding: 0
|
|
406
|
-
}
|
|
407
|
-
}, listViewMode === listViewConfig.viewMode.list ? /*#__PURE__*/React.createElement("div", {
|
|
408
|
-
style: {
|
|
409
|
-
height: 'calc(100vh - 55px)'
|
|
410
|
-
}
|
|
411
|
-
}, this.renderDrawerInner()) : null, listViewMode === listViewConfig.viewMode.cardCollectionView ? /*#__PURE__*/React.createElement("div", {
|
|
412
|
-
style: {
|
|
413
|
-
height: 'calc(100vh - 55px)'
|
|
414
|
-
}
|
|
415
|
-
}, this.renderDrawerInner()) : null, listViewMode === listViewConfig.viewMode.table ? this.renderDrawerInner() : null);
|
|
416
|
-
}
|
|
417
|
-
}], [{
|
|
418
|
-
key: "getDerivedStateFromProps",
|
|
419
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
420
|
-
var visible = nextProps.visible,
|
|
421
|
-
externalData = nextProps.externalData;
|
|
422
|
-
return {
|
|
423
|
-
visible: visible,
|
|
424
|
-
externalData: externalData
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
429
|
-
}]);
|
|
430
|
-
return SinglePageDrawer;
|
|
431
|
-
}(SinglePage);
|
|
432
|
-
SinglePageDrawer.defaultProps = {
|
|
433
|
-
hideDrawerAfterSelect: true,
|
|
434
|
-
confirmSelect: true,
|
|
435
|
-
width: 820
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export { SinglePageDrawer as default };
|
|
@@ -1,126 +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 { isFunction } from 'antd-management-fast-common/es/utils/tools';
|
|
5
|
-
import { buildButton } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
6
|
-
import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
|
|
7
|
-
import SinglePageDrawer from '../SinglePageDrawer/index.js';
|
|
8
|
-
import '../../../toPropertyKey.js';
|
|
9
|
-
import '../../../typeof.js';
|
|
10
|
-
import 'antd';
|
|
11
|
-
import 'rc-queue-anim';
|
|
12
|
-
import 'react';
|
|
13
|
-
import '@ant-design/icons';
|
|
14
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
15
|
-
import '../../DataListView/ColumnSetting/index.js';
|
|
16
|
-
import '../../../toConsumableArray.js';
|
|
17
|
-
import '../../../unsupportedIterableToArray.js';
|
|
18
|
-
import 'react-dnd';
|
|
19
|
-
import 'react-dnd-html5-backend';
|
|
20
|
-
import '../../DataListView/ColumnSetting/DndItem.js';
|
|
21
|
-
import '../../../slicedToArray.js';
|
|
22
|
-
import '../../DataListView/DensityAction/index.js';
|
|
23
|
-
import '../SinglePage/index.js';
|
|
24
|
-
import '../../DataListView/Base/index.js';
|
|
25
|
-
import '../../../index2.js';
|
|
26
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
27
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
36
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
37
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
38
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
39
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
40
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
41
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
42
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
43
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
44
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
45
|
-
import '../../../utils/metaDataAssist.js';
|
|
46
|
-
import '../../../index3.js';
|
|
47
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
48
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
49
|
-
import '../../../utils/storageAssist.js';
|
|
50
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
51
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
52
|
-
import '../../Core/index.js';
|
|
53
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
54
|
-
import 'classnames';
|
|
55
|
-
import '@ant-design/pro-layout';
|
|
56
|
-
import 'antd-management-fast-common/es/utils/routeAssist';
|
|
57
|
-
import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
58
|
-
import 'antd-management-fast-component/es/customComponents/StandardTableCustom';
|
|
59
|
-
import '../../AuthorizationWrapper/index.js';
|
|
60
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
61
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
62
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
63
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
64
|
-
import '../../DataListView/BatchAction/index.js';
|
|
65
|
-
import 'antd/lib/config-provider/context';
|
|
66
|
-
|
|
67
|
-
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); }; }
|
|
68
|
-
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; } }
|
|
69
|
-
var SinglePageSelectDrawer = /*#__PURE__*/function (_SinglePageDrawer) {
|
|
70
|
-
_inherits(SinglePageSelectDrawer, _SinglePageDrawer);
|
|
71
|
-
var _super = _createSuper(SinglePageSelectDrawer);
|
|
72
|
-
function SinglePageSelectDrawer() {
|
|
73
|
-
var _this;
|
|
74
|
-
_classCallCheck(this, SinglePageSelectDrawer);
|
|
75
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
76
|
-
args[_key] = arguments[_key];
|
|
77
|
-
}
|
|
78
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
79
|
-
_this.showListViewItemActionSelect = true;
|
|
80
|
-
_this.selectRecord = function (_ref) {
|
|
81
|
-
var handleData = _ref.handleData;
|
|
82
|
-
var afterSelectSuccess = _this.props.afterSelectSuccess;
|
|
83
|
-
if (isFunction(afterSelectSuccess)) {
|
|
84
|
-
afterSelectSuccess(handleData);
|
|
85
|
-
}
|
|
86
|
-
_this.hideDrawer();
|
|
87
|
-
};
|
|
88
|
-
_this.renderSelectButton = function (_ref2) {
|
|
89
|
-
var _ref2$confirm = _ref2.confirm,
|
|
90
|
-
confirm = _ref2$confirm === void 0 ? false : _ref2$confirm,
|
|
91
|
-
_ref2$text = _ref2.text,
|
|
92
|
-
textSource = _ref2$text === void 0 ? '选择' : _ref2$text,
|
|
93
|
-
_ref2$icon = _ref2.icon,
|
|
94
|
-
iconSource = _ref2$icon === void 0 ? iconBuilder["import"]() : _ref2$icon,
|
|
95
|
-
_ref2$handleData = _ref2.handleData,
|
|
96
|
-
handleData = _ref2$handleData === void 0 ? null : _ref2$handleData,
|
|
97
|
-
_ref2$showIcon = _ref2.showIcon,
|
|
98
|
-
showIcon = _ref2$showIcon === void 0 ? true : _ref2$showIcon;
|
|
99
|
-
return buildButton(_objectSpread2({}, {
|
|
100
|
-
confirm: confirm,
|
|
101
|
-
size: 'small',
|
|
102
|
-
icon: iconSource || iconBuilder["import"](),
|
|
103
|
-
text: textSource || '选择',
|
|
104
|
-
showIcon: showIcon,
|
|
105
|
-
handleClick: function handleClick() {
|
|
106
|
-
return _this.selectRecord({
|
|
107
|
-
handleData: handleData || null
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}));
|
|
111
|
-
};
|
|
112
|
-
return _this;
|
|
113
|
-
}
|
|
114
|
-
_createClass(SinglePageSelectDrawer, null, [{
|
|
115
|
-
key: "getDerivedStateFromProps",
|
|
116
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
117
|
-
return _get(_getPrototypeOf(SinglePageSelectDrawer), "getDerivedStateFromProps", this).call(this, nextProps, prevState);
|
|
118
|
-
}
|
|
119
|
-
}]);
|
|
120
|
-
return SinglePageSelectDrawer;
|
|
121
|
-
}(SinglePageDrawer);
|
|
122
|
-
SinglePageDrawer.defaultProps = {
|
|
123
|
-
width: 820
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export { SinglePageSelectDrawer as default };
|