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

自定义组件样式偶尔会丢失的问题 #586

Closed
songkeys opened this issue Sep 7, 2018 · 0 comments
Closed

自定义组件样式偶尔会丢失的问题 #586

songkeys opened this issue Sep 7, 2018 · 0 comments

Comments

@songkeys
Copy link
Contributor

songkeys commented Sep 7, 2018

1.0.0-beta.25。

(issue 改了好多次……sorry)

发现自定义组件保存 js 文件的时候,wxss 文件会被清空。
再保存一次 wxss 文件,样式又回来了。


更新:
原因找到了……
我在 js 文件头写的引入样式没有加后缀名😂

import './xxx' // 出现这种情况
import './xxx.scss' // 正常
@songkeys songkeys changed the title this.props.children 所引用的自定义组件中如果包含自定义组件,样式会丢失 this.props.children 所引用的如果是自定义组件,样式会丢失 Sep 7, 2018
@songkeys songkeys changed the title this.props.children 所引用的如果是自定义组件,样式会丢失 自定义组件样式偶尔会丢失的问题 Sep 7, 2018
@songkeys songkeys closed this as completed Sep 7, 2018
xiaoyan428820 pushed a commit to xiaoyan428820/taro that referenced this issue Jun 11, 2024
feat: createIntersectionObserver修改为独立实现,回调参数支持id和dataset
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

1 participant