Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiiu committed Oct 24, 2023
1 parent 74b803e commit 16f3fa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/printer/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class Table extends React.Component {
heights: _.map(trRowSpan, tr => getHeight(tr))
}
})
// 需要判断一下tableData是否为空
if (!tableData.length) {
this.props.printerStore.setTableReady(this.props.name, true)
}
}

handleClick = e => {
Expand Down

0 comments on commit 16f3fa7

Please sign in to comment.