add digitalFlopToFixed configuration
This commit is contained in:
parent
ae3345bd95
commit
b18962855c
|
@ -78,6 +78,11 @@ export default {
|
||||||
fontSize: 25,
|
fontSize: 25,
|
||||||
fill: '#fff'
|
fill: '#fff'
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description Digital flop toFixed
|
||||||
|
* @type {Number}
|
||||||
|
*/
|
||||||
|
digitalFlopToFixed: 0,
|
||||||
/**
|
/**
|
||||||
* @description CRender animationCurve
|
* @description CRender animationCurve
|
||||||
* @type {String}
|
* @type {String}
|
||||||
|
@ -107,7 +112,7 @@ export default {
|
||||||
|
|
||||||
if (!mergedConfig) return {}
|
if (!mergedConfig) return {}
|
||||||
|
|
||||||
const { digitalFlopStyle, data } = mergedConfig
|
const { digitalFlopStyle, digitalFlopToFixed, data } = mergedConfig
|
||||||
|
|
||||||
const value = data.map(({ value }) => value)
|
const value = data.map(({ value }) => value)
|
||||||
|
|
||||||
|
@ -118,7 +123,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
content: '{nt}%',
|
content: '{nt}%',
|
||||||
number: [percent],
|
number: [percent],
|
||||||
style: digitalFlopStyle
|
style: digitalFlopStyle,
|
||||||
|
toFixed: digitalFlopToFixed
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ringName () {
|
ringName () {
|
||||||
|
|
Loading…
Reference in New Issue