@hw-component/form 0.0.3-beta-v4 → 0.0.3-beta-v5
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.
|
@@ -178,6 +178,10 @@ var useValueChange = function useValueChange(params) {
|
|
|
178
178
|
onChange(newChangeVal, subItemOps);
|
|
179
179
|
};
|
|
180
180
|
useEffect(function () {
|
|
181
|
+
if (mode === "tags") {
|
|
182
|
+
setVal(value);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
181
185
|
if (options && value) {
|
|
182
186
|
setVal(function (oldVale) {
|
|
183
187
|
return matchNotFind(params, oldVale);
|
|
@@ -179,6 +179,10 @@ var useValueChange = function useValueChange(params) {
|
|
|
179
179
|
onChange(newChangeVal, subItemOps);
|
|
180
180
|
};
|
|
181
181
|
React.useEffect(function () {
|
|
182
|
+
if (mode === "tags") {
|
|
183
|
+
setVal(value);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
182
186
|
if (options && value) {
|
|
183
187
|
setVal(function (oldVale) {
|
|
184
188
|
return matchNotFind(params, oldVale);
|
package/package.json
CHANGED
|
@@ -138,6 +138,10 @@ export const useValueChange = (params: PartialHSelectProps) => {
|
|
|
138
138
|
onChange(newChangeVal, subItemOps);
|
|
139
139
|
};
|
|
140
140
|
useEffect(() => {
|
|
141
|
+
if (mode==="tags"){
|
|
142
|
+
setVal(value);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
141
145
|
if (options && value) {
|
|
142
146
|
setVal((oldVale) => {
|
|
143
147
|
return matchNotFind(params, oldVale);
|