chore(TableFooter): resolve ts type error

This commit is contained in:
invalid w 2023-10-24 12:08:57 +08:00
parent 92875cbecc
commit 6f0a44f528

View File

@ -21,6 +21,7 @@
import { INDEX_COLUMN_FLAG } from '../const'; import { INDEX_COLUMN_FLAG } from '../const';
import { propTypes } from '/@/utils/propTypes'; import { propTypes } from '/@/utils/propTypes';
import { useTableContext } from '../hooks/useTableContext'; import { useTableContext } from '../hooks/useTableContext';
import { ColumnType } from 'ant-design-vue/es/table/interface';
const SUMMARY_ROW_KEY = '_row'; const SUMMARY_ROW_KEY = '_row';
const SUMMARY_INDEX_KEY = '_index'; const SUMMARY_INDEX_KEY = '_index';
@ -86,7 +87,7 @@
customRender: ({ record }) => record[SUMMARY_ROW_KEY], customRender: ({ record }) => record[SUMMARY_ROW_KEY],
}); });
} }
return columns; return columns as unknown as ColumnType[];
}); });
return { getColumns, getDataSource }; return { getColumns, getDataSource };
}, },