antd-management-fast-framework 1.1.74 → 1.2.5
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/customComponents/AnimalBox/QueueBox/index.d.ts +0 -3
- package/es/customComponents/AnimalBox/QueueBox/index.js +9 -50
- package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +14 -0
- package/es/customComponents/AnimalBox/QueueListBox/index.js +117 -0
- package/es/customComponents/AnimalBox/{QueueBox → QueueListBox}/index.less +0 -0
- package/es/customComponents/DataPreviewDrawer/index.js +6 -6
- package/es/customComponents/FunctionComponent/index.d.ts +14 -3
- package/es/customComponents/FunctionComponent/index.js +348 -310
- package/es/customComponents/StandardTableCustom/index.d.ts +0 -5
- package/es/customComponents/StandardTableCustom/index.js +4 -9
- package/es/framework/Common/index.d.ts +14 -7
- package/es/framework/Common/index.js +213 -187
- package/es/framework/DataDrawer/Base/index.d.ts +2 -2
- package/es/framework/DataDrawer/Base/index.js +20 -8
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +1 -1
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -1
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +3 -3
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +1 -1
- package/es/framework/DataForm/BaseAddForm/index.d.ts +2 -2
- package/es/framework/DataForm/BaseAddForm/index.js +6 -6
- package/es/framework/DataListView/Base/index.d.ts +43 -34
- package/es/framework/DataListView/Base/index.js +371 -166
- package/es/framework/DataListView/Base/index.less +8 -1
- package/es/framework/DataListView/DensityAction/index.js +4 -4
- package/es/framework/DataMenuContainer/index.d.ts +1 -1
- package/es/framework/DataMenuContainer/index.js +1 -1
- package/es/framework/DataModal/Base/index.d.ts +3 -3
- package/es/framework/DataModal/Base/index.js +6 -6
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +1 -1
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +3 -3
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +2 -2
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +2 -2
- package/es/framework/DataMultiPageView/MultiPage/index.js +67 -164
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +2 -4
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +30 -83
- package/es/framework/DataOperation/Base/index.d.ts +2 -2
- package/es/framework/DataOperation/Base/index.js +5 -5
- package/es/framework/DataOperation/BaseWindow/index.d.ts +1 -1
- package/es/framework/DataOperation/BaseWindow/index.js +2 -2
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +0 -2
- package/es/framework/DataSinglePageView/SinglePage/index.js +10 -105
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +2 -2
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +25 -31
- package/es/framework/DataSingleView/DataCore/index.d.ts +4 -6
- package/es/framework/DataSingleView/DataCore/index.js +9 -17
- package/es/framework/DataSingleView/DataLoad/index.d.ts +1 -1
- package/es/framework/DataSingleView/DataLoad/index.js +2 -2
- package/es/framework/DataTabContainer/index.d.ts +13 -13
- package/es/framework/DataTabContainer/index.js +31 -31
- package/es/utils/constants.d.ts +60 -29
- package/es/utils/constants.js +336 -13
- package/es/utils/tools.js +2 -2
- package/lib/customComponents/AnimalBox/QueueBox/index.d.ts +0 -3
- package/lib/customComponents/AnimalBox/QueueBox/index.js +9 -50
- package/lib/customComponents/AnimalBox/QueueListBox/index.d.ts +14 -0
- package/lib/customComponents/AnimalBox/QueueListBox/index.js +117 -0
- package/lib/customComponents/AnimalBox/{QueueBox → QueueListBox}/index.less +0 -0
- package/lib/customComponents/DataPreviewDrawer/index.js +6 -6
- package/lib/customComponents/FunctionComponent/index.d.ts +14 -3
- package/lib/customComponents/FunctionComponent/index.js +348 -310
- package/lib/customComponents/StandardTableCustom/index.d.ts +0 -5
- package/lib/customComponents/StandardTableCustom/index.js +4 -9
- package/lib/framework/Common/index.d.ts +14 -7
- package/lib/framework/Common/index.js +213 -187
- package/lib/framework/DataDrawer/Base/index.d.ts +2 -2
- package/lib/framework/DataDrawer/Base/index.js +20 -8
- package/lib/framework/DataDrawer/BaseAddDrawer/index.js +1 -1
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -1
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +3 -3
- package/lib/framework/DataDrawer/BaseSaveDrawer/index.js +1 -1
- package/lib/framework/DataForm/BaseAddForm/index.d.ts +2 -2
- package/lib/framework/DataForm/BaseAddForm/index.js +6 -6
- package/lib/framework/DataListView/Base/index.d.ts +43 -34
- package/lib/framework/DataListView/Base/index.js +371 -166
- package/lib/framework/DataListView/Base/index.less +8 -1
- package/lib/framework/DataListView/DensityAction/index.js +4 -4
- package/lib/framework/DataMenuContainer/index.d.ts +1 -1
- package/lib/framework/DataMenuContainer/index.js +1 -1
- package/lib/framework/DataModal/Base/index.d.ts +3 -3
- package/lib/framework/DataModal/Base/index.js +6 -6
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +1 -1
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.js +3 -3
- package/lib/framework/DataModal/BaseUpdateTransferModal/index.js +2 -2
- package/lib/framework/DataMultiPageView/MultiPage/index.d.ts +2 -2
- package/lib/framework/DataMultiPageView/MultiPage/index.js +67 -164
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +2 -4
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.js +30 -83
- package/lib/framework/DataOperation/Base/index.d.ts +2 -2
- package/lib/framework/DataOperation/Base/index.js +5 -5
- package/lib/framework/DataOperation/BaseWindow/index.d.ts +1 -1
- package/lib/framework/DataOperation/BaseWindow/index.js +2 -2
- package/lib/framework/DataSinglePageView/SinglePage/index.d.ts +0 -2
- package/lib/framework/DataSinglePageView/SinglePage/index.js +10 -105
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +2 -2
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.js +25 -31
- package/lib/framework/DataSingleView/DataCore/index.d.ts +4 -6
- package/lib/framework/DataSingleView/DataCore/index.js +9 -17
- package/lib/framework/DataSingleView/DataLoad/index.d.ts +1 -1
- package/lib/framework/DataSingleView/DataLoad/index.js +2 -2
- package/lib/framework/DataTabContainer/index.d.ts +13 -13
- package/lib/framework/DataTabContainer/index.js +31 -31
- package/lib/utils/constants.d.ts +60 -29
- package/lib/utils/constants.js +336 -13
- package/lib/utils/tools.js +2 -2
- package/package.json +1 -1
- package/es/framework/DataMultiPageView/MultiPage/index.less +0 -7
- package/lib/framework/DataMultiPageView/MultiPage/index.less +0 -7
|
@@ -103,7 +103,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
103
103
|
|
|
104
104
|
_this = _super.call(this, props);
|
|
105
105
|
_this.loadDataAfterMount = false;
|
|
106
|
-
_this.
|
|
106
|
+
_this.resetDataAfterLoad = false;
|
|
107
107
|
_this.reloadWhenShow = true;
|
|
108
108
|
|
|
109
109
|
_this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
|
|
@@ -161,7 +161,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
161
161
|
_this.onClose();
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
_this.
|
|
164
|
+
_this.establishWrapperTypeConfig = function () {
|
|
165
165
|
return {
|
|
166
166
|
mode: _constants.contentConfig.wrapperType.drawer
|
|
167
167
|
};
|
|
@@ -176,26 +176,26 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
176
176
|
listViewMode = _this$state.listViewMode,
|
|
177
177
|
renderSearchForm = _this$state.renderSearchForm;
|
|
178
178
|
|
|
179
|
-
var extraAction = _this.
|
|
179
|
+
var extraAction = _this.renderExtraActionView();
|
|
180
180
|
|
|
181
181
|
var searchForm = _this.renderForm();
|
|
182
182
|
|
|
183
183
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
184
|
className: _index["default"].tableList,
|
|
185
|
-
style: listViewMode === _constants.
|
|
185
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
186
186
|
height: '100%',
|
|
187
187
|
overflow: 'hidden'
|
|
188
188
|
} : {}
|
|
189
189
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
190
|
className: _index["default"].containorBox,
|
|
191
|
-
style: listViewMode === _constants.
|
|
191
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
192
192
|
height: '100%',
|
|
193
193
|
overflow: 'hidden',
|
|
194
194
|
display: 'flex',
|
|
195
195
|
flexDirection: 'column'
|
|
196
196
|
} : {}
|
|
197
197
|
}, renderSearchForm && (searchForm || null) != null ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
-
style: listViewMode === _constants.
|
|
198
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
199
199
|
flex: 0
|
|
200
200
|
} : {}
|
|
201
201
|
}, /*#__PURE__*/_react["default"].createElement(_card["default"], {
|
|
@@ -212,7 +212,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
212
212
|
backgroundColor: '#f0f2f5'
|
|
213
213
|
}
|
|
214
214
|
})) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
215
|
-
style: listViewMode === _constants.
|
|
215
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
216
216
|
flex: 'auto',
|
|
217
217
|
overflow: 'hidden'
|
|
218
218
|
} : {}
|
|
@@ -226,7 +226,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
226
226
|
}, /*#__PURE__*/_react["default"].createElement(_tag["default"], {
|
|
227
227
|
color: "gold"
|
|
228
228
|
}, "\u5373\u5C06\u5237\u65B0")) : null))),
|
|
229
|
-
style: listViewMode === _constants.
|
|
229
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
230
230
|
height: '100%',
|
|
231
231
|
overflow: 'hidden',
|
|
232
232
|
display: 'flex',
|
|
@@ -251,7 +251,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
251
251
|
className: _index["default"].containorTable,
|
|
252
252
|
extra: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, extraAction, extraAction == null ? null : /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
|
253
253
|
type: "vertical"
|
|
254
|
-
}), _this.renderBatchAction(), listViewMode === _constants.
|
|
254
|
+
}), _this.renderBatchAction(), listViewMode === _constants.listViewConfig.viewMode.table ? /*#__PURE__*/_react["default"].createElement(_DensityAction["default"], {
|
|
255
255
|
tableSize: tableSize,
|
|
256
256
|
setTableSize: function setTableSize(key) {
|
|
257
257
|
_this.setTableSize(key);
|
|
@@ -266,7 +266,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
266
266
|
onClick: function onClick() {
|
|
267
267
|
_this.refreshData();
|
|
268
268
|
}
|
|
269
|
-
})), listViewMode === _constants.
|
|
269
|
+
})), listViewMode === _constants.listViewConfig.viewMode.table ? /*#__PURE__*/_react["default"].createElement(_ColumnSetting["default"], {
|
|
270
270
|
columns: _this.getColumn(),
|
|
271
271
|
columnsMap: _this.getColumnsMap(),
|
|
272
272
|
setColumnsMap: function setColumnsMap(e) {
|
|
@@ -277,18 +277,18 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
277
277
|
}
|
|
278
278
|
}) : null)
|
|
279
279
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
280
|
-
style: listViewMode === _constants.
|
|
280
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
281
281
|
height: '100%',
|
|
282
282
|
overflow: 'hidden',
|
|
283
283
|
display: 'flex',
|
|
284
284
|
flexDirection: 'column'
|
|
285
285
|
} : {}
|
|
286
286
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
287
|
-
style: listViewMode === _constants.
|
|
287
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
288
288
|
flex: 0
|
|
289
289
|
} : {}
|
|
290
290
|
}, _this.renderAboveTable()), /*#__PURE__*/_react["default"].createElement("div", {
|
|
291
|
-
style: listViewMode === _constants.
|
|
291
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
292
292
|
flex: 'auto',
|
|
293
293
|
overflow: 'hidden',
|
|
294
294
|
paddingTop: 5
|
|
@@ -302,7 +302,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
302
302
|
renderSearchForm = _this$state2.renderSearchForm;
|
|
303
303
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
304
304
|
className: _index["default"].contentContainor,
|
|
305
|
-
style: _objectSpread(_objectSpread(_objectSpread({}, listViewMode === _constants.
|
|
305
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
306
306
|
paddingBottom: 0,
|
|
307
307
|
height: '100%',
|
|
308
308
|
overflow: 'hidden'
|
|
@@ -320,7 +320,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
320
320
|
var listViewMode = _this.state.listViewMode;
|
|
321
321
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
322
322
|
className: _index["default"].mainContainor,
|
|
323
|
-
style: listViewMode === _constants.
|
|
323
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
324
324
|
height: '100%',
|
|
325
325
|
overflow: 'hidden'
|
|
326
326
|
} : {}
|
|
@@ -329,54 +329,48 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
329
329
|
|
|
330
330
|
_this.renderListView = function () {
|
|
331
331
|
var _this$state3 = _this.state,
|
|
332
|
-
metaOriginalData = _this$state3.metaOriginalData,
|
|
333
332
|
dataLoading = _this$state3.dataLoading,
|
|
334
333
|
listViewMode = _this$state3.listViewMode;
|
|
335
334
|
|
|
336
|
-
var
|
|
337
|
-
list: [],
|
|
338
|
-
pagination: {}
|
|
339
|
-
},
|
|
340
|
-
list = _ref.list;
|
|
335
|
+
var list = _this.establishViewDataSource();
|
|
341
336
|
|
|
342
337
|
var bottomBar = _this.renderListViewBottomBar();
|
|
343
338
|
|
|
344
339
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
345
|
-
style: listViewMode === _constants.
|
|
340
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
346
341
|
height: '100%',
|
|
347
342
|
overflow: 'hidden',
|
|
348
343
|
display: 'flex',
|
|
349
344
|
flexDirection: 'column'
|
|
350
345
|
} : {}
|
|
351
346
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
352
|
-
style: listViewMode === _constants.
|
|
347
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
353
348
|
flex: 'auto',
|
|
354
349
|
overflow: 'hidden'
|
|
355
350
|
} : {}
|
|
356
351
|
}, /*#__PURE__*/_react["default"].createElement(_list["default"], {
|
|
357
|
-
style: listViewMode === _constants.
|
|
352
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
358
353
|
height: '100%',
|
|
359
354
|
overflow: 'auto'
|
|
360
355
|
} : {},
|
|
361
356
|
loading: dataLoading,
|
|
362
357
|
itemLayout: _this.renderListViewItemLayout(),
|
|
363
|
-
dataSource: list
|
|
364
|
-
,
|
|
358
|
+
dataSource: list,
|
|
365
359
|
renderItem: function renderItem(item, index) {
|
|
366
360
|
return _this.renderListViewItem(item, index);
|
|
367
361
|
}
|
|
368
362
|
})), (bottomBar || null) == null ? null : /*#__PURE__*/_react["default"].createElement("div", {
|
|
369
|
-
style: listViewMode === _constants.
|
|
363
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
370
364
|
flex: 0
|
|
371
365
|
} : {}
|
|
372
366
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
373
|
-
style: listViewMode === _constants.
|
|
367
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
374
368
|
height: '100%',
|
|
375
369
|
display: 'flex',
|
|
376
370
|
justifyContent: 'space-between'
|
|
377
371
|
} : {}
|
|
378
372
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
379
|
-
style: listViewMode === _constants.
|
|
373
|
+
style: listViewMode === _constants.listViewConfig.viewMode.list ? {
|
|
380
374
|
flex: 'auto'
|
|
381
375
|
} : {}
|
|
382
376
|
}), bottomBar)));
|
|
@@ -403,7 +397,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
403
397
|
_this.state = _objectSpread(_objectSpread({}, s), {
|
|
404
398
|
visible: false,
|
|
405
399
|
reloadAnimalShow: false,
|
|
406
|
-
listViewMode: _constants.
|
|
400
|
+
listViewMode: _constants.listViewConfig.viewMode.table,
|
|
407
401
|
showListViewItemActionSelect: true
|
|
408
402
|
});
|
|
409
403
|
return _this;
|
|
@@ -428,7 +422,7 @@ var SinglePageDrawer = /*#__PURE__*/function (_SinglePage) {
|
|
|
428
422
|
bodyStyle: {
|
|
429
423
|
padding: 0
|
|
430
424
|
}
|
|
431
|
-
}, listViewMode === _constants.
|
|
425
|
+
}, listViewMode === _constants.listViewConfig.viewMode.list ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
432
426
|
style: {
|
|
433
427
|
height: 'calc(100vh - 55px)'
|
|
434
428
|
}
|
|
@@ -8,11 +8,9 @@ declare class DataCore extends BaseView {
|
|
|
8
8
|
afterSetFieldsValue: (v: any) => void;
|
|
9
9
|
getTargetForm: () => any;
|
|
10
10
|
pageHeaderLogo: () => JSX.Element;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
pageHeaderActionExtraEllipsis: () => null;
|
|
15
|
-
pageHeaderActionBack: () => JSX.Element | null;
|
|
11
|
+
establishPageHeaderActionExtraGroupConfig: () => null;
|
|
12
|
+
establishPageHeaderActionExtraEllipsisConfig: () => null;
|
|
13
|
+
buildPageHeaderActionBack: () => JSX.Element | null;
|
|
16
14
|
pageHeaderAction: () => JSX.Element;
|
|
17
15
|
buildFormLayout: () => string;
|
|
18
16
|
getFormClassName: () => null;
|
|
@@ -21,7 +19,7 @@ declare class DataCore extends BaseView {
|
|
|
21
19
|
renderMainTitle: () => JSX.Element;
|
|
22
20
|
renderFormWrapper: () => JSX.Element;
|
|
23
21
|
renderForm: () => JSX.Element;
|
|
24
|
-
|
|
22
|
+
establishCardCollectionConfig: () => null;
|
|
25
23
|
formContent: () => any;
|
|
26
24
|
render(): JSX.Element;
|
|
27
25
|
}
|
|
@@ -118,23 +118,15 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
_this.
|
|
121
|
+
_this.establishPageHeaderActionExtraGroupConfig = function () {
|
|
122
122
|
return null;
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
_this.
|
|
126
|
-
return _this.buildPageHeaderActionExtraGroup();
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
_this.buildPageHeaderActionExtraEllipsis = function () {
|
|
125
|
+
_this.establishPageHeaderActionExtraEllipsisConfig = function () {
|
|
130
126
|
return null;
|
|
131
127
|
};
|
|
132
128
|
|
|
133
|
-
_this.
|
|
134
|
-
return _this.buildPageHeaderActionExtraEllipsis();
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
_this.pageHeaderActionBack = function () {
|
|
129
|
+
_this.buildPageHeaderActionBack = function () {
|
|
138
130
|
var backPath = _this.state.backPath;
|
|
139
131
|
|
|
140
132
|
if (!_this.enableActionBack) {
|
|
@@ -167,11 +159,11 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
167
159
|
refreshing = _this$state.refreshing,
|
|
168
160
|
showReloadButton = _this$state.showReloadButton;
|
|
169
161
|
|
|
170
|
-
var
|
|
162
|
+
var actionExtraGroupConfig = _this.establishPageHeaderActionExtraGroupConfig();
|
|
171
163
|
|
|
172
|
-
var
|
|
164
|
+
var actionExtraEllipsisConfig = _this.establishPageHeaderActionExtraEllipsisConfig();
|
|
173
165
|
|
|
174
|
-
return /*#__PURE__*/_react["default"].createElement(_space["default"], null, (
|
|
166
|
+
return /*#__PURE__*/_react["default"].createElement(_space["default"], null, (actionExtraGroupConfig || null) != null ? (0, _FunctionComponent.buildButtonGroup)(actionExtraGroupConfig) : null, (actionExtraEllipsisConfig || null) != null ? (0, _FunctionComponent.buildDropdownEllipsis)(actionExtraEllipsisConfig) : null, _this.buildPageHeaderActionBack(), showReloadButton ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
175
167
|
placement: "top",
|
|
176
168
|
title: "\u5237\u65B0"
|
|
177
169
|
}, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
@@ -223,7 +215,7 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
223
215
|
metaOriginalData: metaOriginalData
|
|
224
216
|
});
|
|
225
217
|
|
|
226
|
-
var otherFormProps = _this.
|
|
218
|
+
var otherFormProps = _this.buildFormAdditionalConfig();
|
|
227
219
|
|
|
228
220
|
return /*#__PURE__*/_react["default"].createElement(_form["default"], _extends({
|
|
229
221
|
ref: _this.formRef,
|
|
@@ -233,12 +225,12 @@ var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
|
233
225
|
}, otherFormProps), _this.formContent());
|
|
234
226
|
};
|
|
235
227
|
|
|
236
|
-
_this.
|
|
228
|
+
_this.establishCardCollectionConfig = function () {
|
|
237
229
|
return null;
|
|
238
230
|
};
|
|
239
231
|
|
|
240
232
|
_this.formContent = function () {
|
|
241
|
-
return _this.
|
|
233
|
+
return _this.buildCardCollection(_this.establishCardCollectionConfig());
|
|
242
234
|
};
|
|
243
235
|
|
|
244
236
|
return _this;
|
|
@@ -36,7 +36,7 @@ declare class DataLoad extends DataCore {
|
|
|
36
36
|
metaExtra?: null | undefined;
|
|
37
37
|
metaOriginalData?: null | undefined;
|
|
38
38
|
}) => void;
|
|
39
|
-
|
|
39
|
+
fillData: ({ metaData, metaListData, metaExtra, metaOriginalData, }: {
|
|
40
40
|
metaData?: null | undefined;
|
|
41
41
|
metaListData?: any[] | undefined;
|
|
42
42
|
metaExtra?: null | undefined;
|
|
@@ -78,7 +78,7 @@ var DataLoad = /*#__PURE__*/function (_DataCore) {
|
|
|
78
78
|
metaExtra = _ref.metaExtra,
|
|
79
79
|
metaOriginalData = _ref.metaOriginalData;
|
|
80
80
|
|
|
81
|
-
_this.
|
|
81
|
+
_this.fillData({
|
|
82
82
|
metaData: metaData,
|
|
83
83
|
metaListData: metaListData,
|
|
84
84
|
metaExtra: metaExtra,
|
|
@@ -104,7 +104,7 @@ var DataLoad = /*#__PURE__*/function (_DataCore) {
|
|
|
104
104
|
metaOriginalData = _ref2$metaOriginalDat === void 0 ? null : _ref2$metaOriginalDat;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
_this.
|
|
107
|
+
_this.fillData = function (_ref3) {
|
|
108
108
|
var _ref3$metaData = _ref3.metaData,
|
|
109
109
|
metaData = _ref3$metaData === void 0 ? null : _ref3$metaData,
|
|
110
110
|
_ref3$metaListData = _ref3.metaListData,
|
|
@@ -5,33 +5,33 @@ declare class DataTabContainer extends DataSingleView {
|
|
|
5
5
|
adjustTabListAvailable: (tabListAvailable: any) => any;
|
|
6
6
|
getTabActiveKey: () => any;
|
|
7
7
|
onPageHeaderAvatarLoadErrorCallback: () => void;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
establishPageHeaderTagCollectionConfig: () => never[];
|
|
9
|
+
establishPageHeaderTagConfig: () => JSX.Element | null;
|
|
10
|
+
establishPageHeaderAvatarConfig: () => null;
|
|
11
|
+
establishPageHeaderTitlePrefix: () => string;
|
|
12
|
+
buildPageHeaderSubTitle: () => null;
|
|
13
|
+
establishPageHeaderContentGridConfig: () => never[];
|
|
14
|
+
establishPageHeaderContentCollectionGridConfig: () => {
|
|
15
15
|
type: string;
|
|
16
16
|
list: never[];
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
establishPageHeaderContentParagraphCollectionConfig: () => never[];
|
|
19
|
+
establishPageHeaderContentParagraphConfig: () => {
|
|
20
20
|
type: string;
|
|
21
21
|
list: never[];
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
establishPageHeaderContentActionCollectionConfig: () => never[];
|
|
24
|
+
establishPageHeaderContentActionConfig: () => {
|
|
25
25
|
type: string;
|
|
26
26
|
list: never[];
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
establishPageHeaderContentConfig: () => {
|
|
29
29
|
list: {
|
|
30
30
|
type: string;
|
|
31
31
|
list: never[];
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
establishPageHeaderExtraContentConfig: () => null;
|
|
35
35
|
getTabListAvailable: () => any;
|
|
36
36
|
buildOtherTabProps: () => {
|
|
37
37
|
type: string;
|
|
@@ -66,7 +66,7 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
|
|
|
66
66
|
_classCallCheck(this, DataTabContainer);
|
|
67
67
|
|
|
68
68
|
_this = _super.call(this, props);
|
|
69
|
-
_this.
|
|
69
|
+
_this.resetDataAfterLoad = false;
|
|
70
70
|
_this.tabList = [];
|
|
71
71
|
|
|
72
72
|
_this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
|
|
@@ -112,7 +112,7 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
|
|
|
112
112
|
return pathname.replace(/\//g, '-').replace("".concat(match.url.replace(/\//g, '-'), "-"), '').replace(/-/g, '/');
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
_this.
|
|
115
|
+
_this.fillInitialValuesAfterLoad = function (_ref) {
|
|
116
116
|
var _ref$metaData = _ref.metaData,
|
|
117
117
|
metaData = _ref$metaData === void 0 ? null : _ref$metaData,
|
|
118
118
|
_ref$metaListData = _ref.metaListData,
|
|
@@ -130,68 +130,68 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
|
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
_this.
|
|
133
|
+
_this.establishPageHeaderTagCollectionConfig = function () {
|
|
134
134
|
return [];
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
_this.
|
|
137
|
+
_this.establishPageHeaderTagConfig = function () {
|
|
138
138
|
return (0, _FunctionComponent.buildTagList)({
|
|
139
|
-
list: _this.
|
|
139
|
+
list: _this.establishPageHeaderTagCollectionConfig()
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
_this.
|
|
143
|
+
_this.establishPageHeaderAvatarConfig = function () {
|
|
144
144
|
return null;
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
_this.
|
|
147
|
+
_this.establishPageHeaderTitlePrefix = function () {
|
|
148
148
|
return '';
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
_this.
|
|
151
|
+
_this.buildPageHeaderSubTitle = function () {
|
|
152
152
|
return null;
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
_this.
|
|
155
|
+
_this.establishPageHeaderContentGridConfig = function () {
|
|
156
156
|
return [];
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
_this.
|
|
159
|
+
_this.establishPageHeaderContentCollectionGridConfig = function () {
|
|
160
160
|
return {
|
|
161
161
|
type: _constants.pageHeaderRenderType.descriptionGrid,
|
|
162
|
-
list: _this.
|
|
162
|
+
list: _this.establishPageHeaderContentGridConfig()
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
_this.
|
|
166
|
+
_this.establishPageHeaderContentParagraphCollectionConfig = function () {
|
|
167
167
|
return [];
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
_this.
|
|
170
|
+
_this.establishPageHeaderContentParagraphConfig = function () {
|
|
171
171
|
return {
|
|
172
172
|
type: _constants.pageHeaderRenderType.paragraph,
|
|
173
|
-
list: _this.
|
|
173
|
+
list: _this.establishPageHeaderContentParagraphCollectionConfig()
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
_this.
|
|
177
|
+
_this.establishPageHeaderContentActionCollectionConfig = function () {
|
|
178
178
|
return [];
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
-
_this.
|
|
181
|
+
_this.establishPageHeaderContentActionConfig = function () {
|
|
182
182
|
return {
|
|
183
183
|
type: _constants.pageHeaderRenderType.action,
|
|
184
|
-
list: _this.
|
|
184
|
+
list: _this.establishPageHeaderContentActionCollectionConfig()
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
_this.
|
|
188
|
+
_this.establishPageHeaderContentConfig = function () {
|
|
189
189
|
return {
|
|
190
|
-
list: [_this.
|
|
190
|
+
list: [_this.establishPageHeaderContentCollectionGridConfig(), _this.establishPageHeaderContentParagraphConfig(), _this.establishPageHeaderContentActionConfig()]
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
_this.
|
|
194
|
+
_this.establishPageHeaderExtraContentConfig = function () {
|
|
195
195
|
return null;
|
|
196
196
|
};
|
|
197
197
|
|
|
@@ -253,22 +253,22 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
|
|
|
253
253
|
var children = this.props.children;
|
|
254
254
|
var customTabActiveKey = this.state.customTabActiveKey;
|
|
255
255
|
var tabListAvailable = this.getTabListAvailable();
|
|
256
|
-
var avatarProps = showPageHeaderAvatar ? (0, _DecorateAvatar.decorateAvatar)(this.
|
|
256
|
+
var avatarProps = showPageHeaderAvatar ? (0, _DecorateAvatar.decorateAvatar)(this.establishPageHeaderAvatarConfig(), defaultAvatarIcon, showPageHeaderAvatar, dataLoading, reloading, avatarImageLoadResult, function () {
|
|
257
257
|
_this2.onPageHeaderAvatarLoadErrorCallback();
|
|
258
258
|
}) : null;
|
|
259
|
-
var
|
|
259
|
+
var pageHeaderContentConfig = this.establishPageHeaderContentConfig();
|
|
260
260
|
|
|
261
261
|
if (customTabActiveKey) {
|
|
262
262
|
return /*#__PURE__*/_react["default"].createElement(_proLayout.PageHeaderWrapper, {
|
|
263
263
|
className: _index["default"].customContainor,
|
|
264
264
|
avatar: avatarProps,
|
|
265
|
-
title: (0, _FunctionComponent.pageHeaderTitle)(this.getPageName(), this.
|
|
266
|
-
subTitle: this.
|
|
267
|
-
tags: (0, _FunctionComponent.
|
|
265
|
+
title: (0, _FunctionComponent.pageHeaderTitle)(this.getPageName(), this.establishPageHeaderTitlePrefix()),
|
|
266
|
+
subTitle: this.buildPageHeaderSubTitle(),
|
|
267
|
+
tags: (0, _FunctionComponent.buildPageHeaderTagWrapper)(this.establishPageHeaderTagConfig()),
|
|
268
268
|
extra: this.pageHeaderAction() // eslint-disable-next-line no-restricted-globals
|
|
269
269
|
,
|
|
270
270
|
tabActiveKey: this.getTabActiveKey(),
|
|
271
|
-
content: (0, _FunctionComponent.
|
|
271
|
+
content: (0, _FunctionComponent.buildPageHeaderContent)(pageHeaderContentConfig),
|
|
272
272
|
extraContent: (0, _FunctionComponent.pageHeaderExtraContent)(this.pageHeaderExtraContent()),
|
|
273
273
|
tabList: tabListAvailable // tabBarExtraContent={<Button>Extra Action</Button>}
|
|
274
274
|
,
|
|
@@ -283,14 +283,14 @@ var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
|
|
|
283
283
|
return /*#__PURE__*/_react["default"].createElement(_proLayout.PageHeaderWrapper, {
|
|
284
284
|
className: _index["default"].customContainor,
|
|
285
285
|
avatar: avatarProps,
|
|
286
|
-
title: (0, _FunctionComponent.pageHeaderTitle)(pageName, this.
|
|
287
|
-
subTitle: this.
|
|
288
|
-
tags: (0, _FunctionComponent.
|
|
286
|
+
title: (0, _FunctionComponent.pageHeaderTitle)(pageName, this.establishPageHeaderTitlePrefix()),
|
|
287
|
+
subTitle: this.buildPageHeaderSubTitle(),
|
|
288
|
+
tags: (0, _FunctionComponent.buildPageHeaderTagWrapper)(this.establishPageHeaderTagConfig()),
|
|
289
289
|
extra: this.pageHeaderAction() // eslint-disable-next-line no-restricted-globals
|
|
290
290
|
,
|
|
291
291
|
tabActiveKey: this.getTabActiveKey(),
|
|
292
|
-
content: (0, _FunctionComponent.
|
|
293
|
-
extraContent: (0, _FunctionComponent.pageHeaderExtraContent)(this.
|
|
292
|
+
content: (0, _FunctionComponent.buildPageHeaderContent)(pageHeaderContentConfig),
|
|
293
|
+
extraContent: (0, _FunctionComponent.pageHeaderExtraContent)(this.establishPageHeaderExtraContentConfig()),
|
|
294
294
|
tabList: tabListAvailable // tabBarExtraContent={<Button>Extra Action</Button>}
|
|
295
295
|
,
|
|
296
296
|
onTabChange: this.handleTabChange,
|
package/es/utils/constants.d.ts
CHANGED
|
@@ -93,10 +93,6 @@ export namespace datetimeFormat {
|
|
|
93
93
|
const monthDayHourMinute: string;
|
|
94
94
|
const monthDay: string;
|
|
95
95
|
}
|
|
96
|
-
export namespace listViewModeCollection {
|
|
97
|
-
const table: number;
|
|
98
|
-
const list: number;
|
|
99
|
-
}
|
|
100
96
|
export namespace selectModeCollection {
|
|
101
97
|
const drawer: number;
|
|
102
98
|
const modal: number;
|
|
@@ -130,29 +126,32 @@ export namespace pageHeaderRenderType {
|
|
|
130
126
|
const paragraph: string;
|
|
131
127
|
const action: string;
|
|
132
128
|
}
|
|
133
|
-
export namespace
|
|
134
|
-
namespace
|
|
135
|
-
const close: string;
|
|
136
|
-
const refresh: string;
|
|
137
|
-
const save: string;
|
|
129
|
+
export namespace listViewConfig {
|
|
130
|
+
namespace dataContainerExtraActionBuildType {
|
|
138
131
|
const generalButton: string;
|
|
139
|
-
const iconInfo: string;
|
|
140
132
|
const button: string;
|
|
133
|
+
const dropdown: string;
|
|
141
134
|
const dropdownButton: string;
|
|
142
135
|
const dropdownEllipsis: string;
|
|
143
|
-
const
|
|
136
|
+
const iconInfo: string;
|
|
137
|
+
const component: string;
|
|
144
138
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
const
|
|
149
|
-
const help: string;
|
|
139
|
+
namespace viewMode {
|
|
140
|
+
const table: number;
|
|
141
|
+
const list: number;
|
|
142
|
+
const cardCollectionView: number;
|
|
150
143
|
}
|
|
151
|
-
namespace
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
|
|
144
|
+
namespace tableSize {
|
|
145
|
+
const middle: string;
|
|
146
|
+
const small: string;
|
|
147
|
+
const large: string;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export namespace drawerConfig {
|
|
151
|
+
namespace bottomBarBuildType {
|
|
152
|
+
export const close: string;
|
|
153
|
+
export const refresh: string;
|
|
154
|
+
export const save: string;
|
|
156
155
|
const generalButton_1: string;
|
|
157
156
|
export { generalButton_1 as generalButton };
|
|
158
157
|
const iconInfo_1: string;
|
|
@@ -165,7 +164,39 @@ export namespace formContentConfig {
|
|
|
165
164
|
export { dropdownEllipsis_1 as dropdownEllipsis };
|
|
166
165
|
const dropdown_1: string;
|
|
167
166
|
export { dropdown_1 as dropdown };
|
|
168
|
-
|
|
167
|
+
const component_1: string;
|
|
168
|
+
export { component_1 as component };
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
export namespace cardConfig {
|
|
172
|
+
namespace renderType {
|
|
173
|
+
const normal: string;
|
|
174
|
+
const help: string;
|
|
175
|
+
}
|
|
176
|
+
namespace animalType {
|
|
177
|
+
const none: string;
|
|
178
|
+
const fade: string;
|
|
179
|
+
const queue: string;
|
|
180
|
+
}
|
|
181
|
+
namespace extraBuildType {
|
|
182
|
+
const refresh_1: string;
|
|
183
|
+
export { refresh_1 as refresh };
|
|
184
|
+
const save_1: string;
|
|
185
|
+
export { save_1 as save };
|
|
186
|
+
const generalButton_2: string;
|
|
187
|
+
export { generalButton_2 as generalButton };
|
|
188
|
+
const iconInfo_2: string;
|
|
189
|
+
export { iconInfo_2 as iconInfo };
|
|
190
|
+
const button_2: string;
|
|
191
|
+
export { button_2 as button };
|
|
192
|
+
const dropdownButton_2: string;
|
|
193
|
+
export { dropdownButton_2 as dropdownButton };
|
|
194
|
+
const dropdownEllipsis_2: string;
|
|
195
|
+
export { dropdownEllipsis_2 as dropdownEllipsis };
|
|
196
|
+
const dropdown_2: string;
|
|
197
|
+
export { dropdown_2 as dropdown };
|
|
198
|
+
const component_2: string;
|
|
199
|
+
export { component_2 as component };
|
|
169
200
|
}
|
|
170
201
|
namespace contentItemType {
|
|
171
202
|
const placeholder_1: string;
|
|
@@ -195,11 +226,11 @@ export namespace formContentConfig {
|
|
|
195
226
|
export const innerComponent: string;
|
|
196
227
|
const save_2: string;
|
|
197
228
|
export { save_2 as save };
|
|
198
|
-
const
|
|
199
|
-
export {
|
|
229
|
+
const button_3: string;
|
|
230
|
+
export { button_3 as button };
|
|
200
231
|
export const actionList: string;
|
|
201
|
-
const
|
|
202
|
-
export {
|
|
232
|
+
const component_3: string;
|
|
233
|
+
export { component_3 as component };
|
|
203
234
|
export const nowTime: string;
|
|
204
235
|
export const datePicker: string;
|
|
205
236
|
export const jsonView: string;
|
|
@@ -209,7 +240,7 @@ export namespace formContentConfig {
|
|
|
209
240
|
export { divider_1 as divider };
|
|
210
241
|
}
|
|
211
242
|
}
|
|
212
|
-
export namespace
|
|
243
|
+
export namespace searchCardConfig {
|
|
213
244
|
export namespace contentItemType_1 {
|
|
214
245
|
const input_1: string;
|
|
215
246
|
export { input_1 as input };
|
|
@@ -223,8 +254,8 @@ export namespace searchFormContentConfig {
|
|
|
223
254
|
export { onlyShowInput_1 as onlyShowInput };
|
|
224
255
|
const innerComponent_1: string;
|
|
225
256
|
export { innerComponent_1 as innerComponent };
|
|
226
|
-
const
|
|
227
|
-
export {
|
|
257
|
+
const component_4: string;
|
|
258
|
+
export { component_4 as component };
|
|
228
259
|
const datePicker_1: string;
|
|
229
260
|
export { datePicker_1 as datePicker };
|
|
230
261
|
export const customRangePicker: string;
|