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

a-image使用时,预览父节点设置异常 #3695

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

a-image使用时,预览父节点设置异常 #3695

gfppower opened this issue Feb 22, 2021 · 2 comments
Labels

Comments

@gfppower
Copy link

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

What problem does this feature solve?

<script lang="ts"> import { defineComponent ,reactive,ref,computed,onMounted,onBeforeMount } from "vue"; export default defineComponent({ name: "AppInstallDetail", components: { }, props: {}, methods: { //通过自身接口获取应用详情 }, setup(props,context) { const appInstallDetail = ref(null) const getContainer = (...args: any[]) :any => { debugger const bbb:any = appInstallDetail.value return bbb as HTMLElement } onBeforeMount(()=>{ console.log("appInstallDetail",appInstallDetail.value) }) // const preview = computed( ()=>{ // return { // getContainer:() => { // return document.querySelector("#appInstallDetail") // } // } // }) const preview = { visible:false, onVisibleChange:(visible:any, prevVisible:any):void => { console.log("nima",visible, prevVisible)}, getContainer : () => { return document.querySelector("#appInstallDetail") } } return { appInstallDetail, preview, }; } }); </script> <style scoped lang="stylus"> </style>

What does the proposed API look like?

设置preview的getContainer没有效果

@gfppower
Copy link
Author

重复提交,关闭一个

@gfppower gfppower reopened this Feb 22, 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 Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant