From 710e3cbd3afec45dfc29b3a85a2e93d3d1b44ce7 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 5 Sep 2024 16:05:26 +0800 Subject: [PATCH] =?UTF-8?q?HL-5809=E5=A2=9E=E5=8A=A0=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E6=9F=A5=E8=AF=A2=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=82=E8=80=83=E5=A4=87=E6=B3=A8=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Search/src/Search.vue | 6 +++- .../inventoryManage/balanceSummary/index.vue | 31 ++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue index deea2f7a7..81f58b97d 100644 --- a/src/components/Search/src/Search.vue +++ b/src/components/Search/src/Search.vue @@ -71,7 +71,7 @@ const props = defineProps({ }, }) -const emit = defineEmits(['search', 'reset','onInput','onChange','onEnter','searchTableSuccess']) +const emit = defineEmits(['search', 'reset','onInput','onChange','onEnter','searchTableSuccess','onBlur']) const visible = ref(true) @@ -288,6 +288,9 @@ const setVisible = () => { const searchTableSuccess = (formField, searchField, val, type, row) => { emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row) } +const onBlur = async (field, e) => { + emit('onBlur', field, e) +} const Search = ref() onMounted(() => {}) defineExpose({setFormValues,search}) // 提供 open 方法,用于打开弹窗 @@ -312,6 +315,7 @@ defineExpose({setFormValues,search}) // 提供 open 方法,用于打开弹窗 @onChange="onChange" @onEnter="onEnter" @onSubmit="onSubmit" + @onBlur="onBlur" >