Merge pull request #233 from esymeptoo/master

perf: watch required in form-item when required changes #234
This commit is contained in:
Aresn 2019-12-16 15:33:19 +08:00 committed by GitHub
commit f1be389f6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,13 @@
}, },
rules (){ rules (){
this.setRules(); this.setRules();
} },
required (n, o) {
this.isRequired = n;
if (o && !n) {
this.resetField();
}
},
}, },
inject: ['FormInstance'], inject: ['FormInstance'],
computed: { computed: {