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 +