Appearance
Pagination
Basic
12345678910
<script setup lang="ts">
import { DuPagination } from 'doggy-ui-v3'
import { ref } from 'vue'
const index = ref<number>(1)
</script>
<template>
<du-pagination :total="100" v-model:index="index" />
</template>
API
Props
| Name | Description | Type | Default |
|---|---|---|---|
| total | the total of data | number | - |
| size | the number of data in a page | number | 10 |
| index / v-model:index | current page number | number | - |