mirror of
https://gitee.com/x-extends/vxe-table-plugin-export-xlsx.git
synced 2026-01-21 05:21:33 +08:00
releases 3.3.4
This commit is contained in:
10
index.ts
10
index.ts
@@ -37,9 +37,13 @@ function getFooterData (opts: any, footerData: any[][]) {
|
||||
return footerFilterMethod ? footerData.filter((items, index) => footerFilterMethod({ items, $rowIndex: index })) : footerData
|
||||
}
|
||||
|
||||
function getFooterCellValue ($table: any, opts: any, rows: any[], column: any) {
|
||||
const cellValue = getCellLabel(column, rows[$table.getVMColumnIndex(column)])
|
||||
return cellValue
|
||||
function getFooterCellValue ($xeTable: any, opts: any, row: any, column: any) {
|
||||
const _columnIndex = $xeTable.getVTColumnIndex(column)
|
||||
// 兼容老模式
|
||||
if (XEUtils.isArray(row)) {
|
||||
return getCellLabel(column, row[_columnIndex])
|
||||
}
|
||||
return getCellLabel(column, XEUtils.get(row, column.field))
|
||||
}
|
||||
|
||||
declare module 'vxe-table' {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vxe-table-plugin-export-xlsx",
|
||||
"version": "3.3.3",
|
||||
"version": "3.3.4",
|
||||
"description": "基于 vxe-table 表格的扩展插件,支持导出 xlsx 格式",
|
||||
"scripts": {
|
||||
"lib": "gulp build"
|
||||
|
||||
Reference in New Issue
Block a user