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

微信小程序端组件使用到解构插槽时,同一个页面使用多个该组件,除了第一个外,后面的插槽的内容的样式会被最后一个影响,测试h5和app的vue页面正常 #1662

Closed
EvanMaFYH opened this issue May 11, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@EvanMaFYH
Copy link

问题描述
微信小程序端组件使用到解构插槽时,同一个页面使用多个该组件,除了第一个外,后面的插槽的内容的样式会被最后一个影响,测试h5和app的vue页面正常

复现步骤
运行demo,可以发现页面中除了第一个外后面的三个都变成了红色,而只有最后一个设置了红色

预期结果
预期结果应该只有最后一个是红色的

实际结果
除了第一个外后面的三个都变成了红色

系统信息:

  • 发行平台: 微信小程序
  • 操作系统 [如 iOS 12.1.2、Android 7.0]
  • HBuilderX版本 2.6.16
  • uni-app版本 [如使用Vue-cli创建/运行项目,则提供npm run info的运行结果]
  • 设备信息 [如 iPhone8 Plus]

补充信息
app的vue页面和h5测试正常
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

fxy060608 added a commit that referenced this issue May 11, 2020
@fxy060608 fxy060608 added the bug Something isn't working label May 11, 2020
@zhetengbiji
Copy link
Collaborator

HBuilderX 2.7.2 alpha 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants