pagination.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { ElementUIComponent } from './component'
  2. /** Pagination Component */
  3. export declare class ElPagination extends ElementUIComponent {
  4. /** Whether to use small pagination */
  5. small: boolean
  6. /** Item count of each page */
  7. pageSize: number
  8. /** Total item count */
  9. total: number
  10. /** Total page count. Set either total or page-count and pages will be displayed; if you need page-sizes, total is required */
  11. pageCount: number
  12. /** Number of pagers */
  13. pagerCount: number
  14. /** Current page number */
  15. currentPage: number
  16. /**
  17. * Layout of Pagination. Elements separated with a comma.
  18. * Accepted values: `sizes`, `prev`, `pager`, `next`, `jumper`, `->`, `total`, `slot`
  19. */
  20. layout: string
  21. /** Options of item count per page */
  22. pageSizes: number[]
  23. /** Custom class name for the page size Select's dropdown */
  24. popperClass: string
  25. /** Text for the prev button */
  26. prevText: string
  27. /** Text for the prev button */
  28. nextText: string
  29. /** Whether to hide when thers's only one page */
  30. hideOnSinglePage: boolean
  31. }