【issues/7956】修复showSummary: false时且有内嵌子表时合计栏错位

This commit is contained in:
JEECG
2025-03-20 10:06:57 +08:00
parent 11d9f2b4e4
commit d7dc1b8dc7

View File

@@ -247,7 +247,11 @@
const { getHeaderProps } = useTableHeader(getProps, slots, handlers);
// update-begin--author:liaozhiyang---date:20240425---for【pull/1201】添加antd的TableSummary功能兼容老的summary表尾合计
const getSummaryProps = computed(() => {
return pick(unref(getProps), ['summaryFunc', 'summaryData', 'hasExpandedRow', 'rowKey']);
// update-begin--author:liaozhiyang---date:20250318---for【issues/7956】修复showSummary: false时且有内嵌子表时合计栏错位
const result = pick(unref(getProps), ['summaryFunc', 'summaryData', 'hasExpandedRow', 'rowKey']);
result['hasExpandedRow'] = Object.keys(slots).includes('expandedRowRender');
// update-end--author:liaozhiyang---date:20250318---for【issues/7956】修复showSummary: false时且有内嵌子表时合计栏错位
return result;
});
const getIsEmptyData = computed(() => {
return (unref(getDataSourceRef) || []).length === 0;