perf: updateValue

This commit is contained in:
feng
2025-03-05 10:18:57 +08:00
committed by feng626
parent d809a13b67
commit 702d26822b

View File

@@ -168,11 +168,7 @@ export default {
* @param {All} options.value 表单数据
*/
updateValue({ id, value }) {
if (!value) return
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