Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image预览参数配置不生效 #3701

Closed
1 task
gfppower opened this issue Feb 23, 2021 · 2 comments
Closed
1 task

image预览参数配置不生效 #3701

gfppower opened this issue Feb 23, 2021 · 2 comments
Assignees

Comments

@gfppower
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0

Environment

2.0.0

Reproduction link

https://github.com/gfppower/vue-antd-test

Steps to reproduce

我期望我的image的预览窗口在指定的容器内生成。目前配置不成功。

What is expected?

期望能在本案例中将预览窗口生成在balabala这个容器内。

What is actually happening?

<template>
<div class="balabala" ref="balabala">
<a-image
:width="200"
:preview="previewType"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
/>
</div>
</template>
<script lang="ts">
import { defineComponent,h ,computed,ref} from "vue";

export default defineComponent({
name: "AppAvailable",
setup(props, context) {
const balabala = ref(null)

const previewType = {
getContainer:balabala.value
}

return {
balabala,previewType
}
}
});

</script>

中的getContainer方法不生效。无法将预览窗口生成在balabala窗口中

@zch233
Copy link

zch233 commented Mar 24, 2021

对,不生效(在Image.PreviewGroup内)

@John60676 John60676 added 2.x for 2.x bug labels Apr 16, 2021
@John60676 John60676 self-assigned this Apr 16, 2021
John60676 added a commit to John60676/ant-design-vue that referenced this issue Apr 17, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants