pull/8198/merge
SonicKang 2025-06-13 18:27:29 +08:00 committed by GitHub
commit 730cef0094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ const ImageInternal = defineComponent({
ref={img}
/>
{status.value === 'loading' && (
{(status.value === 'loading' || status.value === 'error') && (
<div aria-hidden="true" class={`${prefixCls}-placeholder`}>
{placeholder || (slots.placeholder && slots.placeholder())}
</div>