1.1.3 • Published 3 years ago

yy-pagination v1.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

element-pagination

A element-pagination component for Vue.js.

Demo

http://element-component.github.io/element-pagination

Installation

npm i element-pagination -D

Usage

import Vue from 'vue'
import ElPagination from 'element-pagination'
import 'element-theme-default/dist/pagination.css'

Vue.use(ElPagination)

or

import Vue from 'vue'
import ElPagination from 'element-pagination'

Vue.component('el-pagination', ElPagination)

Attributes

参数说明类型可选值默认值
small是否使用小型分页样式Booleanfalse
page-size每页显示条目个数Number10
total总条目数Number-
page-count总页数,total 和 page-count 设置任意一个就可以达到显示页码的功能;如果要支持 page-sizes 的更改,则需要使用 total 属性Number-
current-page当前页数Number1
layout组件布局,子组件名用逗号分隔Stringsizes, prev, pager, next, jumper, ->, total'prev, pager, next, jumper, ->, total'
page-sizes每页显示个数选择器的选项设置Number[]10, 20, 30, 40, 50, 100

Events

事件名称说明回调参数
size-changepageSize 改变时会触发每页条数size
current-changecurrentPage 改变时会触发当前页currentPage

Development

make dev

## test
make test

## build
make build

License

MIT

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago