diff --git a/src/pages/demo/plugins/tableExport/demo.vue b/src/pages/demo/plugins/tableExport/demo.vue index eea29145..1a9366b7 100644 --- a/src/pages/demo/plugins/tableExport/demo.vue +++ b/src/pages/demo/plugins/tableExport/demo.vue @@ -18,6 +18,7 @@ :label="item.label"> + diff --git a/static/markdownFiles/article/插件 - 导出数据.md b/static/markdownFiles/article/插件 - 导出数据.md new file mode 100644 index 00000000..facf9e01 --- /dev/null +++ b/static/markdownFiles/article/插件 - 导出数据.md @@ -0,0 +1,17 @@ +# 导出数据 + +注册插件 + +``` +import pluginExport from '@/plugin/export' +Vue.use(pluginExport) +``` + +使用 + +``` +this.$export.csv({ + columns: this.table.columns, + data: this.table.data +}) +``` \ No newline at end of file