element-plus [Bug Report] [Style] [switch] el-switch inline width overwrites css var

k75qkfdt  于 2023-03-19  发布在  其他
关注(0)|答案(2)|浏览(190)

Bug Type: Style

Environment

  • Vue Version: 3.2.31
  • Element Plus Version: 2.1.4
  • Browser / OS: Chrome / Windows 10
  • Build Tool: Vite

Reproduction

  • el-switch

Element Plus Playground

Steps to reproduce

just use

What is Expected?

No style="width: 40px" on the element since it overwrites the css var

What is actually happening?

There is a 40px width inline style

Additional comments

This breaks the possibility to adapt the layout of the slider

相关问题