mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
chore(TableFooter): resolve ts type error
This commit is contained in:
parent
92875cbecc
commit
6f0a44f528
@ -21,6 +21,7 @@
|
||||
import { INDEX_COLUMN_FLAG } from '../const';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import { useTableContext } from '../hooks/useTableContext';
|
||||
import { ColumnType } from 'ant-design-vue/es/table/interface';
|
||||
|
||||
const SUMMARY_ROW_KEY = '_row';
|
||||
const SUMMARY_INDEX_KEY = '_index';
|
||||
@ -86,7 +87,7 @@
|
||||
customRender: ({ record }) => record[SUMMARY_ROW_KEY],
|
||||
});
|
||||
}
|
||||
return columns;
|
||||
return columns as unknown as ColumnType[];
|
||||
});
|
||||
return { getColumns, getDataSource };
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user