如何使用jsPDF-AutoTable从表格中删除水平线

问题描述 投票:-2回答:1

我如何在不删除jsPDF-AutoTable中所有行的左边框的情况下删除底边框?] >>

This is the result of the report that I designed with jsPDF-AutoTable

I want to remove the horizontal line to make it like this image

[如何在不删除jsPDF-AutoTable中所有行的左边框的情况下删除底部边框,这是我使用jsPDF-AutoTable设计的报告的结果,我想删除......]

< [
谢谢,我想我已经找到了解决方法

她正在wellDrowCell事件中我用这个代码画了一条线,然后取了每个单元格的坐标]

doc.line(x1,y1,x2,y2)

  1. x1> data.cell.x

      y1> data.cell.y + data.row.height
    1. x2> data.cell.x
    2. y1> data.cell.y`
    3. willDrawCell: (data) => { if (data.section == "body" && data.column.index != 0) { doc.setDrawColor(41, 128, 186) doc.setLineWidth(.5); doc.line(data.cell.x, data.cell.y + data.row.height, data.cell.x, data.cell.y); } }
javascript pdf jspdf jspdf-autotable
1个回答
0
投票
谢谢,我想我已经找到了解决方法
© www.soinside.com 2019 - 2024. All rights reserved.