Fixed: Form update Validated

This commit is contained in:
zhaojisen
2025-03-03 11:07:26 +08:00
committed by ZhaoJiSen
parent 2a0f6dc1df
commit 880c44fdaa

View File

@@ -169,6 +169,9 @@ export default {
*/
updateValue({ id, value }) {
this.value = { ...this.value, [id]: value }
this.$nextTick(() => {
this.$refs.elForm.validateField(id)
})
},
/**
* @return {object} key is item's id, value is item's value