releases 4.0.6

This commit is contained in:
xuliangzhan
2024-09-28 13:00:42 +08:00
parent 852e4d95c2
commit 2e9ca4f389
2 changed files with 9 additions and 5 deletions

View File

@@ -53,9 +53,13 @@ function getFooterData (opts: VxeTablePropTypes.ExportConfig, footerData: any[][
return footerFilterMethod ? footerData.filter((items, index) => footerFilterMethod({ items, $rowIndex: index })) : footerData
}
function getFooterCellValue ($table: VxeTableConstructor, opts: VxeTablePropTypes.ExportConfig, rows: any[], column: VxeTableDefines.ColumnInfo) {
const cellValue = getCellLabel(column, rows[$table.getVMColumnIndex(column)])
return cellValue
function getFooterCellValue ($xeTable: VxeTableConstructor, opts: VxeTablePropTypes.ExportConfig, row: any, column: VxeTableDefines.ColumnInfo) {
const _columnIndex = $xeTable.getVTColumnIndex(column)
// 兼容老模式
if (XEUtils.isArray(row)) {
return getCellLabel(column, row[_columnIndex])
}
return getCellLabel(column, XEUtils.get(row, column.field))
}
function getValidColumn (column: VxeTableDefines.ColumnInfo): VxeTableDefines.ColumnInfo {

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-export-xlsx",
"version": "4.0.5",
"version": "4.0.6",
"description": "基于 vxe-table 表格的扩展插件,支持导出 xlsx 格式",
"scripts": {
"lib": "gulp build"
@@ -51,7 +51,7 @@
"sass": "^1.55.0",
"typescript": "^4.6.4",
"vue": "^3.4.27",
"vxe-table": "^4.6.17"
"vxe-table": "^4.6.19"
},
"peerDependencies": {
"vxe-table": "^4.5.0"