|
|
@ -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" |
|
|
|
> |
|
|
|
<template #action> |
|
|
|
<div v-if="layout === 'inline'"> |
|
|
|