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
背景:
现象: 打包出来后, 在 B 工程中具名插槽的默认内容渲染不出来
原因: vue 高版本中插槽渲的染函数对入参进行了判断, 如果是函数, 则执行函数; 而低版本中只默认入参是 VNode, 因此 A 工程中插槽默认内容打包出的结果是函数, 在低版本中识别不了, 因此没有渲染出来;
参考: Vue slot 默认内容
The text was updated successfully, but these errors were encountered:
No branches or pull requests
背景:
现象:
打包出来后, 在 B 工程中具名插槽的默认内容渲染不出来
原因:
vue 高版本中插槽渲的染函数对入参进行了判断, 如果是函数, 则执行函数; 而低版本中只默认入参是 VNode, 因此 A 工程中插槽默认内容打包出的结果是函数, 在低版本中识别不了, 因此没有渲染出来;
参考:
Vue slot 默认内容
The text was updated successfully, but these errors were encountered: