Repository navigation
fix(Avatar): fix image load error fallback and reload when image source changes - #4635
Merged
Merged
Conversation
anlyyao
requested review from
betavs,
jarmywang,
jin0209,
novlan1 and
zydemail
as code owners
September 9, 2026 08:12
Contributor
Contributor
|
Size Change: 0 B Total Size: 584 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: 0 B Total Size: 88.5 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: +40 B (+0.01%) Total Size: 286 kB 📦 View Changed
ℹ️ View Unchanged
|
commit: |
Collaborator
TDesign Component Site Preview Open
|
Collaborator
Author
|
/changelog |
6 of 16 tasks
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


🤔 这个 PR 的性质是?
🔗 相关 Issue
fix #2468
💡 需求背景和解决方案
#4570
方案:hideOnLoadFailed 重新对齐桌面端语义
【非 breaking change】Avatar 组件行为变更说明: hideOnLoadFailed 图片加载失败后的表现变化
isShow=false,隐藏整个头像 wrapperisImgExist=false,仅移除图片节点display:none)icon或字符(slot)onLoadError中setData({ isShow: false })onLoadError中setData({ isImgExist: !hideOnLoadFailed })效果:https://developers.weixin.qq.com/s/srkITZmW80by
📝 更新日志
tdesign-miniprogram
@tdesign/uniapp
@tdesign/uniapp-chat
☑️ 请求合并前的自查清单