Skip to content
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

[Component] [pagination] el-config-provider 设置size="small" 后 el-pagination 尺寸错误 #16830

Open
long4488296 opened this issue May 11, 2024 · 5 comments · May be fixed by #16858
Open

Comments

@long4488296
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.7.2
  • Browser / OS: Microsoft Edge 124
  • Build Tool: Vite

Reproduction

Related Component

  • el-pagination

Reproduction Link

Element Plus Playground

Steps to reproduce

What is Expected?

el-pagination 显示为小尺寸 即 :small="true"

What is actually happening?

el-pagination 显示标准尺寸 即 :small="false"

Additional comments

麻烦你们了

@JiuRanYa
Copy link
Contributor

JiuRanYa commented May 13, 2024

Pagination using the small is true, not size.

<el-pagination small layout="total, sizes, prev, pager, next, jumper" :total="100"  />

@btea
Copy link
Collaborator

btea commented May 13, 2024

@long4488296 el-pagination 只支持通过 smalltruefalse 来设置小尺寸和标准尺寸,你的写法应该没问题。

@long4488296
Copy link
Author

期望是 通过 el-config-provider 的 size="small" 能够 全局修改到 el-pagination 的尺寸, 就像 el-input那样

@long4488296 el-pagination 只支持通过 smalltruefalse 来设置小尺寸和标准尺寸,你的写法应该没问题。

@long4488296
Copy link
Author

使用 el-config-provider 可以配置 包括el-input在内的控件, 为何el-pagination 不支持? 这真不是bug还是有什么其他问题?

webvs2 added a commit to webvs2/element-plus that referenced this issue May 14, 2024
@webvs2
Copy link
Contributor

webvs2 commented May 14, 2024

@long4488296 #16858

@btea btea linked a pull request May 22, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants