wargerm 0.7.79 → 0.7.80
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FC } from 'react';
|
2
2
|
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
3
3
|
export interface ICheckboxGroup extends CheckboxGroupProps {
|
4
|
-
request?: () => Promise<any>;
|
4
|
+
request?: (params: any) => Promise<any>;
|
5
5
|
valueEnum?: Record<string, any>;
|
6
6
|
params?: Record<string, any>;
|
7
7
|
onLoad?: (options: Record<string, any>[]) => void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FC } from 'react';
|
2
2
|
import { RadioGroupProps } from 'antd';
|
3
3
|
export interface IRadioGroup extends RadioGroupProps {
|
4
|
-
request?: () => Promise<any>;
|
4
|
+
request?: (params: any) => Promise<any>;
|
5
5
|
valueEnum?: Record<string, any>;
|
6
6
|
params?: Record<string, any>;
|
7
7
|
onLoad?: (options: Record<string, any>[]) => void;
|
@@ -3,7 +3,7 @@ import { OptionProps, SelectProps } from 'antd/es/select';
|
|
3
3
|
export interface IOptionProps extends OptionProps {
|
4
4
|
}
|
5
5
|
export interface ISelect extends SelectProps<any> {
|
6
|
-
request?: () => Promise<any>;
|
6
|
+
request?: (params: any) => Promise<any>;
|
7
7
|
valueEnum?: Record<string, any>;
|
8
8
|
params?: Record<string, any>;
|
9
9
|
onLoad?: (options: Record<string, any>[]) => void;
|
package/dist/index.esm.js
CHANGED
@@ -2967,7 +2967,7 @@ var WSelect = function WSelect(props) {
|
|
2967
2967
|
break;
|
2968
2968
|
}
|
2969
2969
|
_context.next = 3;
|
2970
|
-
return request();
|
2970
|
+
return request(params);
|
2971
2971
|
case 3:
|
2972
2972
|
res = _context.sent;
|
2973
2973
|
if (isMounted) {
|
@@ -3331,7 +3331,7 @@ var WRadioGroup = function WRadioGroup(props) {
|
|
3331
3331
|
break;
|
3332
3332
|
}
|
3333
3333
|
_context.next = 3;
|
3334
|
-
return request();
|
3334
|
+
return request(params);
|
3335
3335
|
case 3:
|
3336
3336
|
res = _context.sent;
|
3337
3337
|
if (isMounted) {
|
@@ -3400,7 +3400,7 @@ var WCheckboxGroup = function WCheckboxGroup(props) {
|
|
3400
3400
|
break;
|
3401
3401
|
}
|
3402
3402
|
_context.next = 3;
|
3403
|
-
return request();
|
3403
|
+
return request(params);
|
3404
3404
|
case 3:
|
3405
3405
|
res = _context.sent;
|
3406
3406
|
if (isMounted) {
|
package/dist/index.js
CHANGED
@@ -3011,7 +3011,7 @@ var WSelect = function WSelect(props) {
|
|
3011
3011
|
break;
|
3012
3012
|
}
|
3013
3013
|
_context.next = 3;
|
3014
|
-
return request();
|
3014
|
+
return request(params);
|
3015
3015
|
case 3:
|
3016
3016
|
res = _context.sent;
|
3017
3017
|
if (isMounted) {
|
@@ -3375,7 +3375,7 @@ var WRadioGroup = function WRadioGroup(props) {
|
|
3375
3375
|
break;
|
3376
3376
|
}
|
3377
3377
|
_context.next = 3;
|
3378
|
-
return request();
|
3378
|
+
return request(params);
|
3379
3379
|
case 3:
|
3380
3380
|
res = _context.sent;
|
3381
3381
|
if (isMounted) {
|
@@ -3444,7 +3444,7 @@ var WCheckboxGroup = function WCheckboxGroup(props) {
|
|
3444
3444
|
break;
|
3445
3445
|
}
|
3446
3446
|
_context.next = 3;
|
3447
|
-
return request();
|
3447
|
+
return request(params);
|
3448
3448
|
case 3:
|
3449
3449
|
res = _context.sent;
|
3450
3450
|
if (isMounted) {
|