Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#24847·element-plus

[Component] [pagination] ElSelect.setPropsDefaults 设置 clearable = true 后,分页的size下拉出现清除按钮

Author: Groot-xieCreated Sep 9, 2026Updated Sep 9, 2026

Bug Type: Component

Environment

  • Vue Version: 3.5.40
  • Element Plus Version: 2.14.3
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • el-pagination

Reproduction Link

Element Plus Playground

Steps to reproduce

设置 ElSelect.setPropsDefaults({ clearable: true, }) 在页面中使用 el-pagination

What is Expected?

分页组件的sizes下拉选择框不要出现【清除】按钮

What is actually happening?

出现了【清除】按钮

Additional comments

只要在el-pagination组件中,显性的传入clearable=false即可解决

Source: element-plus/element-plus

View original on GitHubView discussion on GitHub