antd-management-fast-component 2.1.21 → 2.1.23
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/bases/AbstractComponent/index.d.ts +4 -2
- package/es/index.js +3 -3
- package/package.json +10 -11
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Refined PureComponent, it is usually used in load remote api scenarios
|
|
3
3
|
*/
|
|
4
4
|
export class AbstractComponent extends Component<any, any, any> {
|
|
5
|
-
static getDerivedStateFromProps(
|
|
5
|
+
static getDerivedStateFromProps(nextProperties: any, previousState: any): null;
|
|
6
6
|
constructor(properties: any);
|
|
7
7
|
mounted: boolean;
|
|
8
8
|
preventRender: boolean;
|
|
@@ -90,10 +90,12 @@ export class AbstractComponent extends Component<any, any, any> {
|
|
|
90
90
|
doWhenCatchError: (error: any, info: any) => void;
|
|
91
91
|
doWorkBeforeUnmount: () => void;
|
|
92
92
|
doWorkAfterUnmount: () => void;
|
|
93
|
-
dispatchApi: ({ type, payload, alias }: {
|
|
93
|
+
dispatchApi: ({ type, payload, alias, pretreatmentSuccessCallback, pretreatmentFailCallback, }: {
|
|
94
94
|
type: any;
|
|
95
95
|
payload: any;
|
|
96
96
|
alias?: string | undefined;
|
|
97
|
+
pretreatmentSuccessCallback?: null | undefined;
|
|
98
|
+
pretreatmentFailCallback?: null | undefined;
|
|
97
99
|
}) => any;
|
|
98
100
|
goToPath: (path: any, withProgress?: boolean) => void;
|
|
99
101
|
redirectToPath: (path: any, withProgress?: boolean) => void;
|