From b324bb4d2e19b106833bb03a0b4e67630b99fa0b Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 4 Sep 2017 15:42:18 +0800 Subject: [PATCH] fixed #1761 --- examples/routers/rate.vue | 27 +++++++++++++-------------- src/components/rate/rate.vue | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) 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