
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
vxe-table-plugin-export-xlsx
Advanced tools
基于 vxe-table 的表格插件,支持导出 xlsx 格式,基于 exceljs 实现
对应 vxe-table v4 版本
npm install vxe-table vxe-table-plugin-export-xlsx exceljs
// ...
import { VxeUI } from 'vxe-table'
import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'
import ExcelJS from 'exceljs'
// ...
// 方式1:NPM 安装,注入 ExcelJS 对象
VxeUI.use(VXETablePluginExportXLSX, {
ExcelJS
})
// 方式2:CDN 安装,只要确保 window.ExcelJS 存在即可
// VxeUI.use(VXETablePluginExportXLSX)
<vxe-toolbar>
<template v-slot:buttons>
<vxe-button @click="exportEvent">导出.xlsx</vxe-button>
</template>
</vxe-toolbar>
<vxe-table
ref="xTable"
height="600"
:data="tableData">
<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>
export default {
data () {
return {
tableData: [
{ id: 100, name: 'test', age: 26, date: null },
{ id: 101, name: 'test1', age: 30, date: null },
{ id: 102, name: 'test2', age: 34, date: null }
]
}
},
methods: {
exportEvent() {
this.$refs.xTable.exportData({
filename: 'export',
sheetName: 'Sheet1',
type: 'xlsx'
})
}
}
}
Thank you to everyone who contributed to this project.
MIT © 2019-present, Xu Liangzhan
FAQs
基于 vxe-table 表格的扩展插件,支持导出 xlsx 格式
The npm package vxe-table-plugin-export-xlsx receives a total of 1,408 weekly downloads. As such, vxe-table-plugin-export-xlsx popularity was classified as popular.
We found that vxe-table-plugin-export-xlsx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.