fix: render error when row element is empty #420

pr675
Hufe921 2 years ago
parent b486d35c1a
commit 8999f283bb

@ -1833,7 +1833,7 @@ export class Draw {
// 控件高亮
this.control.renderHighlightList(ctx, pageNo)
// 渲染元素
const index = rowList[0].startIndex
const index = rowList[0]?.startIndex
this.drawRow(ctx, {
elementList,
positionList,

@ -229,7 +229,7 @@ export class Position {
let startRowIndex = 0
for (let i = 0; i < pageRowList.length; i++) {
const rowList = pageRowList[i]
const startIndex = rowList[0].startIndex
const startIndex = rowList[0]?.startIndex
this.computePageRowPosition({
positionList: this.positionList,
rowList,

Loading…
Cancel
Save