no message
Former-commit-id: c8291a3b11dcc4e483d630c40fce766ce98efae7 Former-commit-id: f11fd198063fee861695ad877c720d238c86a666 Former-commit-id: 9d665898e829d4a1aa36c2b0cb56addb22b9d1aa
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import Csv from './_csv'
|
import Csv from './_csv'
|
||||||
import ExportCsv from './_export-csv'
|
import ExportCsv from './_export-csv'
|
||||||
import * as Excel from './_export2Excel'
|
import * as Excel from './_export2Excel'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
install (Vue, options) {
|
install (Vue, options) {
|
||||||
Vue.prototype.$export = {
|
Vue.prototype.$export = {
|
||||||
@@ -28,7 +29,9 @@ export default {
|
|||||||
// 导出 Excel
|
// 导出 Excel
|
||||||
excel () {
|
excel () {
|
||||||
const tHeader = ['Id', 'Title', 'Author', 'Readings', 'Date']
|
const tHeader = ['Id', 'Title', 'Author', 'Readings', 'Date']
|
||||||
const data = []
|
const data = [
|
||||||
|
['1', 'name']
|
||||||
|
]
|
||||||
Excel.export_json_to_excel(tHeader, data, 'demo')
|
Excel.export_json_to_excel(tHeader, data, 'demo')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user