EddieUp / antd-table-saveas-excel

antd table to excel
52 stars 13 forks source link

[bug] 宽度配置会设置到右侧的列上 #32

Open vaynevayne opened 11 months ago

vaynevayne commented 11 months ago

宽度应用错误:

   excel
        .drawCell(0, excel.currentRow, {
          hMerge: 17,
          vMerge: 1,
          value: gameName,
          style: {
            border: true,
            bold: true,
            v: 'center',
            h: 'center',
          },
        })

第一个表宽度应用正确, 但是后面的表宽度布局又错位了, 而且布局也不是需要的

     excel.addRow()
      excel.addCol()
      excel
        .drawCell(0, excel.currentRow, {
          hMerge: 17,
          vMerge: 1,
          value: gameName,
          style: {
            border: true,
            bold: true,
            v: 'center',
            h: 'center',
          },
        })

https://eddieup.github.io/antd-table-saveas-excel/4examples#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8D%95%E5%85%83%E6%A0%BC%E6%B8%B2%E6%9F%93