Commit be2c3198312d592cfc0a1c6744e49a51e0a76063
1 parent
48611626
Select support global setting
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/components/select/select.vue
@@ -187,6 +187,9 @@ | @@ -187,6 +187,9 @@ | ||
187 | size: { | 187 | size: { |
188 | validator (value) { | 188 | validator (value) { |
189 | return oneOf(value, ['small', 'large', 'default']); | 189 | return oneOf(value, ['small', 'large', 'default']); |
190 | + }, | ||
191 | + default () { | ||
192 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | ||
190 | } | 193 | } |
191 | }, | 194 | }, |
192 | labelInValue: { | 195 | labelInValue: { |