add number formatter
This commit is contained in:
parent
3d3de766e3
commit
5f3fdfc798
|
@ -67,6 +67,11 @@ export default {
|
||||||
fontSize: 30,
|
fontSize: 30,
|
||||||
fill: '#3de7c9'
|
fill: '#3de7c9'
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description Number formatter
|
||||||
|
* @type {Null|Function}
|
||||||
|
*/
|
||||||
|
formatter: undefined,
|
||||||
/**
|
/**
|
||||||
* @description CRender animationCurve
|
* @description CRender animationCurve
|
||||||
* @type {String}
|
* @type {String}
|
||||||
|
@ -130,7 +135,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getShape () {
|
getShape () {
|
||||||
const { number, content, toFixed, textAlign, rowGap } = this.mergedConfig
|
const { number, content, toFixed, textAlign, rowGap, formatter } = this.mergedConfig
|
||||||
|
|
||||||
const [w, h] = this.renderer.area
|
const [w, h] = this.renderer.area
|
||||||
|
|
||||||
|
@ -144,7 +149,8 @@ export default {
|
||||||
content,
|
content,
|
||||||
toFixed,
|
toFixed,
|
||||||
position,
|
position,
|
||||||
rowGap
|
rowGap,
|
||||||
|
formatter
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getStyle () {
|
getStyle () {
|
||||||
|
|
Loading…
Reference in New Issue