YbPagination 分页器
对el-pagination (opens new window)的二次封装,分页器右对齐,支持 el-pagination 的所有功能,默认配置如下:
background
:truelayout
:'slot,total,sizes,prev,pager,next,jumper'插槽
:默认添加【刷新当前页】按钮,可以由hidden-reload
属性配置是否隐藏
# 基本使用
- 1
- 2
- 3
- 4
- 5
- 6
- 10
复制
# 插槽使用
hidden-reload
- 1
- 2
- 3
- 4
- 5
- 6
- 10
复制
# YbPagination Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
paginationStyle | 分页器 style | object | -- | - |
paginationClassName | 分页器 className | string | -- | - |
hidden-reload | 是否隐藏刷新按钮 | boolean | -- | -- |
- | 同el-pagination (opens new window) | object | -- | -- |
# YbPagination Events
事件名称 | 说明 | 回调参数 |
---|---|---|
reload | 点击刷新当前页时会触发 | -- |
- | 其他事件同el-pagination (opens new window) | -- |
# YbPagination Scoped Slot
name | 说明 |
---|---|
default | 自定义默认内容。 |
afterReload | 在刷新按钮后边。 |
上次更新: 2023/10/08, 19:05:58