mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
fix(图表): 修复明细表分页情况下自定义列宽未铺满 #14114
This commit is contained in:
parent
f6fb937689
commit
099615feca
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user