From 9314ea2f2811ae48e8e5a564c1d05fcf855f89bc Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Tue, 15 Nov 2016 12:25:58 +0800 Subject: [PATCH] Switch: fix a 'width' attribute init bug --- packages/switch/src/component.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/switch/src/component.vue b/packages/switch/src/component.vue index ed2d3493c..49ab93f22 100644 --- a/packages/switch/src/component.vue +++ b/packages/switch/src/component.vue @@ -81,7 +81,9 @@ return { currentValue: this.value, coreWidth: this.width, - buttonStyle: {} + buttonStyle: { + transform: '' + } }; }, computed: {