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);