Compare commits

..

No commits in common. "main" and "v0.0.11" have entirely different histories.

4 changed files with 0 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
.idea

View File

@ -70,7 +70,6 @@ func (e *Exporter) export(sheetIndex int) error {
if err != nil {
return err
}
e.preLocation = nil // 每次导出前清空上一个单元格位置否则导出其他sheet时会导致位置错位
sheet := e.Sheets[sheetIndex]
if len(e.Titles) > 0 {
e.SetTitle(sheet)

View File

@ -36,12 +36,10 @@ func TestMain(t *testing.T) {
},
}
exporter := export.DefaultExporter()
exporter.Sheets = []string{"Sheet1", "Sheet2"}
exporter.Data = &data
exporter.Titles = nil
exporter.File = "test6.xlsx"
exporter.Path = "./"
err := exporter.Export(0)
fmt.Println(err)
exporter.Export(1)
}

Binary file not shown.