Skip to content

Commit

Permalink
fix: 🐛 修复表格合计报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanYi-Hui committed Jun 26, 2024
1 parent 1f1d7de commit c655733
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 @@ -176,20 +176,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 @@ -238,6 +238,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 c655733

Please sign in to comment.