{"id":17856849,"url":"https://github.com/terryz/v-page","last_synced_at":"2025-04-12T23:38:59.346Z","repository":{"id":57389730,"uuid":"129768032","full_name":"TerryZ/v-page","owner":"TerryZ","description":"A simple and useful pagination component for Vue","archived":false,"fork":false,"pushed_at":"2025-03-12T09:14:45.000Z","size":850,"stargazers_count":100,"open_issues_count":5,"forks_count":23,"subscribers_count":4,"default_branch":"dev","last_synced_at":"2025-04-12T23:38:54.960Z","etag":null,"topics":["es6","i18n","javascript","page","pagination","vue","vue-components","vue2"],"latest_commit_sha":null,"homepage":"https://terryz.github.io/docs-vue3/page/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TerryZ.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-CN.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-16T15:47:08.000Z","updated_at":"2025-03-12T09:14:48.000Z","dependencies_parsed_at":"2024-08-22T05:26:46.569Z","dependency_job_id":"7c90def5-233c-454b-9529-6f5ee2ddb2ef","html_url":"https://github.com/TerryZ/v-page","commit_stats":{"total_commits":156,"total_committers":3,"mean_commits":52.0,"dds":"0.012820512820512775","last_synced_commit":"decc28f6b93d8979b026f9a1daeb31a3d3fcf66f"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryZ%2Fv-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryZ%2Fv-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryZ%2Fv-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerryZ%2Fv-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TerryZ","download_url":"https://codeload.github.com/TerryZ/v-page/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647255,"owners_count":21139081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6","i18n","javascript","page","pagination","vue","vue-components","vue2"],"created_at":"2024-10-28T03:10:03.730Z","updated_at":"2025-04-12T23:38:59.327Z","avatar_url":"https://github.com/TerryZ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [v-page](https://terryz.github.io/vue/#/page) \u0026middot; [![CircleCI](https://dl.circleci.com/status-badge/img/gh/TerryZ/v-page/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/TerryZ/v-page/tree/master) [![code coverage](https://codecov.io/gh/TerryZ/v-page/branch/master/graph/badge.svg)](https://codecov.io/gh/TerryZ/v-page) [![npm version](https://img.shields.io/npm/v/v-page.svg)](https://www.npmjs.com/package/v-page) [![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://mit-license.org/) [![npm download](https://img.shields.io/npm/dy/v-page.svg)](https://www.npmjs.com/package/v-page) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nA simple pagination bar for vue3, including size Menu, i18n support features\n\n\u003cimg src=\"https://terryz.github.io/image/v-page/v-page.png\" alt=\"v-page\" height=\"54px\"\u003e\n\nIf you are using vue `2.x` version, please use [v-page 2.x](https://github.com/TerryZ/v-page/tree/dev-vue-2) version instead\n\n\u003c!-- ## Features\n\n- Simple interface style\n- I18n supported\n- Modularization of Pagination bar features\n-  --\u003e\n\n## Examples and Documentation\n\nDocumentation and examples and please visit below sites\n\n- [github-pages](https://terryz.github.io/docs-vue3/page/)\n\n## Installation\n\n[![https://nodei.co/npm/v-page.png?downloads=true\u0026downloadRank=true\u0026stars=true](https://nodei.co/npm/v-page.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/v-page)\n\n```sh\n# npm\nnpm i v-page\n# yarn\nyarn add v-page\n# pnpm\npnpm add v-page\n```\n\nInclude and install plugin in your `main.js` file\n\n```js\nimport { createApp } from 'vue'\nimport App from './app.vue'\nimport { PaginationBar } from 'v-page'\n\nconst app = createApp(App)\n// install component globally\napp.use(PaginationBar, {\n  // globally config options\n})\napp.mount('#app')\n```\n\nUse `v-page` as a locally component\n\n```vue\n\u003ctemplate\u003e\n  \u003cPaginationBar /\u003e\n\u003c/template\u003e\n\n\u003cscript setup\u003e\nimport { PaginationBar } from 'v-page'\n\u003c/script\u003e\n```\n\n## Usage\n\n```vue\n\u003ctemplate\u003e\n  \u003cPaginationBar\n    v-model=\"pageNumber\"\n    :total-row=\"totalRow\"\n    @change=\"paginationChange\"\n  \u003e\n    \u003cPaginationPageSizeOptions /\u003e\n    \u003cPaginationInfo /\u003e\n    \u003cPaginationFirstPage /\u003e\n    \u003cPaginationPreviousPage /\u003e\n    \u003cPaginationPageNumbers /\u003e\n    \u003cPaginationNextPage /\u003e\n    \u003cPaginationLastPage /\u003e\n  \u003c/PaginationBar\u003e\n\u003c/template\u003e\n\n\u003cscript setup lang='ts'\u003e\nimport { ref } from 'vue'\nimport {\n  PaginationBar,\n  PaginationPageSizeOptions,\n  PaginationInfo,\n  PaginationPanel,\n  PaginationPageNumbers,\n  PaginationFirstPage,\n  PaginationPreviousPage,\n  PaginationNextPage,\n  PaginationLastPage\n} from 'v-page'\nimport type { PageInfo } from 'v-page'\n// set default page to 3\nconst pageNumber = ref\u003cnumber\u003e(3)\nconst totalRow = ref\u003cnumber\u003e(100)\n// respond for pagination change\nfunction paginationChange (data: PageInfo): void {\n  console.log(data) // { pageNumber: 1, pageSize: 10, totalPage: 10 }\n}\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterryz%2Fv-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterryz%2Fv-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterryz%2Fv-page/lists"}