Skip to content

Commit 6821eac

Browse files
committed
fix[complexTable]: fixed export_json_to_excel bug
1 parent cc5e62d commit 6821eac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/example/table/complexTable.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ export default {
335335
const tHeader = ['timestamp', 'title', 'type', 'importance', 'status']
336336
const filterVal = ['timestamp', 'title', 'type', 'importance', 'status']
337337
const data = this.formatJson(filterVal, this.list)
338-
excel.export_json_to_excel(tHeader, data, 'table-list')
338+
excel.export_json_to_excel({
339+
header: tHeader,
340+
data,
341+
filename: 'table-list'
342+
})
339343
this.downloadLoading = false
340344
})
341345
},

0 commit comments

Comments
 (0)