diff --git a/examples/routers/rate.vue b/examples/routers/rate.vue index 0584f61..d9ba197 100644 --- a/examples/routers/rate.vue +++ b/examples/routers/rate.vue @@ -1,25 +1,24 @@ \ No newline at end of file + } + diff --git a/src/components/rate/rate.vue b/src/components/rate/rate.vue index d41f2b3..9713757 100644 --- a/src/components/rate/rate.vue +++ b/src/components/rate/rate.vue @@ -47,7 +47,7 @@ prefixCls: prefixCls, hoverIndex: -1, isHover: false, - isHalf: this.allowHalf && this.value % 1 == 0.5, + isHalf: this.allowHalf && this.value.toString().indexOf('.') >= 0, currentValue: this.value }; }, -- libgit2 0.21.4