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

dev
JEECG 3 months ago
parent 11d9f2b4e4
commit d7dc1b8dc7

@ -247,7 +247,11 @@
const { getHeaderProps } = useTableHeader(getProps, slots, handlers);
// update-begin--author:liaozhiyang---date:20240425---forpull/1201antdTableSummarysummary
const getSummaryProps = computed(() => {
return pick(unref(getProps), ['summaryFunc', 'summaryData', 'hasExpandedRow', 'rowKey']);
// update-begin--author:liaozhiyang---date:20250318---forissues/7956showSummary: false
const result = pick(unref(getProps), ['summaryFunc', 'summaryData', 'hasExpandedRow', 'rowKey']);
result['hasExpandedRow'] = Object.keys(slots).includes('expandedRowRender');
// update-end--author:liaozhiyang---date:20250318---forissues/7956showSummary: false
return result;
});
const getIsEmptyData = computed(() => {
return (unref(getDataSourceRef) || []).length === 0;

Loading…
Cancel
Save