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,7 +96,13 @@
|
|||
},
|
||||
rules (){
|
||||
this.setRules();
|
||||
}
|
||||
},
|
||||
required (n, o) {
|
||||
this.isRequired = n;
|
||||
if (o && !n) {
|
||||
this.resetField();
|
||||
}
|
||||
},
|
||||
},
|
||||
inject: ['FormInstance'],
|
||||
computed: {
|
||||
|
|
Loading…
Add table
Reference in a new issue