feat: up serachForm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user