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

button with preIcon 开发与编译后样式不一致 #496

Closed
tky753 opened this issue Apr 18, 2021 · 0 comments
Closed

button with preIcon 开发与编译后样式不一致 #496

tky753 opened this issue Apr 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@tky753
Copy link

tky753 commented Apr 18, 2021

Describe the bug

<a-button
              type="primary"
              shape="circle"
              size="small"
              preIcon="ic:baseline-refresh"
              @click="reload"
/>

生成html代码为

<button preicon="ic:baseline-refresh" class="ant-btn ant-btn-primary ant-btn-circle ant-btn-sm" type="button">
  <span class="app-iconify anticon" style="font-size: 14px; display: inline-flex;">
    <svg  ...... /svg>
  </span>
</button>

其中<span>的样式
开发模式下:
image
编译后:
image

实际表现

开发模式下:
image
编译后:
image

这可能是什么原因?

@anncwb anncwb added the bug Something isn't working label Apr 19, 2021
@anncwb anncwb closed this as completed in ccae5cd Apr 24, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants