Skip to content

Commit

Permalink
fix: 修复表格合计报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Jun 20, 2024
1 parent 8868025 commit 9c44006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Table/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>,
Expand Down
1 change: 1 addition & 0 deletions src/views/Components/Table/UseTableDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ const getSelections = async () => {
v-model:pageSize="pageSize"
v-model:currentPage="currentPage"
showAction
showSummary
:columns="columns"
:data="dataList"
:loading="loading"
Expand Down

0 comments on commit 9c44006

Please sign in to comment.