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

使用iframe引入组件,组件在mounted的时候结构没有渲染出来 #117

Open
chenjie-cmyk opened this issue Dec 28, 2020 · 1 comment

Comments

@chenjie-cmyk
Copy link

你好,使用content引入一个组件的时候,组件中的div结构在mounted函数中的时候高宽都是0,似乎没有渲染出来,是怎么回事呢。当然,所有代码执行完后,是有结构的。
this.$layer.iframe({
content: {
content: agedExamineCom, // 传递的组件对象
parent: this, // 当前的vue对象
data: {
info: { a: 1 }
}// props
},
area: ['800px', '600px'],
title: '睡眠检测'
})

@zuoyanart
Copy link
Owner

不好猜测, 方便提供个demo吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants