diff --git a/src/components/switch/switch.vue b/src/components/switch/switch.vue index 0780ed9..c279a4f 100644 --- a/src/components/switch/switch.vue +++ b/src/components/switch/switch.vue @@ -41,6 +41,9 @@ size: { validator (value) { return oneOf(value, ['large', 'small', 'default']); + }, + default () { + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, name: { -- libgit2 0.21.4