add rowGap configuration

This commit is contained in:
jiaming743 2020-05-03 20:15:28 +08:00
parent 33456176f7
commit ba90fb2faa
1 changed files with 9 additions and 2 deletions

View File

@ -53,6 +53,12 @@ export default {
* @example textAlign = 'center' | 'left' | 'right'
*/
textAlign: 'center',
/**
* @description rowGap
* @type {Number}
@default rowGap = 0
*/
rowGap: 0,
/**
* @description Text style configuration
* @type {Object} {CRender Class Style}
@ -124,7 +130,7 @@ export default {
})
},
getShape () {
const { number, content, toFixed, textAlign } = this.mergedConfig
const { number, content, toFixed, textAlign, rowGap } = this.mergedConfig
const [w, h] = this.renderer.area
@ -137,7 +143,8 @@ export default {
number,
content,
toFixed,
position
position,
rowGap
}
},
getStyle () {