fix: image preview not work #3701 (#3956)

pull/3972/head
John 2021-04-17 21:27:13 +08:00 committed by GitHub
parent 97167fdb7a
commit fb5d2e5054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,7 @@ const ImageInternal = defineComponent({
mousePosition={mousePosition.value}
src={mergedSrc}
alt={alt}
getContainer={getPreviewContainer}
getContainer={getPreviewContainer.value}
/>
)}
</>

View File

@ -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 }) => (