Skip to content

Commit

Permalink
releases 4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Sep 28, 2024
1 parent 2d65292 commit dc929b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ function getCellText (cellValue: any) {
return cellValue || ' '
}

function getFooterCellValue ($table: VxeTableConstructor, opts: VxeTablePropTypes.ExportConfig, rows: any[], column: VxeTableDefines.ColumnInfo) {
const cellValue = XEUtils.toValueString(rows[$table.getVTColumnIndex(column)])
return getCellText(cellValue)
function getFooterCellValue ($xeTable: VxeTableConstructor, opts: VxeTablePropTypes.ExportConfig, row: any, column: VxeTableDefines.ColumnInfo) {
const _columnIndex = $xeTable.getVTColumnIndex(column)
// 兼容老模式
if (XEUtils.isArray(row)) {
return getCellText(row[_columnIndex])
}
return getCellText(XEUtils.get(row, column.field))
}

function getFooterData (opts: VxeTablePropTypes.ExportConfig, footerData: any[][]) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-export-pdf",
"version": "4.0.3",
"version": "4.0.4",
"description": "基于 vxe-table 表格的扩展插件,支持导出 pdf 格式",
"scripts": {
"lib": "gulp build"
Expand Down Expand Up @@ -53,7 +53,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"
Expand Down

0 comments on commit dc929b1

Please sign in to comment.