This commit is contained in:
Mrx
2026-05-27 13:00:51 +08:00
parent b7fb2a73c9
commit 5cee8ff035
15 changed files with 569 additions and 146 deletions

View File

@@ -11,10 +11,11 @@ import (
// ExportConfig 定义了导出所需的配置
type ExportConfig struct {
SheetName string // 工作表名称
Headers []string // 表头
Data [][]interface{} // 导出数据
ColumnWidths []float64 // 列宽
SheetName string // 工作表名称
Headers []string // 表头
Data [][]interface{} // 导出数据
ColumnWidths []float64 // 列宽
MergedRegions [][]int // 合并单元格配置 [[startRow, startCol, endRow, endCol], ...]
}
// ExportManager 负责管理不同格式的导出