Commit cdeeeca4e536b8c63b620fd30e6b719c6118c671
1 parent
81b641ee
Spin support global setting
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/components/spin/spin.vue
@@ -20,7 +20,10 @@ | @@ -20,7 +20,10 @@ | ||
20 | props: { | 20 | props: { |
21 | size: { | 21 | size: { |
22 | validator (value) { | 22 | validator (value) { |
23 | - return oneOf(value, ['small', 'large']); | 23 | + return oneOf(value, ['small', 'large', 'default']); |
24 | + }, | ||
25 | + default () { | ||
26 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | ||
24 | } | 27 | } |
25 | }, | 28 | }, |
26 | fix: { | 29 | fix: { |