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

微信小程序skyline模式下,使用CustomWrapper包裹导致样式丢失 #14699

Closed
wyf199605 opened this issue Oct 25, 2023 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@wyf199605
Copy link

这个特性解决了什么问题?

微信小程序skyline模式下,通过baseLevel或者CustomWrapper生成新组件,组件的样式隔离导致样式失效。

这个 API 长什么样?

微信小程序glass-easel 适配指引要求addGlobalClass属性在JSON中声明;

微信小程序文档:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/migration.html#JSON-%E9%85%8D%E7%BD%AE

旧版

component.js

Component({
  options: {
    addGlobalClass: true
  }
})

新版

component.json

{
  "component": true,
  "addGlobalClass": true
}
@taro-bot2 taro-bot2 bot added enhancement New feature or request labels Oct 25, 2023
@koppthe koppthe self-assigned this Apr 16, 2024
koppthe added a commit that referenced this issue Apr 29, 2024
* fix(weapp): support skyline components

#14698

* test: update snapshot

* fix: 修复 Skyline 模式下 CustomWrapper 样式丢失问题 #14699

* chore(runner): 补充 runner 的 skyline 测试用例

* fix(mini-runner): 更新测试用例快照

* fix(types): 更新 GridView types

* feat(component): 新增 grid-builder 和 list-builder

* feat(skyline): 适配 open-container 组件

* feat(skyline): 补齐缺失的 skyline 组件

* test: 补全 skyline 组件测试用例

* test(mini-runner): update snapshots

* test(webpack5-runner): update snapshots

* test(webpack5-runner): update snapshots

* test(webpack5-runner): update snapshots

* chore: update ci workflow

* Revert "chore: update ci workflow"

This reverts commit 6d3fc8b.

* test(webpack5-runner): update snapshots

---------

Co-authored-by: konka <[email protected]>
Co-authored-by: hemingjin <[email protected]>
Co-authored-by: ZEJIA LIU <[email protected]>
Co-authored-by: Zakary <[email protected]>
@koppthe
Copy link
Contributor

koppthe commented May 13, 2024

怎么解决这个问题了,taro 3.6.24 还有问题

这是两周前修复的版本,跟 v3.6.29 发布的,v3.6.24 是两个月前的版本

@koppthe koppthe closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants