no message
Former-commit-id: 3a952e5e9807d5563b87cf25a2f33dfd08cf4c09 Former-commit-id: 506c799e082633de94bc431551b6560187edc981 Former-commit-id: 116512b937a9387be5ffb0b4e8cad09468ecbe4d
This commit is contained in:
@@ -124,14 +124,14 @@ this.$export.excel({
|
||||
|
||||
## Vue.$export.txt()
|
||||
|
||||
此方法将数据以 `xlsx` 格式导出,并且返回一个 `Promise` 对象
|
||||
此方法将数据以 `txt` 格式导出,并且返回一个 `Promise` 对象
|
||||
|
||||
使用
|
||||
|
||||
```
|
||||
this.$export.excel({
|
||||
columns,
|
||||
data
|
||||
this.$export.txt({
|
||||
text: '文本内容',
|
||||
title: '文件名'
|
||||
})
|
||||
.then(() => {
|
||||
// ...可选回调
|
||||
@@ -142,11 +142,5 @@ this.$export.excel({
|
||||
|
||||
| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| columns | 列 | 非 | Array | | 空数组 |
|
||||
| data | 行数据 | 非 | Array | | 空数组 |
|
||||
| table | 文件名 | 非 | String | | table |
|
||||
|
||||
示例
|
||||
|
||||
```
|
||||
```
|
||||
| text | 文件内容 | 非 | String | | 空 |
|
||||
| title | 文件名 | 非 | String | | 文本 |
|
||||
|
||||
Reference in New Issue
Block a user