在fillColor
下面的此代码中适用于单元格。但是,如果单元格具有列,则该列不适用。
var dd = {
content: [{
table: {
width: ['*', "*"],
body: [
[{
text: "Some",
style: "bgRed"
}, {
text: "text"
}],
[{
columns: [{
text: "nested",
width: 'auto',
style: "bgRed"
}, {
text: " text"
}]
},
{
text: "Another text",
style: "bgRed"
}
]
]
}
}],
styles: {
bgRed: {
fillColor: 'red'
}
}
}
如何将fillColor
应用于列?