Skip to content

Commit 4d3dc3b

Browse files
committed
feat(validator): watch rules change to validate
1 parent bef09e6 commit 4d3dc3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/validator/validator.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
},
118118
sync: true
119119
},
120+
rules() {
121+
this.validate()
122+
},
120123
isDisabled(newVal) {
121124
if (!newVal && this.trigger && !this.validated) {
122125
this.validate()

0 commit comments

Comments
 (0)