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