Skip to content

Commit fb5d2e5

Browse files
authored
fix: image preview not work #3701 (#3956)
1 parent 97167fd commit fb5d2e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/vc-image/src/Image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const ImageInternal = defineComponent({
281281
mousePosition={mousePosition.value}
282282
src={mergedSrc}
283283
alt={alt}
284-
getContainer={getPreviewContainer}
284+
getContainer={getPreviewContainer.value}
285285
/>
286286
)}
287287
</>

components/vc-image/src/Preview.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ const Preview = defineComponent({
252252
afterClose={onAfterClose}
253253
visible={props.visible}
254254
wrapClassName={wrapClassName}
255+
getContainer={props.getContainer}
255256
>
256257
<ul class={`${props.prefixCls}-operations`}>
257258
{tools.map(({ icon: IconType, onClick, type, disabled }) => (

0 commit comments

Comments
 (0)