q-pagination
v1.0.12
Published
q-pagination
Downloads
5
Maintainers
Readme
q-pagination
Project setup
cnpm install q-pagination -D -S
Cite
<TPagination
@sizeChange="sizeChange"
@currentChange="currentChange"
:options="pageInfo"
/>
import TPagination from 'q-pagination';
components: {
TPagination,
}
Props
pageInfo: {
type: 'Object',
default: {
pageSize: 10, // 当前页码
totalCount: 0, // 总数
currPage: 1, // 当前页数
totalPage: 1, // 总页数
}
}
Event
sizeChange: 页码事件
sizeChange (){
// To Do Somethings
}
currentChange:页数事件
currentChange(){
// To Do Somethings
}
Customize configuration
See API.