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] el-button的auto-insert-space属性或是全局autoInsertSpace属性在按钮包含el-icon的情况下不生效 #16608

Closed
JoryPai opened this issue Apr 22, 2024 · 2 comments

Comments

@JoryPai
Copy link

JoryPai commented Apr 22, 2024

Bug Type: Style

Environment

  • Vue Version: 3.4.21
  • Element Plus Version: 2.7.1
  • Browser / OS: Chrome 123.0.6312.107 / MacOS 13.4
  • Build Tool: Vite

Reproduction

Related Component

  • el-button

Reproduction Link

Element Plus Playground

Steps to reproduce

见链接代码

What is Expected?

按钮中的中文之间有空格

What is actually happening?

按钮中的中文之间没有空格

Additional comments

未对除el-button之外的组件如el-button-group等进行测试

image
@JoryPai
Copy link
Author

JoryPai commented Apr 22, 2024

我很疑惑这是一个bug还是设计如此

@makedopamine
Copy link
Contributor

设计如此,内容必须是两个表意字符才会加间距,使用icon prop或者icon slot应该可以达到你预期的结果。 playground

@chenxch chenxch closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 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

3 participants