wargerm 0.3.10 → 0.3.11
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/dist/components/Select/index.d.ts +1 -0
- package/dist/index.esm.js +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
@@ -5,6 +5,7 @@ export interface IOptionProps extends OptionProps {
|
|
5
5
|
export interface ISelect extends SelectProps<any> {
|
6
6
|
request?: () => Promise<any>;
|
7
7
|
valueEnum?: Record<string, any>;
|
8
|
+
params?: Record<string, any>;
|
8
9
|
onLoad?: (options: Record<string, any>[]) => void;
|
9
10
|
}
|
10
11
|
export declare type IWSelectComponent = React.FC<ISelect> & {
|
package/dist/index.esm.js
CHANGED
@@ -649,7 +649,7 @@ function FrameBox(_ref) {
|
|
649
649
|
}), children);
|
650
650
|
}
|
651
651
|
|
652
|
-
var _excluded$2 = ["request", "valueEnum", "onLoad", "children"],
|
652
|
+
var _excluded$2 = ["request", "valueEnum", "onLoad", "children", "params"],
|
653
653
|
_excluded2 = ["children"];
|
654
654
|
|
655
655
|
var WSelect = function WSelect(props) {
|
@@ -657,6 +657,7 @@ var WSelect = function WSelect(props) {
|
|
657
657
|
valueEnum = props.valueEnum,
|
658
658
|
onLoad = props.onLoad,
|
659
659
|
children = props.children,
|
660
|
+
params = props.params,
|
660
661
|
extraProps = _objectWithoutProperties(props, _excluded$2);
|
661
662
|
|
662
663
|
var _useState = useState([]),
|
@@ -737,7 +738,7 @@ var WSelect = function WSelect(props) {
|
|
737
738
|
|
738
739
|
onLoad && onLoad(options);
|
739
740
|
setValueEnumList(valueEnumNode);
|
740
|
-
}, [JSON.stringify(resList), JSON.stringify(request)]);
|
741
|
+
}, [JSON.stringify(resList), JSON.stringify(request), JSON.stringify(params || {})]);
|
741
742
|
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
742
743
|
};
|
743
744
|
|
package/dist/index.js
CHANGED
@@ -683,7 +683,7 @@ function FrameBox(_ref) {
|
|
683
683
|
}), children);
|
684
684
|
}
|
685
685
|
|
686
|
-
var _excluded$2 = ["request", "valueEnum", "onLoad", "children"],
|
686
|
+
var _excluded$2 = ["request", "valueEnum", "onLoad", "children", "params"],
|
687
687
|
_excluded2 = ["children"];
|
688
688
|
|
689
689
|
var WSelect = function WSelect(props) {
|
@@ -691,6 +691,7 @@ var WSelect = function WSelect(props) {
|
|
691
691
|
valueEnum = props.valueEnum,
|
692
692
|
onLoad = props.onLoad,
|
693
693
|
children = props.children,
|
694
|
+
params = props.params,
|
694
695
|
extraProps = _objectWithoutProperties(props, _excluded$2);
|
695
696
|
|
696
697
|
var _useState = React.useState([]),
|
@@ -771,7 +772,7 @@ var WSelect = function WSelect(props) {
|
|
771
772
|
|
772
773
|
onLoad && onLoad(options);
|
773
774
|
setValueEnumList(valueEnumNode);
|
774
|
-
}, [JSON.stringify(resList), JSON.stringify(request)]);
|
775
|
+
}, [JSON.stringify(resList), JSON.stringify(request), JSON.stringify(params || {})]);
|
775
776
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
776
777
|
};
|
777
778
|
|