Former-commit-id: 07ab52d744dc139743c36ee025cfd2c939b9ac53 Former-commit-id: a539a37923e12827ab02b3778d95ec982070e6ff Former-commit-id: dd5eeefdaf05a8c728fe33dda5cc84e7e5f745f2
28 lines
447 B
Markdown
28 lines
447 B
Markdown
# 导出数据
|
|
|
|
## 使用
|
|
|
|
### 注册插件
|
|
|
|
```
|
|
import pluginExport from '@/plugin/export'
|
|
Vue.use(pluginExport)
|
|
```
|
|
|
|
### 导出 `CSV`
|
|
|
|
使用方法
|
|
|
|
```
|
|
this.$export.csv({
|
|
columns: this.table.columns,
|
|
data: this.table.data
|
|
})
|
|
```
|
|
|
|
参数
|
|
|
|
| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
|
|
| --- | --- | --- | --- | --- | --- |
|
|
| columns | 列 | 非 | Array | | 空数组 |
|
|
| data | 行数据 | 非 | Array | | 空数组 | |