refactor: pagination component usage

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/588/head
Ryan Wang 2022-07-12 11:11:05 +08:00
parent 86be841e28
commit ddbca25307
7 changed files with 18 additions and 32 deletions

View File

@ -685,11 +685,9 @@ onMounted(() => {
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination :page="1" :size="10" :total="20" />
</div>
</div>
</template>
</VCard>
</div>

View File

@ -137,11 +137,9 @@ const checkAll = ref(false);
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination :page="1" :size="10" :total="20" />
</div>
</div>
</template>
</VCard>
</div>

View File

@ -334,11 +334,9 @@ onMounted(() => {
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination :page="1" :size="10" :total="20" />
</div>
</div>
</template>
</VCard>
</div>

View File

@ -400,11 +400,9 @@ onMounted(() => {
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination :page="1" :size="10" :total="20" />
</div>
</div>
</template>
</VCard>
</div>

View File

@ -383,11 +383,9 @@ onMounted(handleFetchPlugins);
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination :page="1" :size="10" :total="20" />
</div>
</div>
</template>
</VCard>
</div>

View File

@ -210,11 +210,9 @@ onMounted(() => {
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination :page="1" :size="10" :total="20" />
</div>
</div>
</template>
</VCard>
</div>

View File

@ -273,15 +273,13 @@ onMounted(() => {
</ul>
<template #footer>
<div class="flex items-center justify-end bg-white">
<div class="flex flex-1 items-center justify-end">
<div class="bg-white sm:flex sm:items-center sm:justify-end">
<VPagination
v-model:page="pagination.page"
v-model:size="pagination.size"
:total="pagination.total"
/>
</div>
</div>
</template>
</VCard>
</div>