diff --git a/src/components/spin/spin.vue b/src/components/spin/spin.vue index 9cb683c..20dcc6b 100644 --- a/src/components/spin/spin.vue +++ b/src/components/spin/spin.vue @@ -20,7 +20,10 @@ props: { size: { validator (value) { - return oneOf(value, ['small', 'large']); + return oneOf(value, ['small', 'large', 'default']); + }, + default () { + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, fix: { -- libgit2 0.21.4