[🚀] v0.12.21

This commit is contained in:
2025-02-27 15:00:51 +08:00
parent 3e5f407402
commit 388efae2ca
7 changed files with 141 additions and 135 deletions

View File

@ -44,10 +44,10 @@ func Export(sheetName, filepath string, columns []ColumnOption, rows []map[strin
maxColumnRowNameLen := 1 + len(strconv.Itoa(len(rows)))
columnCount := len(columns)
if columnCount > maxCharCount {
maxColumnRowNameLen++
} else if columnCount > maxCharCount*maxCharCount {
if columnCount > maxCharCount*maxCharCount {
maxColumnRowNameLen += 2
} else if columnCount > maxCharCount {
maxColumnRowNameLen++
}
//标题