add digitalFlopToFixed configuration
This commit is contained in:
		| @@ -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 () { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 JM
					JM