1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +08:00

feat: 应用列表顶部增加页码切换 (#2457)

Refs https://github.com/1Panel-dev/1Panel/issues/2293
This commit is contained in:
zhengkunwang 2023-10-08 03:22:14 -05:00 committed by GitHub
parent fa420b9346
commit 5dc5b17bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 6 deletions

View File

@ -42,7 +42,7 @@
<el-divider direction="vertical" />
<slot name="buttons"></slot>
</span>
<span style="float: right">
<span class="float-right">
<slot v-if="slots.rightButton" name="rightButton"></slot>
</span>
</span>

View File

@ -64,11 +64,20 @@
</el-row>
</template>
<template #rightButton>
<el-badge is-dot class="item" :hidden="!canUpdate">
<el-button @click="sync" type="primary" link :plain="true" :disabled="syncing">
{{ $t('app.syncAppList') }}
</el-button>
</el-badge>
<div class="flex justify-end">
<fu-table-pagination
v-model:current-page="paginationConfig.currentPage"
v-model:page-size="paginationConfig.pageSize"
v-bind="paginationConfig"
@change="search(req)"
:layout="mobile ? ' prev, pager, next' : ' prev, pager, next'"
/>
<el-badge is-dot :hidden="!canUpdate" class="ml-5">
<el-button @click="sync" type="primary" plain :disabled="syncing">
{{ $t('app.syncAppList') }}
</el-button>
</el-badge>
</div>
</template>
<template #main>
<el-alert type="info" :title="$t('app.appHelper')" :closable="false" />