[🚀] v0.12.21
This commit is contained in:
1 parent
3e5f407402
commit
388efae2ca
7 files changed
+141
-135
No files matched your search
+3
-3
@@ -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++
|
||||
}
|
||||
|
||||
//标题
|
||||
|
||||
Reference in new issue
Block a user