1
0
mirror of synced 2025-12-11 07:48:03 +08:00
This commit is contained in:
xuliangzhan
2021-04-07 19:36:02 +08:00
parent 8ce2b5ca4d
commit 8c8951ea2b
3 changed files with 9 additions and 12 deletions

View File

@@ -35,10 +35,10 @@ VXETable.use(VXETablePluginExportXLSX)
ref="xTable"
height="600"
:data="tableData">
<vxe-table-column type="index" width="60"></vxe-table-column>
<vxe-table-column field="name" title="Name"></vxe-table-column>
<vxe-table-column field="age" title="Age"></vxe-table-column>
<vxe-table-column field="date" title="Date"></vxe-table-column>
<vxe-column type="seq" width="60"></vxe-column>
<vxe-column field="name" title="Name"></vxe-column>
<vxe-column field="age" title="Age"></vxe-column>
<vxe-column field="date" title="Date"></vxe-column>
</vxe-table>
```
@@ -47,12 +47,9 @@ export default {
data () {
return {
tableData: [
{
id: 100,
name: 'test',
age: 26,
date: null
}
{ id: 100, name: 'test', age: 26, date: null },
{ id: 101, name: 'test1', age: 30, date: null },
{ id: 102, name: 'test2', age: 34, date: null }
]
}
},

View File

@@ -450,7 +450,7 @@ export const VXETablePluginExportXLSX = {
}
}
if (typeof window !== 'undefined' && window.VXETable) {
if (typeof window !== 'undefined' && window.VXETable && window.VXETable.use) {
window.VXETable.use(VXETablePluginExportXLSX)
}

View File

@@ -49,7 +49,7 @@
"prettier": "^2.1.2",
"typescript": "^4.0.5",
"vue": "^3.0.6",
"vxe-table": "^4.0.3",
"vxe-table": "^4.0.5",
"xe-utils": "^3.1.11"
},
"peerDependencies": {