From b5e1430d3ccefb92a8daa5dc632603f720e9cc1e Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Thu, 31 Aug 2017 17:39:17 +0200 Subject: [PATCH] Fix rating when init value is decimal --- src/components/rate/rate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/rate/rate.vue b/src/components/rate/rate.vue index a8773d6b..d41f2b39 100644 --- a/src/components/rate/rate.vue +++ b/src/components/rate/rate.vue @@ -47,7 +47,7 @@ prefixCls: prefixCls, hoverIndex: -1, isHover: false, - isHalf: false, + isHalf: this.allowHalf && this.value % 1 == 0.5, currentValue: this.value }; }, @@ -127,4 +127,4 @@ } } }; - \ No newline at end of file +