reactor:refine code&&demo
This commit is contained in:
2
src/vendor/Export2Excel.js
vendored
2
src/vendor/Export2Excel.js
vendored
@@ -155,6 +155,6 @@ export function export_json_to_excel(th, jsonData, defaultTitle) {
|
||||
wb.Sheets[ws_name] = ws;
|
||||
|
||||
var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'});
|
||||
var title = defaultTitle || '列表'
|
||||
var title = defaultTitle || 'excel-list'
|
||||
saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), title + ".xlsx")
|
||||
}
|
||||
|
Reference in New Issue
Block a user