- 表格-设置行高,用autoTable里styles的minCellHeight
autoTable(doc, {
head,
headStyles: {
fillColor: '#ffffff',
lineColor: '#000',
lineWidth: 0.2
},
body,
bodyStyles: {
lineColor: '#000',
lineWidth: 0.2
},
styles: {
font: 'shnormal',
textColor: '#000000',
// halign: 'center',
valign: 'middle',
minCellHeight: 10
},
theme: 'grid',
margin: [20, 15, 0, 15],
// tableWidth: 80
})