We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
小程序
微信小程序
None
3.0.0-4020920240930001
作用域插槽+分包组件,setup时prop是undefined 原因分析:插槽渲染数据保存在propsCaches中,如果在attach前父组件重新渲染,propsCaches会清空,导致插槽访问不到之前的props
见附件demo
my-vue3-project.zip
显示正常传入
显示异常传入
No response
The text was updated successfully, but these errors were encountered:
我运行了你提供的 demo,这个在 mp-weixin 上相当于主包中加载子包的页面作为组件,这个行为不支持。web 和app 中表现正常是,多端用法对齐的目的。
Sorry, something went wrong.
Otto-J
No branches or pull requests
发行方式
小程序
具体平台
微信小程序
开发环境
None
项目创建方式
None
依赖版本
3.0.0-4020920240930001
问题描述
作用域插槽+分包组件,setup时prop是undefined
原因分析:插槽渲染数据保存在propsCaches中,如果在attach前父组件重新渲染,propsCaches会清空,导致插槽访问不到之前的props
重现步骤
见附件demo
my-vue3-project.zip
期望行为
显示正常传入
实际行为
显示异常传入
截图或录屏
No response
The text was updated successfully, but these errors were encountered: