antd-management-fast-framework 1.9.17 → 1.9.39
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/configGroup/configGeneral.d.ts +47 -0
- package/es/configGroup/configGeneral.js +61 -0
- package/es/configGroup/themeCollection.d.ts +29 -0
- package/es/configGroup/themeCollection.js +117 -0
- package/es/configGroup/webpackPlugin.d.ts +11 -0
- package/es/configGroup/webpackPlugin.js +166 -0
- package/es/customComponents/PageLoading/index.d.ts +2 -0
- package/es/customComponents/PageLoading/index.js +13 -0
- package/es/framework/Base/index.d.ts +25 -2
- package/es/framework/Base/index.js +178 -11
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +1 -1
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +2 -2
- package/es/framework/Common/index.d.ts +18 -6
- package/es/framework/Common/index.js +263 -153
- package/es/framework/DataDrawer/Base/index.d.ts +1 -1
- package/es/framework/DataDrawer/Base/index.js +2 -2
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +2 -6
- package/es/framework/DataForm/BaseAddForm/index.js +42 -27
- package/es/framework/DataForm/BaseUpdateForm/index.js +42 -31
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +2 -2
- package/es/framework/DataListView/Base/index.d.ts +2 -1
- package/es/framework/DataListView/Base/index.js +9 -15
- package/es/framework/DataMenuContainer/index.d.ts +1 -1
- package/es/framework/DataMenuContainer/index.js +2 -2
- package/es/framework/DataModal/Base/index.d.ts +1 -1
- package/es/framework/DataModal/Base/index.js +13 -17
- package/es/framework/DataModal/BaseLoadModal/index.js +3 -11
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +1 -1
- package/es/framework/DataMultiPageView/MultiPage/index.js +3 -4
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +6 -10
- package/es/framework/DataOperation/BaseWindow/index.js +41 -30
- package/es/framework/DataSinglePageView/SinglePage/index.js +1 -3
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +2 -2
- package/es/framework/DataSingleView/DataCore/index.d.ts +1 -1
- package/es/framework/DataSingleView/DataCore/index.js +2 -2
- package/es/framework/DataTabContainer/index.js +2 -2
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +2 -1
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +3 -2
- package/es/utils/actionAssist.js +67 -54
- package/es/utils/authority.d.ts +4 -0
- package/es/utils/authority.js +42 -3
- package/es/utils/cacheAssist.d.ts +85 -0
- package/es/utils/cacheAssist.js +313 -0
- package/es/utils/constants.d.ts +1 -0
- package/es/utils/constants.js +2 -1
- package/es/utils/defaultSettingsSpecial.d.ts +1 -0
- package/es/utils/defaultSettingsSpecial.js +10 -0
- package/es/utils/globalStorageAssist.d.ts +2 -2
- package/es/utils/globalStorageAssist.js +2 -2
- package/es/utils/proLayoutCollection.js +14 -10
- package/es/utils/requestAssistor.d.ts +14 -14
- package/es/utils/requestAssistor.js +29 -6
- package/es/utils/tools.d.ts +1 -0
- package/es/utils/tools.js +6 -2
- package/package.json +13 -11
|
@@ -14,6 +14,8 @@ var _nprogress = _interopRequireDefault(require("nprogress"));
|
|
|
14
14
|
|
|
15
15
|
var _tools = require("./tools");
|
|
16
16
|
|
|
17
|
+
var _defaultSettingsSpecial = require("./defaultSettingsSpecial");
|
|
18
|
+
|
|
17
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
18
20
|
|
|
19
21
|
var proLayoutDefaultProps = {
|
|
@@ -39,18 +41,20 @@ var proLayoutDefaultProps = {
|
|
|
39
41
|
return /*#__PURE__*/_react["default"].createElement(_umi.Link, {
|
|
40
42
|
to: menuItemProps.path,
|
|
41
43
|
onClick: function onClick() {
|
|
42
|
-
if ((
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
if (_defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseNprogress()) {
|
|
45
|
+
if ((_nprogress["default"] || null) == null) {
|
|
46
|
+
var text = 'nprogress need install';
|
|
47
|
+
(0, _tools.showErrorMessage)({
|
|
48
|
+
message: text
|
|
49
|
+
});
|
|
50
|
+
}
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
_nprogress["default"].inc();
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
setTimeout(function () {
|
|
55
|
+
_nprogress["default"].done();
|
|
56
|
+
}, 400);
|
|
57
|
+
}
|
|
54
58
|
}
|
|
55
59
|
}, defaultDom);
|
|
56
60
|
}
|
|
@@ -40,20 +40,20 @@ export function pretreatmentRequestParams(params: any, customHandle: any): {};
|
|
|
40
40
|
export function handleCommonDataAssist(state: any, action: any, callback?: any): any;
|
|
41
41
|
export function handleListDataAssist(state: any, action: any, pretreatment?: any, callback?: any): any;
|
|
42
42
|
export function handlePageListDataAssist(state: any, action: any, pretreatment?: any, callback?: any): any;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}): Promise<any>;
|
|
43
|
+
/**
|
|
44
|
+
* begin request(remote request / local virtual requests)
|
|
45
|
+
* @param {*} api [string]: request address
|
|
46
|
+
* @param {*} params [object]: request params
|
|
47
|
+
* @param {*} method [string]: ’GET‘ or ’POST‘, default is ’POST‘
|
|
48
|
+
* @param {*} useVirtualRequest [bool]: whether to apply virtual requests
|
|
49
|
+
* @param {*} showUseVirtualRequestMessage [bool]: whether display virtual request message prompt
|
|
50
|
+
* @param {*} virtualSuccessResponse [object]: virtual request success response data
|
|
51
|
+
* @param {*} virtualFailResponse [object]: virtual request fail response data
|
|
52
|
+
* @param {*} virtualRequestResult [object]:mandatory set virtual request result, generally used to debug
|
|
53
|
+
* @param {*} virtualNeedAuthorize [object]:set virtual request whether check token, only check mull or empty, generally used to debug
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
export function request({ api, params, method, useVirtualRequest, showUseVirtualRequestMessage, virtualSuccessResponse, virtualFailResponse, virtualRequestResult, virtualNeedAuthorize, }: any): Promise<any>;
|
|
57
57
|
/**
|
|
58
58
|
* 获取配置的 api 版本号
|
|
59
59
|
*/
|
|
@@ -312,13 +312,16 @@ function handleCommonDataAssist(state, action) {
|
|
|
312
312
|
|
|
313
313
|
if ((0, _tools.isUndefined)(alias)) {
|
|
314
314
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
315
|
-
data: v
|
|
315
|
+
data: v,
|
|
316
|
+
fromRemote: true
|
|
316
317
|
});
|
|
317
318
|
}
|
|
318
319
|
|
|
319
320
|
var aliasData = {};
|
|
320
321
|
aliasData[alias] = v;
|
|
321
|
-
return _objectSpread(_objectSpread({}, state), aliasData)
|
|
322
|
+
return _objectSpread(_objectSpread(_objectSpread({}, state), aliasData), {}, {
|
|
323
|
+
fromRemote: true
|
|
324
|
+
});
|
|
322
325
|
}
|
|
323
326
|
|
|
324
327
|
function handleListDataAssist(state, action) {
|
|
@@ -334,13 +337,16 @@ function handleListDataAssist(state, action) {
|
|
|
334
337
|
|
|
335
338
|
if ((0, _tools.isUndefined)(alias)) {
|
|
336
339
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
337
|
-
data: v
|
|
340
|
+
data: v,
|
|
341
|
+
fromRemote: true
|
|
338
342
|
});
|
|
339
343
|
}
|
|
340
344
|
|
|
341
345
|
var aliasData = {};
|
|
342
346
|
aliasData[alias] = v;
|
|
343
|
-
return _objectSpread(_objectSpread({}, state), aliasData)
|
|
347
|
+
return _objectSpread(_objectSpread(_objectSpread({}, state), aliasData), {}, {
|
|
348
|
+
fromRemote: true
|
|
349
|
+
});
|
|
344
350
|
}
|
|
345
351
|
|
|
346
352
|
function handlePageListDataAssist(state, action) {
|
|
@@ -356,14 +362,31 @@ function handlePageListDataAssist(state, action) {
|
|
|
356
362
|
|
|
357
363
|
if ((0, _tools.isUndefined)(alias)) {
|
|
358
364
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
359
|
-
data: v
|
|
365
|
+
data: v,
|
|
366
|
+
fromRemote: true
|
|
360
367
|
});
|
|
361
368
|
}
|
|
362
369
|
|
|
363
370
|
var aliasData = {};
|
|
364
371
|
aliasData[alias] = v;
|
|
365
|
-
return _objectSpread(_objectSpread({}, state), aliasData)
|
|
372
|
+
return _objectSpread(_objectSpread(_objectSpread({}, state), aliasData), {}, {
|
|
373
|
+
fromRemote: true
|
|
374
|
+
});
|
|
366
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* begin request(remote request / local virtual requests)
|
|
378
|
+
* @param {*} api [string]: request address
|
|
379
|
+
* @param {*} params [object]: request params
|
|
380
|
+
* @param {*} method [string]: ’GET‘ or ’POST‘, default is ’POST‘
|
|
381
|
+
* @param {*} useVirtualRequest [bool]: whether to apply virtual requests
|
|
382
|
+
* @param {*} showUseVirtualRequestMessage [bool]: whether display virtual request message prompt
|
|
383
|
+
* @param {*} virtualSuccessResponse [object]: virtual request success response data
|
|
384
|
+
* @param {*} virtualFailResponse [object]: virtual request fail response data
|
|
385
|
+
* @param {*} virtualRequestResult [object]:mandatory set virtual request result, generally used to debug
|
|
386
|
+
* @param {*} virtualNeedAuthorize [object]:set virtual request whether check token, only check mull or empty, generally used to debug
|
|
387
|
+
* @returns
|
|
388
|
+
*/
|
|
389
|
+
|
|
367
390
|
|
|
368
391
|
function request(_x) {
|
|
369
392
|
return _request.apply(this, arguments);
|
package/es/utils/tools.d.ts
CHANGED
package/es/utils/tools.js
CHANGED
|
@@ -191,8 +191,12 @@ function getAppInitConfigData() {
|
|
|
191
191
|
var appInitConfig = _constants.appInitDefault;
|
|
192
192
|
|
|
193
193
|
if (isBrowser()) {
|
|
194
|
-
if ((window.
|
|
195
|
-
appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.
|
|
194
|
+
if ((window.appInitCustomLocal || null) != null) {
|
|
195
|
+
appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomLocal);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if ((window.appInitCustomRemote || null) != null) {
|
|
199
|
+
appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomRemote);
|
|
196
200
|
}
|
|
197
201
|
}
|
|
198
202
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.39",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ant-design/icons": "^4.7.0",
|
|
33
|
-
"@ant-design/pro-layout": "^6.
|
|
33
|
+
"@ant-design/pro-layout": "^6.31.2",
|
|
34
34
|
"@antv/data-set": "^0.11.8",
|
|
35
|
-
"antd": "^4.17.
|
|
35
|
+
"antd": "^4.17.1",
|
|
36
36
|
"array-move": "^4.0.0",
|
|
37
37
|
"bizcharts": "^4.1.14",
|
|
38
38
|
"classnames": "^2.3.1",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"lodash.isequal": "^4.5.0",
|
|
46
46
|
"memoize-one": "^6.0.0",
|
|
47
47
|
"moment": "^2.29.1",
|
|
48
|
+
"node-cache": "^5.1.2",
|
|
48
49
|
"nprogress": "^0.2.0",
|
|
49
50
|
"numeral": "^2.0.6",
|
|
50
51
|
"omit.js": "^2.0.2",
|
|
@@ -86,8 +87,8 @@
|
|
|
86
87
|
"@commitlint/cz-commitlint": "^15.0.0",
|
|
87
88
|
"@testing-library/react": "^12.1.2",
|
|
88
89
|
"@testing-library/react-hooks": "^7.0.2",
|
|
89
|
-
"@types/jest": "^27.0.
|
|
90
|
-
"@types/node": "^16.11.
|
|
90
|
+
"@types/jest": "^27.0.3",
|
|
91
|
+
"@types/node": "^16.11.10",
|
|
91
92
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
92
93
|
"@umijs/fabric": "^2.8.1",
|
|
93
94
|
"@umijs/test": "^3.5.20",
|
|
@@ -98,18 +99,18 @@
|
|
|
98
99
|
"body-parser": "^1.19.0",
|
|
99
100
|
"commitizen": "^4.2.4",
|
|
100
101
|
"cross-env": "^7.0.3",
|
|
101
|
-
"eslint": "^8.
|
|
102
|
-
"eslint-config-airbnb": "^19.0.
|
|
102
|
+
"eslint": "^8.3.0",
|
|
103
|
+
"eslint-config-airbnb": "^19.0.1",
|
|
103
104
|
"eslint-config-airbnb-typescript": "^16.0.0",
|
|
104
105
|
"eslint-config-prettier": "^8.3.0",
|
|
105
106
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
106
107
|
"eslint-plugin-import": "^2.25.3",
|
|
107
|
-
"eslint-plugin-jest": "^25.
|
|
108
|
+
"eslint-plugin-jest": "^25.3.0",
|
|
108
109
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
109
110
|
"eslint-plugin-prettier": "^4.0.0",
|
|
110
|
-
"eslint-plugin-react": "^7.27.
|
|
111
|
+
"eslint-plugin-react": "^7.27.1",
|
|
111
112
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
112
|
-
"eslint-plugin-unicorn": "^
|
|
113
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
113
114
|
"express": "^4.17.1",
|
|
114
115
|
"father-build": "^1.20.4",
|
|
115
116
|
"husky": "^7.0.4",
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
"import-sort-parser-typescript": "^6.0.0",
|
|
119
120
|
"import-sort-style-module": "^6.0.0",
|
|
120
121
|
"lerna": "^4.0.0",
|
|
121
|
-
"lint-staged": "^12.
|
|
122
|
+
"lint-staged": "^12.1.2",
|
|
122
123
|
"npm-run-all": "^4.1.5",
|
|
123
124
|
"pify": "^5.0.0",
|
|
124
125
|
"postcss": "^8.3.11",
|
|
@@ -147,6 +148,7 @@
|
|
|
147
148
|
"filesOther": [
|
|
148
149
|
"es",
|
|
149
150
|
"lib",
|
|
151
|
+
"src/configGroup",
|
|
150
152
|
"src/customComponents",
|
|
151
153
|
"src/framework",
|
|
152
154
|
"src/utils"
|