Browse Source

fix(nc-gui): page-size in pagination

pull/5426/head
Wing-Kam Wong 2 years ago
parent
commit
600e214bd2
  1. 2
      packages/nc-gui/components/dashboard/settings/AuditTab.vue
  2. 2
      packages/nc-gui/components/smartsheet/Pagination.vue
  3. 2
      packages/nc-gui/components/tabs/auth/UserManagement.vue
  4. 2
      packages/nc-gui/components/webhook/CallLog.vue

2
packages/nc-gui/components/dashboard/settings/AuditTab.vue

@ -102,7 +102,7 @@ const columns = [
<a-pagination <a-pagination
v-model:current="currentPage" v-model:current="currentPage"
:page-size="currentLimit" v-model:page-size="currentLimit"
:total="totalRows" :total="totalRows"
show-less-items show-less-items
@change="loadAudits" @change="loadAudits"

2
packages/nc-gui/components/smartsheet/Pagination.vue

@ -28,10 +28,10 @@ const page = computed({
<a-pagination <a-pagination
v-if="count !== Infinity" v-if="count !== Infinity"
v-model:current="page" v-model:current="page"
v-model:page-size="size"
size="small" size="small"
class="!text-xs !m-1 nc-pagination" class="!text-xs !m-1 nc-pagination"
:total="count" :total="count"
:page-size="size"
show-less-items show-less-items
:show-size-changer="false" :show-size-changer="false"
/> />

2
packages/nc-gui/components/tabs/auth/UserManagement.vue

@ -369,9 +369,9 @@ const isSuperAdmin = (user: { main_roles?: string }) => {
<a-pagination <a-pagination
v-model:current="currentPage" v-model:current="currentPage"
v-model:page-size="currentLimit"
hide-on-single-page hide-on-single-page
class="mt-4" class="mt-4"
:page-size="currentLimit"
:total="totalRows" :total="totalRows"
show-less-items show-less-items
@change="loadUsers" @change="loadUsers"

2
packages/nc-gui/components/webhook/CallLog.vue

@ -159,7 +159,7 @@ onBeforeMount(async () => {
<a-layout-footer class="!bg-white text-center"> <a-layout-footer class="!bg-white text-center">
<a-pagination <a-pagination
v-model:current="currentPage" v-model:current="currentPage"
:page-size="currentLimit" v-model:page-size="currentLimit"
:total="totalRows" :total="totalRows"
show-less-items show-less-items
@change="loadHookLogs" @change="loadHookLogs"

Loading…
Cancel
Save