forked from github/dataease
Merge pull request #11561 from ulleo/dev-v2
fix(图表): 修复明细表分页器在单页情况下,常规分页器没有展示,精简分页器却展示的问题
This commit is contained in:
commit
f3827772a8
@ -200,7 +200,7 @@ const setupPage = (chart: ChartObj, resetPageInfo?: boolean) => {
|
|||||||
}
|
}
|
||||||
const pageInfo = state.pageInfo
|
const pageInfo = state.pageInfo
|
||||||
pageInfo.pageSize = customAttr.basicStyle.tablePageSize ?? 20
|
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
|
pageInfo.total = state.totalItems
|
||||||
state.showPage = true
|
state.showPage = true
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user