Commit 9b353c406939849ba9e0d38a76a2dd1e662ac0dd

Authored by Aresn
Committed by GitHub
2 parents 5bb00e78 b5e1430d

Merge pull request #1761 from SergioCrisostomo/fix-half-rates

Fix rating when init value is decimal
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/components/rate/rate.vue
... ... @@ -47,7 +47,7 @@
47 47 prefixCls: prefixCls,
48 48 hoverIndex: -1,
49 49 isHover: false,
50   - isHalf: false,
  50 + isHalf: this.allowHalf && this.value % 1 == 0.5,
51 51 currentValue: this.value
52 52 };
53 53 },
... ... @@ -127,4 +127,4 @@
127 127 }
128 128 }
129 129 };
130   -</script>
131 130 \ No newline at end of file
  131 +</script>
... ...