mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-07 00:52:57 +08:00
精简excel导出
This commit is contained in:
@@ -39,7 +39,7 @@ func TestExport(t *testing.T) {
|
||||
}
|
||||
changeHead := map[string]string{"Id": "账号", "Name": "真实姓名"}
|
||||
//f, err := excel.NormalExport(testList, "Sheet1", "用户信息", "Id,Email,", true, true, changeHead)
|
||||
f, err := NormalDynamicExport(testList, "Sheet1", "用户信息", "", true, false, changeHead)
|
||||
f, err := NormalDynamicExport(testList, "Sheet1", "用户信息", changeHead)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user