add rowGap configuration
This commit is contained in:
parent
33456176f7
commit
ba90fb2faa
|
@ -53,6 +53,12 @@ export default {
|
||||||
* @example textAlign = 'center' | 'left' | 'right'
|
* @example textAlign = 'center' | 'left' | 'right'
|
||||||
*/
|
*/
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
/**
|
||||||
|
* @description rowGap
|
||||||
|
* @type {Number}
|
||||||
|
@default rowGap = 0
|
||||||
|
*/
|
||||||
|
rowGap: 0,
|
||||||
/**
|
/**
|
||||||
* @description Text style configuration
|
* @description Text style configuration
|
||||||
* @type {Object} {CRender Class Style}
|
* @type {Object} {CRender Class Style}
|
||||||
|
@ -124,7 +130,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getShape () {
|
getShape () {
|
||||||
const { number, content, toFixed, textAlign } = this.mergedConfig
|
const { number, content, toFixed, textAlign, rowGap } = this.mergedConfig
|
||||||
|
|
||||||
const [w, h] = this.renderer.area
|
const [w, h] = this.renderer.area
|
||||||
|
|
||||||
|
@ -137,7 +143,8 @@ export default {
|
||||||
number,
|
number,
|
||||||
content,
|
content,
|
||||||
toFixed,
|
toFixed,
|
||||||
position
|
position,
|
||||||
|
rowGap
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getStyle () {
|
getStyle () {
|
||||||
|
|
Loading…
Reference in New Issue