antd-management-fast-framework 1.12.30 → 1.12.31
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/utils/actionAssist.js +4 -2
- package/es/utils/dva.d.ts +31 -0
- package/es/utils/dva.js +56 -0
- package/package.json +2 -2
package/es/utils/actionAssist.js
CHANGED
|
@@ -238,7 +238,7 @@ function _actionCore() {
|
|
|
238
238
|
}), data),
|
|
239
239
|
remoteListData = _list$data$extra$data.list,
|
|
240
240
|
remoteData = _list$data$extra$data.data,
|
|
241
|
-
remoteExtraData = _list$data$extra$data.
|
|
241
|
+
remoteExtraData = _list$data$extra$data.extra;
|
|
242
242
|
|
|
243
243
|
var messageText = successMessage;
|
|
244
244
|
|
|
@@ -251,7 +251,9 @@ function _actionCore() {
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
(0, _tools.
|
|
254
|
+
if (!(0, _tools.stringIsNullOrWhiteSpace)(messageText)) {
|
|
255
|
+
(0, _tools.notifySuccess)(messageText);
|
|
256
|
+
}
|
|
255
257
|
|
|
256
258
|
if ((0, _tools.isFunction)(successCallback)) {
|
|
257
259
|
successCallback({
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 占位函数
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export function empty(): {};
|
|
8
|
+
export namespace reducerCommonNameCollection {
|
|
9
|
+
const handleCommonData: string;
|
|
10
|
+
const handleListData: string;
|
|
11
|
+
const handlePageListData: string;
|
|
12
|
+
}
|
|
13
|
+
export namespace reducerCommonCollection {
|
|
14
|
+
function handleCommonData(state: any, action: any): any;
|
|
15
|
+
function handleCommonData(state: any, action: any): any;
|
|
16
|
+
function handleListData(state: any, action: any): any;
|
|
17
|
+
function handleListData(state: any, action: any): any;
|
|
18
|
+
function handlePageListData(state: any, action: any): any;
|
|
19
|
+
function handlePageListData(state: any, action: any): any;
|
|
20
|
+
}
|
|
21
|
+
export namespace tacitlyState {
|
|
22
|
+
namespace data {
|
|
23
|
+
export const code: number;
|
|
24
|
+
export const message: string;
|
|
25
|
+
export const dataSuccess: boolean;
|
|
26
|
+
const data_1: {};
|
|
27
|
+
export { data_1 as data };
|
|
28
|
+
export const list: never[];
|
|
29
|
+
export const extra: {};
|
|
30
|
+
}
|
|
31
|
+
}
|
package/es/utils/dva.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.empty = empty;
|
|
7
|
+
exports.tacitlyState = exports.reducerCommonNameCollection = exports.reducerCommonCollection = void 0;
|
|
8
|
+
|
|
9
|
+
var _requestAssistor = require("./requestAssistor");
|
|
10
|
+
|
|
11
|
+
var _defaultSettingsSpecial = require("./defaultSettingsSpecial");
|
|
12
|
+
|
|
13
|
+
var reducerCommonNameCollection = {
|
|
14
|
+
handleCommonData: 'handleCommonData',
|
|
15
|
+
handleListData: 'handleListData',
|
|
16
|
+
handlePageListData: 'handlePageListData'
|
|
17
|
+
};
|
|
18
|
+
exports.reducerCommonNameCollection = reducerCommonNameCollection;
|
|
19
|
+
var reducerCommonCollection = {
|
|
20
|
+
handleCommonData: function handleCommonData(state, action) {
|
|
21
|
+
return (0, _requestAssistor.handleCommonDataAssist)(state, action);
|
|
22
|
+
},
|
|
23
|
+
handleListData: function handleListData(state, action) {
|
|
24
|
+
return (0, _requestAssistor.handleListDataAssist)(state, action);
|
|
25
|
+
},
|
|
26
|
+
handlePageListData: function handlePageListData(state, action) {
|
|
27
|
+
return (0, _requestAssistor.handlePageListDataAssist)(state, action);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* 初始化state
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
exports.reducerCommonCollection = reducerCommonCollection;
|
|
35
|
+
var tacitlyState = {
|
|
36
|
+
data: {
|
|
37
|
+
code: _defaultSettingsSpecial.defaultSettingsLayoutCustom.getApiSuccessCode(),
|
|
38
|
+
message: 'success',
|
|
39
|
+
dataSuccess: true,
|
|
40
|
+
data: {},
|
|
41
|
+
list: [],
|
|
42
|
+
extra: {}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 占位函数
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
exports.tacitlyState = tacitlyState;
|
|
53
|
+
|
|
54
|
+
function empty() {
|
|
55
|
+
return {};
|
|
56
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.31",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -170,5 +170,5 @@
|
|
|
170
170
|
"bugs": {
|
|
171
171
|
"url": "https://github.com/kityandhero/antd-management-fast-framework/issues"
|
|
172
172
|
},
|
|
173
|
-
"gitHead": "
|
|
173
|
+
"gitHead": "b79b8971e41ecd6e6ec7ddd3f6a1bc74489df92c"
|
|
174
174
|
}
|