From 22111588976de090bec759ff53d68323bf223255 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 28 Jun 2018 14:23:51 +0800 Subject: [PATCH] Switch support global setting --- src/components/switch/switch.vue | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) 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