mirror of
https://gitee.com/x-extends/vxe-table-plugin-export-xlsx.git
synced 2026-01-21 05:21:33 +08:00
update docs
This commit is contained in:
@@ -19,18 +19,18 @@ npm install vxe-table@next vxe-table-plugin-export-xlsx@next exceljs
|
||||
|
||||
```javascript
|
||||
// ...
|
||||
import VXETable from 'vxe-table'
|
||||
import { VxeUI } from 'vxe-table'
|
||||
import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'
|
||||
import ExcelJS from 'exceljs'
|
||||
// ...
|
||||
|
||||
// 方式1:NPM 安装,注入 ExcelJS 对象
|
||||
VXETable.use(VXETablePluginExportXLSX, {
|
||||
VxeUI.use(VXETablePluginExportXLSX, {
|
||||
ExcelJS
|
||||
})
|
||||
|
||||
// 方式2:CDN 安装,只要确保 window.ExcelJS 存在即可
|
||||
// VXETable.use(VXETablePluginExportXLSX)
|
||||
// VxeUI.use(VXETablePluginExportXLSX)
|
||||
```
|
||||
|
||||
## Demo
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vxe-table-plugin-export-xlsx",
|
||||
"version": "4.0.3",
|
||||
"version": "4.0.4",
|
||||
"description": "基于 vxe-table 表格的扩展插件,支持导出 xlsx 格式",
|
||||
"scripts": {
|
||||
"lib": "gulp build"
|
||||
@@ -50,7 +50,7 @@
|
||||
"prettier": "^2.1.2",
|
||||
"sass": "^1.55.0",
|
||||
"typescript": "^4.6.4",
|
||||
"vue": "^3.4.23",
|
||||
"vue": "^3.4.27",
|
||||
"vxe-table": "^4.6.17"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user