Bug Fixes: parseInt precision lost
This commit is contained in:
parent
6467bd516f
commit
81b8bef8e1
|
@ -118,7 +118,7 @@ export default {
|
||||||
|
|
||||||
const sum = value.reduce((all, v) => all + v, 0)
|
const sum = value.reduce((all, v) => all + v, 0)
|
||||||
|
|
||||||
const percent = parseInt(value[activeIndex] / sum * 100) || 0
|
const percent = parseFloat(value[activeIndex] / sum * 100) || 0
|
||||||
|
|
||||||
return {
|
return {
|
||||||
content: '{nt}%',
|
content: '{nt}%',
|
||||||
|
|
Loading…
Reference in New Issue