fix(Image): Update loading state handling

pull/8198/head
yuantongkang 2025-05-24 23:43:06 +08:00
parent aa211fd789
commit e416702ccb
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>