From 22c88c4ea53e2de742bbcd6865d46e15b4619864 Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Wed, 6 May 2020 14:13:34 +0800 Subject: [PATCH] add showOriginValue configuration --- src/components/activeRingChart/src/main.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/activeRingChart/src/main.vue b/src/components/activeRingChart/src/main.vue index de81744..00f543f 100644 --- a/src/components/activeRingChart/src/main.vue +++ b/src/components/activeRingChart/src/main.vue @@ -96,11 +96,11 @@ export default { */ animationFrame: 50, /** - * @description CRender showOriginalValue + * @description showOriginValue * @type {Boolean} - * @default showOriginalValue = false + * @default showOriginValue = false */ - showOriginalValue: false + showOriginValue: false }, mergedConfig: null, @@ -122,14 +122,14 @@ export default { digitalFlopStyle, digitalFlopToFixed, data, - showOriginalValue + showOriginValue } = mergedConfig const value = data.map(({ value }) => value) let displayValue - if (showOriginalValue) { + if (showOriginValue) { displayValue = value[activeIndex] } else { const sum = value.reduce((all, v) => all + v, 0) @@ -140,7 +140,7 @@ export default { } return { - content: showOriginalValue ? '{nt}' : '{nt}%', + content: showOriginValue ? '{nt}' : '{nt}%', number: [displayValue], style: digitalFlopStyle, toFixed: digitalFlopToFixed