提交 69bcf993 编写于 作者: D dolymood

refactor(validator): model value watch use sync

上级 e60ee693
......@@ -104,15 +104,18 @@
value(newVal) {
this.valid = newVal
},
targetModel() {
if (this.isDisabled) {
return
}
if (!this.dirty) {
this.dirty = true
}
targetModel: {
handler() {
if (this.isDisabled) {
return
}
if (!this.dirty) {
this.dirty = true
}
this.validate()
this.validate()
},
sync: true
},
isDisabled(newVal) {
if (!newVal && this.trigger && !this.validated) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册