update docs

This commit is contained in:
xuliangzhan
2024-06-18 16:13:42 +08:00
parent 5ad226ab6d
commit 047213273e
2 changed files with 5 additions and 5 deletions

View File

@@ -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'
// ...
// 方式1NPM 安装,注入 ExcelJS 对象
VXETable.use(VXETablePluginExportXLSX, {
VxeUI.use(VXETablePluginExportXLSX, {
ExcelJS
})
// 方式2CDN 安装,只要确保 window.ExcelJS 存在即可
// VXETable.use(VXETablePluginExportXLSX)
// VxeUI.use(VXETablePluginExportXLSX)
```
## Demo

View File

@@ -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": {