feat: added table layout
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
<script setup>
|
||||
import PaginationExample from './pagination/examples/PaginationExample.vue'
|
||||
import PaginationExample from './pagination/examples/PaginationExample.vue';
|
||||
import PaginationNavigationExample from './pagination/examples/PaginationNavigationExample.vue';
|
||||
import PaginationTableExample from './pagination/examples/PaginationTableExample.vue';
|
||||
</script>
|
||||
# Vue Pagination Component - Flowbite
|
||||
|
||||
## Default pagination
|
||||
|
||||
```vue
|
||||
<script setup>
|
||||
import { Pagination } from 'flowbite-vue'
|
||||
@@ -13,3 +17,29 @@ import { Pagination } from 'flowbite-vue'
|
||||
```
|
||||
|
||||
<PaginationExample />
|
||||
|
||||
## Pagination with navigation layout
|
||||
|
||||
```vue
|
||||
<script setup>
|
||||
import { Pagination } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<Pagination layout="navigation"></Pagination>
|
||||
</template>
|
||||
```
|
||||
|
||||
<PaginationNavigationExample />
|
||||
|
||||
## Pagination with table layout
|
||||
|
||||
```vue
|
||||
<script setup>
|
||||
import { Pagination } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<Pagination layout="table"></Pagination>
|
||||
</template>
|
||||
```
|
||||
|
||||
<PaginationTableExample />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user