-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Pagination] 当分页数量超出 maxPageBtn
时,不是出现省略号,隐藏中间部分页码。而是隐藏 最前面 和 最后面的页码
#911
Comments
👋 @yixiaco,感谢给 TDesign 提出了 issue。 |
|
文档描述要改一下 |
那就新增一个不展示第一页和最后一页的选项,感觉这个选项名称不是这个意思吗🤔 |
描述改了一下,名字没取好 |
不是,我是说,能加个隐藏这两按钮的功能吗 |
pageDisplayFilter 会提供一个这样的API, 然后你这么用就好了。 <t-pagination
v-model="current"
v-model:pageSize="pageSize"
:total="100"
:page-display-filter="(i) => i !== 1"
@change="onChange"
@page-size-change="onPageSizeChange"
@current-change="onCurrentChange"
/> |
|
maxPageBtn
时,不是出现省略号,隐藏中间部分页码。而是隐藏 最前面 和 最后面的页码
0.16.0 修复 |
tdesign-vue-next 版本
0.15.3
重现链接
https://stackblitz.com/edit/nuxt-starter-lsiiyd?file=pages/index.vue
重现步骤
No response
期望结果
例如搜索引擎百度、google、必应,不允许用户直接跳转到最后一页或第一页
实际结果
只隐藏了第一页和最后一页的图标,实际上还是存在可以跳转第一页和最后一页

框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
如果showFirstAndLastPageBtn为false时,不应该显示折叠选项也不应该显示第一页与最后一页的快捷按钮
或者折叠选项应该是可控的,可以折叠的个数,如果为0则不折叠等
The text was updated successfully, but these errors were encountered: