feat: up serachForm
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
v-on="item.on || {}"
|
v-on="item.on || {}"
|
||||||
v-model="form[item.prop]"
|
v-model="form[item.prop]"
|
||||||
@keyup.enter.native="getValues"
|
@keyup.enter.native="getValues"
|
||||||
|
@change="elChange"
|
||||||
>
|
>
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
@@ -80,6 +81,12 @@ watchEffect(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const elChange = () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
getValues()
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
|
||||||
const getValues = () => {
|
const getValues = () => {
|
||||||
emits('search', form.value)
|
emits('search', form.value)
|
||||||
return form.value
|
return form.value
|
||||||
|
|||||||
Reference in New Issue
Block a user