mirror of
https://gitee.com/x-extends/vxe-table-plugin-export-xlsx.git
synced 2026-01-21 05:21:33 +08:00
releases 4.0.6
This commit is contained in:
10
index.ts
10
index.ts
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user