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 图标 ] 微信小程序引入iconfont图标之后无法修改图标颜色 #2396

Closed
HuPengCheng1994 opened this issue Oct 17, 2023 · 9 comments
Labels
question This is a question, not a bug

Comments

@HuPengCheng1994
Copy link

HuPengCheng1994 commented Oct 17, 2023

tdesign-miniprogram 版本

1.2.3

重现链接

No response

重现步骤

image

image

期望结果

图标颜色

实际结果

没有颜色

基础库版本

1.2.3

补充说明

No response

@github-actions
Copy link
Contributor

👋 @HuPengCheng1994,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 18, 2023

@HuPengCheng1994 我这边测试可以正常修改,请在确认一下,如果还是有问题,可以提供可复现代码片段。

代码片段:https://developers.weixin.qq.com/s/Gs8P63mH72M8
截屏2023-10-18 10 27 45

@anlyyao anlyyao added the question This is a question, not a bug label Oct 18, 2023
@HuPengCheng1994
Copy link
Author

HuPengCheng1994 commented Oct 18, 2023

@anlyyao 我用我的自己生成的在线链接就不能修改颜色了,其他代码完整用你的代码片段,不知道是哪里出了问题。
//at.alicdn.com/t/c/font_4290114_hqld5jyl98q.css

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 18, 2023

@anlyyao 我用我的自己生成的在线链接就不能修改颜色了,其他代码完整用你的代码片段,不知道是哪里出了问题。 //at.alicdn.com/t/c/font_4290114_hqld5jyl98q.css

来个代码片段吧~ 👀

@HuPengCheng1994
Copy link
Author

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 19, 2023

@anlyyao 麻烦啦 https://developers.weixin.qq.com/s/SRoz73m470Mk

不确定是不是转base64的问题,你换成在线链接👀

@HuPengCheng1994
Copy link
Author

@anlyyao 麻烦啦 https://developers.weixin.qq.com/s/SRoz73m470Mk

不确定是不是转base64的问题,你换成在线链接👀

用的就是在线链接,只不过我勾选了iconfont项目设置里面的一个base64选项。
image

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 19, 2023

@HuPengCheng1994 彩色不勾。

我试了下在线连接,https://developers.weixin.qq.com/s/9pKHY4mC7wMC
效果: 截屏2023-10-19 12 00 58

@HuPengCheng1994
Copy link
Author

@HuPengCheng1994 彩色不勾。

我试了下在线连接,https://developers.weixin.qq.com/s/9pKHY4mC7wMC 效果: 截屏2023-10-19 12 00 58

可以了,居然是因为我勾选了彩色! 感谢耐心解答!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants