Skip to content

Comments

feat(n-image): show error placeholder when src is empty string#7454

Open
jahnli wants to merge 2 commits intotusen-ai:mainfrom
jahnli:fix-7452
Open

feat(n-image): show error placeholder when src is empty string#7454
jahnli wants to merge 2 commits intotusen-ai:mainfrom
jahnli:fix-7452

Conversation

@jahnli
Copy link
Collaborator

@jahnli jahnli commented Feb 3, 2026

close #7452

@sunpm
Copy link

sunpm commented Feb 3, 2026

我想把它改成 showErrorRef.value = !(props.src ?? props.imgProps?.src),不知如何

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 this pull request may close these issues.

NImage src 传递空字符串,是否应该显示加载错误?

3 participants