feat: up serachForm

This commit is contained in:
lilinyuan
2024-07-23 14:05:31 +08:00
parent ad7ca888a9
commit 7ee43a9b4d

View File

@@ -25,6 +25,7 @@
v-on="item.on || {}"
v-model="form[item.prop]"
@keyup.enter.native="getValues"
@change="elChange"
>
</component>
</template>
@@ -80,6 +81,12 @@ watchEffect(() => {
}
})
const elChange = () => {
setTimeout(() => {
getValues()
}, 500)
}
const getValues = () => {
emits('search', form.value)
return form.value