fix(图表): 修复明细表分页模式切换可能无法显示的问题

This commit is contained in:
ulleo 2024-06-13 16:37:57 +08:00
parent 7f04568fb8
commit 78a176e4fc
2 changed files with 2 additions and 2 deletions

View File

@ -734,7 +734,7 @@ onMounted(() => {
</el-radio-group>
</el-form-item>
<el-form-item
v-if="showProperty('tablePageMode')"
v-if="showProperty('tablePageMode') && state.basicStyleForm.tablePageMode !== 'pull'"
:label="t('chart.table_pager_style')"
class="form-item"
:class="'form-item-' + themes"

View File

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