v-page
v-page ·

A simple pagination bar for vue3, including size Menu, i18n support features
If you are using vue 2.x version, please use v-page 2.x version instead
Examples and Documentation
Documentation and examples and please visit below sites
Installation
# npm
npm i v-page
# yarn
yarn add v-page
# pnpm
pnpm add v-page
Include and install plugin in your project
import { createApp } from 'vue'
import App from './app.vue'
import PaginationPlugin from 'v-page'
const app = createApp(App)
// install component globally
app.use(PaginationPlugin, {
// globally config options
language: 'cn'
})
app.mount('#app')
Use v-page as a locally component
<template>
<PaginationBar />
</template>
<script setup>
import { PaginationBar } from 'v-page'
</script>
Usage
<template>
<PaginationBar v-model="pageNumber" :total-row="totalRow" @change="paginationChange" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { PaginationBar, type PageInfo } from 'v-page'
// set default page to 3
const pageNumber = ref<number>(3)
const totalRow = ref<number>(100)
// respond for pagination change
function paginationChange(data: PageInfo) {
console.log(data) // { pageNumber: 1, pageSize: 10, totalPage: 10 }
}
</script>
Related Packages
@nx/vue
The Vue plugin for Nx contains executors and generators for managing Vue applica...
2,627,680
29,434
Version History
| Version | Released | License |
|---|---|---|
| 3.5.0 | MIT | |
| 3.4.0 | MIT | |
| 3.3.0 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.0 | MIT | |
| 3.0.0 | MIT | |
| 2.1.0 | MIT | |
| 2.0.10 | MIT | |
| 2.0.9 | MIT | |
| 2.0.8 | MIT | |
| 2.0.7 | MIT | |
| 2.0.6 | MIT | |
| 2.0.5 | MIT | |
| 2.0.4 | MIT | |
| 2.0.3 | MIT | |
| 2.0.2 | MIT | |
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.6.0 | MIT | |
| 1.5.0 | MIT | |
| 1.4.0 | MIT | |
| 1.3.0 | MIT | |
| 1.2.0 | MIT | |
| 1.1.0 | MIT | |
| 1.0.0 | MIT |
Pre-releases (4)
| Version | Released | License |
|---|---|---|
| 3.0.0-beta.4 | MIT | |
| 3.0.0-beta.3 | MIT | |
| 3.0.0-beta.2 | MIT | |
| 3.0.0-beta.1 | MIT |
