Commit d18a7ee861cb5a4fb85434f02d46621188f71a9c
1 parent
be2c3198
Input support global setting
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/components/input/input.vue
| @@ -90,6 +90,9 @@ | @@ -90,6 +90,9 @@ | ||
| 90 | size: { | 90 | size: { |
| 91 | validator (value) { | 91 | validator (value) { |
| 92 | return oneOf(value, ['small', 'large', 'default']); | 92 | return oneOf(value, ['small', 'large', 'default']); |
| 93 | + }, | ||
| 94 | + default () { | ||
| 95 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | ||
| 93 | } | 96 | } |
| 94 | }, | 97 | }, |
| 95 | placeholder: { | 98 | placeholder: { |