{"id":20414455,"url":"https://github.com/x-extends/vxe-table-plugin-export-xlsx","last_synced_at":"2025-10-08T10:47:16.635Z","repository":{"id":48169172,"uuid":"219504653","full_name":"x-extends/vxe-table-plugin-export-xlsx","owner":"x-extends","description":"🔨 基于 vxe-table 的表格插件，支持导出 xlsx 格式","archived":false,"fork":false,"pushed_at":"2024-12-03T13:23:27.000Z","size":341,"stargazers_count":42,"open_issues_count":17,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T17:02:48.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x-extends.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-04T13:11:15.000Z","updated_at":"2024-12-20T06:44:51.000Z","dependencies_parsed_at":"2024-03-30T06:21:26.550Z","dependency_job_id":"c5006eb3-7348-40cc-b238-744b143303af","html_url":"https://github.com/x-extends/vxe-table-plugin-export-xlsx","commit_stats":{"total_commits":125,"total_committers":3,"mean_commits":"41.666666666666664","dds":0.09599999999999997,"last_synced_commit":"0a80c1acf038a59b12b7e5889395b5c0d1ca62c0"},"previous_names":["xuliangzhan/vxe-table-plugin-export-xlsx"],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-export-xlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-export-xlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-export-xlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-extends%2Fvxe-table-plugin-export-xlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-extends","download_url":"https://codeload.github.com/x-extends/vxe-table-plugin-export-xlsx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T06:10:08.865Z","updated_at":"2025-10-08T10:47:11.582Z","avatar_url":"https://github.com/x-extends.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vxe-table-plugin-export-xlsx\n\n[![gitee star](https://gitee.com/x-extends/vxe-table-plugin-export-xlsx/badge/star.svg?theme=dark)](https://gitee.com/x-extends/vxe-table-plugin-export-xlsx/stargazers)\n[![npm version](https://img.shields.io/npm/v/vxe-table-plugin-export-xlsx.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table-plugin-export-xlsx)\n[![npm downloads](https://img.shields.io/npm/dm/vxe-table-plugin-export-xlsx.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-table-plugin-export-xlsx)\n[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)\n\n基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 的表格插件，支持导出 xlsx 格式，基于 [exceljs](https://github.com/exceljs/exceljs) 实现\n\n## Compatibility\n\n对应 vxe-table v4 版本  \n\n## Installing\n\n```shell\nnpm install vxe-table vxe-table-plugin-export-xlsx exceljs\n```\n\n```javascript\n// ...\nimport { VxeUI } from 'vxe-table'\nimport VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'\nimport ExcelJS from 'exceljs'\n// ...\n\n// 方式1：NPM 安装，注入 ExcelJS 对象\nVxeUI.use(VXETablePluginExportXLSX, {\n  ExcelJS\n})\n\n// 方式2：CDN 安装，只要确保 window.ExcelJS 存在即可\n// VxeUI.use(VXETablePluginExportXLSX)\n```\n\n## Demo\n\n```html\n\u003cvxe-toolbar\u003e\n  \u003ctemplate v-slot:buttons\u003e\n    \u003cvxe-button @click=\"exportEvent\"\u003e导出.xlsx\u003c/vxe-button\u003e\n  \u003c/template\u003e\n\u003c/vxe-toolbar\u003e\n\n\u003cvxe-table\n  ref=\"xTable\"\n  height=\"600\"\n  :data=\"tableData\"\u003e\n  \u003cvxe-column type=\"seq\" width=\"60\"\u003e\u003c/vxe-column\u003e\n  \u003cvxe-column field=\"name\" title=\"Name\"\u003e\u003c/vxe-column\u003e\n  \u003cvxe-column field=\"age\" title=\"Age\"\u003e\u003c/vxe-column\u003e\n  \u003cvxe-column field=\"date\" title=\"Date\"\u003e\u003c/vxe-column\u003e\n\u003c/vxe-table\u003e\n```\n\n```javascript\nexport default {\n  data () {\n    return {\n      tableData: [\n        { id: 100, name: 'test', age: 26, date: null },\n        { id: 101, name: 'test1', age: 30, date: null },\n        { id: 102, name: 'test2', age: 34, date: null }\n      ]\n    }\n  },\n  methods: {\n    exportEvent() {\n      this.$refs.xTable.exportData({\n        filename: 'export',\n        sheetName: 'Sheet1',\n        type: 'xlsx'\n      })\n    }\n  }\n}\n```\n\n## Contributors\n\nThank you to everyone who contributed to this project.\n\n[![vxe-table-plugin-export-xlsx](https://contrib.rocks/image?repo=x-extends/vxe-table-plugin-export-xlsx)](https://github.com/x-extends/vxe-table-plugin-export-xlsx/graphs/contributors)\n\n## License\n\n[MIT](LICENSE) © 2019-present, Xu Liangzhan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-extends%2Fvxe-table-plugin-export-xlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-extends%2Fvxe-table-plugin-export-xlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-extends%2Fvxe-table-plugin-export-xlsx/lists"}