提交 624524ac 编写于 作者: D dolymood

refactor(validator): model value watch use sync

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