feat: added table layout

This commit is contained in:
victor
2022-12-23 16:54:30 +04:00
parent 1f5da4be92
commit e3ac782c1b
5 changed files with 134 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="vp-raw flex flex-col">
<Pagination v-model="currentPage" :total-pages="10"></Pagination>
<Pagination v-model="currentPage" :total-pages="100"></Pagination>
</div>
</template>
<script lang="ts" setup>

View File

@@ -0,0 +1,11 @@
<template>
<div class="vp-raw flex items-center justify-center text-center">
<Pagination v-model="currentPage" :total-pages="100" :layout="'navigation'"></Pagination>
</div>
</template>
<script lang="ts" setup>
import { Pagination } from '../../../../src/index'
import { ref } from 'vue'
const currentPage = ref<number>(1)
</script>

View File

@@ -0,0 +1,16 @@
<template>
<div class="vp-raw flex items-center justify-center text-center">
<Pagination
v-model="currentPage"
:total-pages="100"
:layout="'table'"
:total-items="998"
></Pagination>
</div>
</template>
<script lang="ts" setup>
import { Pagination } from '../../../../src/index'
import { ref } from 'vue'
const currentPage = ref<number>(1)
</script>