@omiu/progress
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Pagination

Used to display a large number of list data in multiple pages.

Import

import '@omiu/pagination'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/pagination"></script>

Usage

<o-pagination></o-pagination>

API

Props

{
  total: number
  pageSize: number
  numDisplay: number
  currentPage: number
  numEdge: number
  linkTo: string
  prevText: string
  nextText: string
  ellipseText: string
  prevShow: boolean
  nextShow: boolean
}

默认属性

{
  total: 0,
  pageSize: 10,
  numDisplay: 5,
  currentPage: 0,
  numEdge: 3,
  linkTo: '#',
  prevText: 'Prev',
  nextText: 'Next',
  ellipseText: '...',
  prevShow: true,
  nextShow: true
)

Events

  • change

Package Sidebar

Install

npm i @omiu/progress

Homepage

omijs.org

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

75 kB

Total Files

7

Last publish

Collaborators

  • dntzhang