Skip to content

Commit

Permalink
fix: image preview not work vueComponent#3701
Browse files Browse the repository at this point in the history
  • Loading branch information
John60676 committed Apr 17, 2021
1 parent a1e180d commit 4a43bf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-image/src/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const ImageInternal = defineComponent({
mousePosition={mousePosition.value}
src={mergedSrc}
alt={alt}
getContainer={getPreviewContainer}
getContainer={getPreviewContainer.value}
/>
)}
</>
Expand Down
1 change: 1 addition & 0 deletions components/vc-image/src/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const Preview = defineComponent({
afterClose={onAfterClose}
visible={props.visible}
wrapClassName={wrapClassName}
getContainer={props.getContainer}
>
<ul class={`${props.prefixCls}-operations`}>
{tools.map(({ icon: IconType, onClick, type, disabled }) => (
Expand Down

0 comments on commit 4a43bf8

Please sign in to comment.