vueless 0.0.358 → 0.0.360
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/package.json
CHANGED
|
@@ -282,8 +282,10 @@ function onUpdateModelValue(value) {
|
|
|
282
282
|
emit("update:modelValue", localValue.value);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
if (
|
|
286
|
-
|
|
285
|
+
if (value.length >= Number(props.minLength)) {
|
|
286
|
+
Number(props.minLength)
|
|
287
|
+
? setDebounce(() => emit("update:modelValue", localValue.value), Number(props.debounce))()
|
|
288
|
+
: value && emit("update:modelValue", localValue.value);
|
|
287
289
|
}
|
|
288
290
|
}
|
|
289
291
|
|
|
@@ -303,6 +305,7 @@ function onClickSearch() {
|
|
|
303
305
|
|
|
304
306
|
function onClickClear() {
|
|
305
307
|
localValue.value = "";
|
|
308
|
+
emit("update:modelValue", localValue.value);
|
|
306
309
|
emit("clear");
|
|
307
310
|
}
|
|
308
311
|
</script>
|