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] name属性为图片url时报错 #3369

Closed
Nero978 opened this issue Dec 18, 2024 · 2 comments · Fixed by #3370
Closed

[icon] name属性为图片url时报错 #3369

Nero978 opened this issue Dec 18, 2024 · 2 comments · Fixed by #3370

Comments

@Nero978
Copy link
Contributor

Nero978 commented Dec 18, 2024

tdesign-miniprogram 版本

1.8.1

重现链接

No response

重现步骤

<t-icon name="{{icon}}"></t-icon>

icon: 'https://xxxxxxx/xxx.png'

使用icon组件,name传入图片的url

显示正常(不影响使用),但是控制台有个烦人的报错

image

PS.此问题影响所有使用了icon的组件

期望结果

控制台不报错

实际结果

控制台报错,但不影响使用

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@Nero978
Copy link
Contributor Author

Nero978 commented Dec 18, 2024

。。。。。尝试复现多次,最后发现貌似和小程序的页面生命周期有关系
代码片段:https://developers.weixin.qq.com/s/MQeL6xmB75WE

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

Successfully merging a pull request may close this issue.

1 participant