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 -}) ```