From a9349aa4ba2c6345dce336cb2980310828d42aa4 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 3 May 2019 11:55:56 +0300 Subject: [PATCH] Refactor handlestyle method on Slider --- src/components/slider/Slider.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/slider/Slider.vue b/src/components/slider/Slider.vue index a64a0c039..b9783ef93 100644 --- a/src/components/slider/Slider.vue +++ b/src/components/slider/Slider.vue @@ -278,8 +278,9 @@ export default { handleStyle() { if (this.horizontal) return {'left': this.handlePosition + '%'}; - else if (this.vertical) + else return {'bottom': this.handlePosition + '%'}; + }, handlePosition() { if (this.value === 0)