Merge pull request #11561 from ulleo/dev-v2

fix(图表): 修复明细表分页器在单页情况下,常规分页器没有展示,精简分页器却展示的问题
This commit is contained in:
ulleo 2024-08-14 17:57:29 +08:00 committed by GitHub
commit f3827772a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,7 +200,7 @@ const setupPage = (chart: ChartObj, resetPageInfo?: boolean) => {
}
const pageInfo = state.pageInfo
pageInfo.pageSize = customAttr.basicStyle.tablePageSize ?? 20
if (state.totalItems > state.pageInfo.pageSize || state.pageStyle !== 'general') {
if (state.totalItems > state.pageInfo.pageSize || state.pageStyle === 'general') {
pageInfo.total = state.totalItems
state.showPage = true
} else {