6 import drawRow from './drawRow';
10 * @param {object} border
11 * @param {Array} columnSizeIndex
12 * @param {Array} rowSpanIndex
13 * @param {Function} drawHorizontalLine
14 * @param {boolean} singleLine
17 export default (rows, border, columnSizeIndex, rowSpanIndex, drawHorizontalLine, singleLine) => {
22 const rowCount = rows.length;
28 if (drawHorizontalLine(realRowIndex, rowCount)) {
29 output += drawBorderTop(columnSizeIndex, border);
32 rows.forEach((row, index0) => {
33 output += drawRow(row, border);
36 rowHeight = rowSpanIndex[realRowIndex];
43 if (!singleLine && rowHeight === 0 && index0 !== rowCount - 1 && drawHorizontalLine(realRowIndex, rowCount)) {
44 output += drawBorderJoin(columnSizeIndex, border);
48 if (drawHorizontalLine(realRowIndex, rowCount)) {
49 output += drawBorderBottom(columnSizeIndex, border);