Skip to content

Commit

Permalink
chore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung committed Oct 15, 2018
1 parent f3b87a4 commit 3af8966
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/form/src/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@
},
clearValidate(props = []) {
const fields = props.length
? (typeof props === 'string'
? this.fields.filter(field => props === field.prop)
: this.fields.filter(field => props.indexOf(field.prop) > -1)
)
: this.fields;
? (typeof props === 'string'
? this.fields.filter(field => props === field.prop)
: this.fields.filter(field => props.indexOf(field.prop) > -1)
) : this.fields;
fields.forEach(field => {
field.clearValidate();
});
Expand Down

0 comments on commit 3af8966

Please sign in to comment.