mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
fix(activity): hide pagination when result fits in one page
This commit is contained in:
parent
7dd70ecd2f
commit
a3f25d9b03
@ -98,17 +98,16 @@
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!-- Element Plus pagination — supports size switcher / jumper /
|
||||
total. When total fits the smallest page size we still render
|
||||
so the user can adjust pageSize without it disappearing on
|
||||
low-volume instances. -->
|
||||
<div v-if="total > 0" class="pagination">
|
||||
<!-- Element Plus pagination — auto-hidden when results fit a
|
||||
single page (total <= pageSize). User feedback: showing
|
||||
pager on a 5-row dataset is noise. -->
|
||||
<div v-if="total > pageSize" class="pagination">
|
||||
<el-pagination
|
||||
v-model:current-page="page"
|
||||
v-model:page-size="pageSize"
|
||||
:total="total"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:hide-on-single-page="false"
|
||||
:hide-on-single-page="true"
|
||||
background
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="onPageSizeChange"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user