fix(图表): 修复明细表分页情况下自定义列宽未铺满 #14114

This commit is contained in:
wisonic 2025-01-07 16:39:51 +08:00 committed by wisonic-s
parent f6fb937689
commit 099615feca

View File

@ -531,11 +531,13 @@ export function getStyle(chart: Chart, dataConfig: S2DataConfig): Style {
return p + n
}, 0)
const restWidth = width - curTotalWidth
widthArr.splice(0)
if (restWidth < resultWidth) {
return restWidth
}
} else {
widthArr.push(resultWidth)
}
widthArr.push(resultWidth)
}
return resultWidth
}