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

icon在button中位置没有被居中 #1967

Open
chengluliu opened this issue Feb 29, 2024 · 6 comments
Open

icon在button中位置没有被居中 #1967

chengluliu opened this issue Feb 29, 2024 · 6 comments

Comments

@chengluliu
Copy link

chengluliu commented Feb 29, 2024

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

v2.3.11

平台

weapp

重现链接

https://nutui.jd.com/taro/react/2x/#/zh-CN/component/button

git@github.com:chengluliu/NutUIDemo.git

重现步骤

载入即可看到

期望的结果是什么?

能居中显示

实际的结果是什么?

图标在button中没有居中显示

环境信息

No response

其他补充信息

No response

Copy link

你好 @chengluliu, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@oasis-cloud
Copy link
Collaborator

哪个类型的按钮表现明显?

@onlyling
Copy link
Contributor

onlyling commented Feb 29, 2024

哪个类型的按钮表现明显?

image
<Button
  type="primary"
  fill="dashed"
  icon={<Plus width="20" />}
  style={marginStyle}
/>

图标对应的图片偏移些许位置。

@chengluliu
Copy link
Author

git@github.com:chengluliu/NutUIDemo.git

@chengluliu
Copy link
Author

哪个类型的按钮表现明显?

git@github.com:chengluliu/NutUIDemo.git

@814351846
Copy link

814351846 commented Apr 24, 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

5 participants