Skip to content
On this page

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

NameDescriptionTypeDefault
totalthe total of datanumber-
sizethe number of data in a pagenumber10
index / v-model:indexcurrent page numbernumber-