From b18962855c2dbaa260617c0e5e9abd3941c7ad94 Mon Sep 17 00:00:00 2001 From: JM <743192023@qq.com> Date: Fri, 10 Jan 2020 14:28:22 +0800 Subject: [PATCH] add digitalFlopToFixed configuration --- src/components/activeRingChart/src/main.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/activeRingChart/src/main.vue b/src/components/activeRingChart/src/main.vue index 63e75ef..fe6a6bf 100644 --- a/src/components/activeRingChart/src/main.vue +++ b/src/components/activeRingChart/src/main.vue @@ -78,6 +78,11 @@ export default { fontSize: 25, fill: '#fff' }, + /** + * @description Digital flop toFixed + * @type {Number} + */ + digitalFlopToFixed: 0, /** * @description CRender animationCurve * @type {String} @@ -107,7 +112,7 @@ export default { if (!mergedConfig) return {} - const { digitalFlopStyle, data } = mergedConfig + const { digitalFlopStyle, digitalFlopToFixed, data } = mergedConfig const value = data.map(({ value }) => value) @@ -118,7 +123,8 @@ export default { return { content: '{nt}%', number: [percent], - style: digitalFlopStyle + style: digitalFlopStyle, + toFixed: digitalFlopToFixed } }, ringName () {