Merge pull request #233 from esymeptoo/master
perf: watch required in form-item when required changes #234
This commit is contained in:
commit
f1be389f6d
1 changed files with 7 additions and 1 deletions
|
@ -96,8 +96,14 @@
|
||||||
},
|
},
|
||||||
rules (){
|
rules (){
|
||||||
this.setRules();
|
this.setRules();
|
||||||
|
},
|
||||||
|
required (n, o) {
|
||||||
|
this.isRequired = n;
|
||||||
|
if (o && !n) {
|
||||||
|
this.resetField();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
},
|
||||||
inject: ['FormInstance'],
|
inject: ['FormInstance'],
|
||||||
computed: {
|
computed: {
|
||||||
classes () {
|
classes () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue