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

🧐[问题] 如果我想让应用中所有自定义样式都处于某个父类选择器下要如何实现? #170

Open
Crown1991 opened this issue Oct 11, 2024 · 5 comments

Comments

@Crown1991
Copy link

No description provided.

@Crown1991
Copy link
Author

我想试下StyleProvider组件的stylisPlugins属性,也没有生效欸

@arvinxx
Copy link
Collaborator

arvinxx commented Oct 11, 2024

感觉应该要自己写插件实现吧?

@Crown1991
Copy link
Author

感觉应该要自己写插件实现吧?

css-in-js不是运行时的吗?webpack插件实现不了吧?antd-style支持在生成样式时给样式加上父类选择器吗?

@arvinxx
Copy link
Collaborator

arvinxx commented Oct 12, 2024

不是webpack插件,应该要写 stylis 插件,我回头看下,之前有人讨论过

@Crown1991
Copy link
Author

不是webpack插件,应该要写 stylis 插件,我回头看下,之前有人讨论过

我试了下StyleProvider组件的属性stylisPlugins,<StyleProvider stylisPlugins={
[(element) => console.log('element', element)]}>,里面的函数都没执行欸,不知道用法是不是不对

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

2 participants