omi/components/pagination
YunYouJun 3a3d695206 refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
..
demos/js-demo refactor(@omiu/pagination): beautify button style 2021-07-13 20:43:19 +08:00
scripts fix(@omiu/pagination): fix hover style 2021-07-14 10:05:36 +08:00
src refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
README.md publish(@omiu/pagination) 2020-04-26 11:12:02 +08:00
package.json fix(@omiu/pagination): fix the theme switch bug of pagination component 2021-07-14 10:49:47 +08:00
tsconfig.demo.json publish(@omiu/pagination) 2020-04-26 11:12:02 +08:00
tsconfig.json publish(@omiu/pagination) 2020-04-26 11:12:02 +08:00

README.md

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