Skip to content

Commit

Permalink
fix(ruler): prop validator
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Apr 22, 2019
1 parent c0103bf commit d70f46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ruler/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
stepTextPosition: {
type: String,
default: 'top',
validate: val => ['top', 'bottom'].includes(val),
validator: val => !!~['top', 'bottom'].indexOf(val),
},
stepTextRender: {
type: Function,
Expand Down

0 comments on commit d70f46c

Please sign in to comment.