fix: 修复表格合计报错问题

This commit is contained in:
kailong321200875 2024-06-20 14:46:54 +08:00
parent 88680255c9
commit 9c44006ec2
2 changed files with 4 additions and 3 deletions

View File

@ -167,20 +167,20 @@ export default defineComponent({
sumText: propTypes.string.def('Sum'),
summaryMethod: {
type: Function as PropType<(param: { columns: any[]; data: any[] }) => any[]>,
default: () => undefined
default: undefined
},
spanMethod: {
type: Function as PropType<
(param: { row: any; column: any; rowIndex: number; columnIndex: number }) => any[]
>,
default: () => undefined
default: undefined
},
selectOnIndeterminate: propTypes.bool.def(true),
indent: propTypes.number.def(16),
lazy: propTypes.bool.def(false),
load: {
type: Function as PropType<(row: Recordable, treeNode: any, resolve: Function) => void>,
default: () => undefined
default: undefined
},
treeProps: {
type: Object as PropType<{ hasChildren?: string; children?: string; label?: string }>,

View File

@ -257,6 +257,7 @@ const getSelections = async () => {
v-model:pageSize="pageSize"
v-model:currentPage="currentPage"
showAction
showSummary
:columns="columns"
:data="dataList"
:loading="loading"