Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExcelQuick ¶
type ExcelQuick struct { //路由头部 C any //前置错误日志 LogErr string //缓冲名称组 // eg: fmt.Sprint("erp_permanent_assets_", orgID, "_end_", endAtCarbon.Time.Format("2006-01-02")) FileParams string //文件名称 // eg: fmt.Sprint("固定资产", endAtCarbon.Time.Format("2006"), "年度变动情况.xlsx") FileName string //模板路径 // 该路径位于builds的excel目录下 // eg: fmt.Sprint("erp", CoreFile.Sep, "permanent_assets", CoreFile.Sep, "sort_change_analysis.xlsx") TemplatePath string //是否覆盖样式 // 仅可用于单个表,如果是多个表,请手动调用QuickSetStyle方法 NeedReplaceStyle bool //覆盖样式参考表名称 // eg: "",给空则采用默认表名称Sheet1 ReplaceStyleSheet string //覆盖样式参考位置 // eg: "A1" ReplaceStyleRef string //覆盖样式起点位置 // eg: fmt.Sprint("A", 1) ReplaceStyleStart string //覆盖样式结束位置 // eg: fmt.Sprint("O", rowStep) ReplaceStyleEnd string //Excel数据对象 ExcelObj *excelize.File //缓冲数据保留秒 CacheSaveTime int }
func (*ExcelQuick) QuickInsertCol ¶
func (t *ExcelQuick) QuickInsertCol(sheetName string, data map[string]string)
QuickInsertCol 快入给单元格写入数据
func (*ExcelQuick) QuickSetStyle ¶
func (t *ExcelQuick) QuickSetStyle(sheetName string, defaultStyle string, areaStart string, areaEnd string)
QuickSetStyle 快速设置样式
Click to show internal directories.
Click to hide internal directories.