no message
Former-commit-id: af0817f1aaed7ee7f6b79900eab8bcbb9c5c7315 Former-commit-id: 9f0a1ce82f06133c4c282a20f15b4d3ba67a0115 Former-commit-id: 7aac37b8fd5b662ad95f34e76ecea918c3ec1073
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// 库
|
// 库
|
||||||
import Csv from '@/utils/csv.js'
|
import Csv from './_csv'
|
||||||
import ExportCsv from '@/utils/export-csv.js'
|
import ExportCsv from './_export-csv'
|
||||||
export default {
|
export default {
|
||||||
install (Vue, options) {
|
install (Vue, options) {
|
||||||
// 导出
|
// 导出
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
# Vue.$export
|
# Vue.$export
|
||||||
|
|
||||||
> 数据导出功能
|
本框架集成了数据导出功能,并包装成插件
|
||||||
|
|
||||||
## 注册插件
|
## 注册插件
|
||||||
|
|
||||||
|
> 默认已经注册,可以直接使用
|
||||||
|
|
||||||
```
|
```
|
||||||
import pluginExport from '@/plugin/export'
|
import pluginExport from '@/plugin/export'
|
||||||
Vue.use(pluginExport)
|
Vue.use(pluginExport)
|
||||||
@@ -11,9 +13,9 @@ Vue.use(pluginExport)
|
|||||||
|
|
||||||
之后就可以在组件中使用 `this.$export` 来调用导出功能
|
之后就可以在组件中使用 `this.$export` 来调用导出功能
|
||||||
|
|
||||||
## $export.csv()
|
## Vue.$export.csv()
|
||||||
|
|
||||||
此方法将数据以 `CSV` 格式导出
|
此方法将数据以 `CSV` 格式导出,并且返回一个 `Promise` ,可以使用 `then` 回调
|
||||||
|
|
||||||
使用
|
使用
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user