-
-
Notifications
You must be signed in to change notification settings - Fork 49.3k
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
feat: pagination could change its size by the width of the window #21959
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 545538a:
|
别自动,来一个开关属性,默认关闭。 |
Codecov Report
@@ Coverage Diff @@
## feature #21959 +/- ##
========================================
Coverage 97.97% 97.98%
========================================
Files 307 307
Lines 7076 7087 +11
Branches 1953 1957 +4
========================================
+ Hits 6933 6944 +11
Misses 143 143
Continue to review full report at Codecov.
|
ci broken |
feat: pagination add autoResize prop chore: remove resizing
Fixed. |
🤔 This is a ...
🔗 Related issue link
#21885
💡 Background and solution
如果用户没有指定 pagination 的 size,且传递了 autoResize 时,当屏幕缩小到 xs,会自动呈现为 small 样式。
为了让用户能够在小屏幕上使用默认样式,size 参数新增
default
类型。📝 Changelog
☑️ Self Check before Merge
View rendered components/pagination/index.en-US.md
View rendered components/pagination/index.zh-CN.md