Skip to content

Commit 525f33b

Browse files
author
Your Name
committed
fix(Image): Update loading state handling and add placeholder display for error states #8189
1 parent aa211fd commit 525f33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-image/src/Image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const ImageInternal = defineComponent({
269269
ref={img}
270270
/>
271271

272-
{status.value === 'loading' && (
272+
{(status.value === 'loading' || status.value === 'error') && (
273273
<div aria-hidden="true" class={`${prefixCls}-placeholder`}>
274274
{placeholder || (slots.placeholder && slots.placeholder())}
275275
</div>

0 commit comments

Comments
 (0)