From 14395c17bbcea282547ed58e92260be078695f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Sun, 11 Feb 2018 11:43:28 +0800 Subject: [PATCH] no message Former-commit-id: c8291a3b11dcc4e483d630c40fce766ce98efae7 Former-commit-id: f11fd198063fee861695ad877c720d238c86a666 Former-commit-id: 9d665898e829d4a1aa36c2b0cb56addb22b9d1aa --- src/plugin/export/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugin/export/index.js b/src/plugin/export/index.js index 732a9131..fc3a6ed1 100644 --- a/src/plugin/export/index.js +++ b/src/plugin/export/index.js @@ -2,6 +2,7 @@ import Csv from './_csv' import ExportCsv from './_export-csv' import * as Excel from './_export2Excel' + export default { install (Vue, options) { Vue.prototype.$export = { @@ -28,7 +29,9 @@ export default { // 导出 Excel excel () { const tHeader = ['Id', 'Title', 'Author', 'Readings', 'Date'] - const data = [] + const data = [ + ['1', 'name'] + ] Excel.export_json_to_excel(tHeader, data, 'demo') } }