这时候我们可以将标题写成数组的形式,设置不同样式达到想要的效果。
title: [
{
text: '我是',
right: '42', //距离
textStyle: {
fontSize: 30,
color: '#000',
},
},
{
text: '标题',
right: '30', //距离,可根据样式自行调整
top: '12', //距上面的距离
textStyle: {
fontSize: 12,
color: '#000',
},
},
],