From 6f11dd1b9b2419e9ec801cbe5b610c4299939b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Mon, 12 Feb 2018 18:25:17 +0800 Subject: [PATCH] no message Former-commit-id: e60136c9a66a0251aebf8f001a0d20bfc2af9276 Former-commit-id: 7f8aa0345693d68714632975b7640263cda38dde Former-commit-id: c24b9cd2deb563a520f52c948d8f9721cd71d10f --- src/pages/demo/plugins/export/txt.vue | 24 +++++++++++++++++ static/markdownFiles/article/插件 - 导出.md | 30 +++------------------ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/pages/demo/plugins/export/txt.vue b/src/pages/demo/plugins/export/txt.vue index 8c508da5..27c8e8e6 100644 --- a/src/pages/demo/plugins/export/txt.vue +++ b/src/pages/demo/plugins/export/txt.vue @@ -4,6 +4,30 @@ slot="header" title="导出文本"> + + +
+ 保存为 txt +
+ + diff --git a/static/markdownFiles/article/插件 - 导出.md b/static/markdownFiles/article/插件 - 导出.md index eea5615a..5bd16fc1 100644 --- a/static/markdownFiles/article/插件 - 导出.md +++ b/static/markdownFiles/article/插件 - 导出.md @@ -24,7 +24,7 @@ this.$export.csv({ columns, data }) - .then(data => { + .then(() => { // ...可选回调 }) ``` @@ -80,7 +80,7 @@ this.$export.excel({ columns, data }) - .then(data => { + .then(() => { // ...可选回调 }) ``` @@ -133,7 +133,7 @@ this.$export.excel({ columns, data }) - .then(data => { + .then(() => { // ...可选回调 }) ``` @@ -149,28 +149,4 @@ this.$export.excel({ 示例 ``` -const columns = [ - { - label: '姓名', - prop: 'name' - }, - { - label: '年龄', - prop: 'age' - } -] -const data = [ - { - name: 'lucy', - age: 24 - }, - { - name: 'bob', - age: 26 - } -] -this.$export.excel({ - columns, - data -}) ```