提交 98f02eff 编写于 作者: Q qiang

fix(App): question/124703

上级 51223cb8
......@@ -228,6 +228,7 @@ function useValueSync(
watch(() => props.modelValue, valueChangeFn)
watch(() => props.value, valueChangeFn)
const triggerInputFn = throttle((event: Event, detail: InputEventDetail) => {
valueChangeFn.cancel()
emit('update:modelValue', detail.value)
emit('update:value', detail.value)
trigger('input', event, detail)
......
......@@ -3013,6 +3013,7 @@ function useValueSync(props2, state, emit2, trigger) {
vue.watch(() => props2.modelValue, valueChangeFn);
vue.watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
valueChangeFn.cancel();
emit2("update:modelValue", detail.value);
emit2("update:value", detail.value);
trigger("input", event, detail);
......
......@@ -7913,6 +7913,7 @@ function useValueSync(props2, state2, emit2, trigger) {
watch(() => props2.modelValue, valueChangeFn);
watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
valueChangeFn.cancel();
emit2("update:modelValue", detail.value);
emit2("update:value", detail.value);
trigger("input", event, detail);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册