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