fix: 修复表格合计报错问题
This commit is contained in:
parent
88680255c9
commit
9c44006ec2
|
@ -167,20 +167,20 @@ export default defineComponent({
|
||||||
sumText: propTypes.string.def('Sum'),
|
sumText: propTypes.string.def('Sum'),
|
||||||
summaryMethod: {
|
summaryMethod: {
|
||||||
type: Function as PropType<(param: { columns: any[]; data: any[] }) => any[]>,
|
type: Function as PropType<(param: { columns: any[]; data: any[] }) => any[]>,
|
||||||
default: () => undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
spanMethod: {
|
spanMethod: {
|
||||||
type: Function as PropType<
|
type: Function as PropType<
|
||||||
(param: { row: any; column: any; rowIndex: number; columnIndex: number }) => any[]
|
(param: { row: any; column: any; rowIndex: number; columnIndex: number }) => any[]
|
||||||
>,
|
>,
|
||||||
default: () => undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
selectOnIndeterminate: propTypes.bool.def(true),
|
selectOnIndeterminate: propTypes.bool.def(true),
|
||||||
indent: propTypes.number.def(16),
|
indent: propTypes.number.def(16),
|
||||||
lazy: propTypes.bool.def(false),
|
lazy: propTypes.bool.def(false),
|
||||||
load: {
|
load: {
|
||||||
type: Function as PropType<(row: Recordable, treeNode: any, resolve: Function) => void>,
|
type: Function as PropType<(row: Recordable, treeNode: any, resolve: Function) => void>,
|
||||||
default: () => undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
treeProps: {
|
treeProps: {
|
||||||
type: Object as PropType<{ hasChildren?: string; children?: string; label?: string }>,
|
type: Object as PropType<{ hasChildren?: string; children?: string; label?: string }>,
|
||||||
|
|
|
@ -257,6 +257,7 @@ const getSelections = async () => {
|
||||||
v-model:pageSize="pageSize"
|
v-model:pageSize="pageSize"
|
||||||
v-model:currentPage="currentPage"
|
v-model:currentPage="currentPage"
|
||||||
showAction
|
showAction
|
||||||
|
showSummary
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:data="dataList"
|
:data="dataList"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
|
Loading…
Reference in New Issue