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

[Style] [button] 自动样式的相关问题 #16784

Closed
MoConWu opened this issue May 8, 2024 · 5 comments
Closed

[Style] [button] 自动样式的相关问题 #16784

MoConWu opened this issue May 8, 2024 · 5 comments

Comments

@MoConWu
Copy link
Contributor

MoConWu commented May 8, 2024

Bug Type: Style

Environment

  • Vue Version: 3.4.27
  • Element Plus Version: 2.7.2
  • Browser / OS: Windows
  • Build Tool: Vite

Reproduction

Related Component

  • el-button

Reproduction Link

Element Plus Playground

Steps to reproduce

按钮自动添加了margin-left: 12px;
对于横向布局没有问题,但是纵向的时候,就不对了

What is Expected?

考虑修复纵向的情况

What is actually happening?

考虑修复纵向的情况

Additional comments

(empty)

@MoConWu
Copy link
Contributor Author

MoConWu commented May 8, 2024

.el-button + .el-button {
margin-left: 12px;
}
导致了纵向按钮偏移
202458-下午-121403

并且我主动设置:
.el-button + .el-button {
margin-left: 0;
}
也不行,因为脚本始终会覆盖我的设置

@chenxch
Copy link
Member

chenxch commented May 8, 2024

.el-button + .el-button{
  margin-left: 0 !important;
}

@MoConWu
Copy link
Contributor Author

MoConWu commented May 8, 2024

.el-button + .el-button{
  margin-left: 0 !important;
}

这确实可以主动解决,但是希望的是自适应或自动判断,横着的时候,可以自动添加,纵向的时候就不自动添加了

@chenxch
Copy link
Member

chenxch commented May 8, 2024

外层样式属性无法判断哦,这个还是需要自行解决

@MoConWu
Copy link
Contributor Author

MoConWu commented May 8, 2024

外层样式属性无法判断哦,这个还是需要自行解决

好吧

@MoConWu MoConWu closed this as completed May 8, 2024
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

No branches or pull requests

2 participants