From f6ce1455da536ad2ee76190537c3a485a50bd5f6 Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Fri, 19 Dec 2025 13:21:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AAblu?= =?UTF-8?q?r=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/aboutTable/FormMessage.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/aboutTable/FormMessage.vue b/src/components/aboutTable/FormMessage.vue index dda72a2..3be5689 100644 --- a/src/components/aboutTable/FormMessage.vue +++ b/src/components/aboutTable/FormMessage.vue @@ -3,11 +3,11 @@ - + - + - + @@ -77,7 +77,7 @@ const props = defineProps({ }); const elform = ref(); const listQuery = ref({}); -const emits = defineEmits(["update:modelValue"]); +const emits = defineEmits(["update:modelValue", "blur"]); // 提交 const submit = (resfun) => { elform.value.validate((valid) => { @@ -101,7 +101,12 @@ const reset = () => { // 修改这里的watch逻辑,避免无限循环 let isUpdatingFromProps = false; - +const inputBlur = (e,item) => { + if(typeof item?.blur == 'function') { + item.blur(); + } + // emits('blur', e, item); +} watch(() => listQuery.value, (newVal) => { if (newVal && !isUpdatingFromProps) { emits("update:modelValue", newVal);