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
externalClasses
The text was updated successfully, but these errors were encountered:
对于自定义名称的 externalClasses 的兼容需要从 Tailwind/Windi CSS 解析器的层面去解决,这个不属于本插件的解决范围。 但感谢你的提醒,粗略估计即使很少有人会将本插件与原生小程序进行集成,我也会在文档中补充相关注意事项。
如果真的遇到在将本插件与原生小程序进行集成时需要用到 externalClasses 的场景,有一个巧妙的方法是将该 externalClasses 名称声明为 'class':
'class'
// custom-component.js Component({ externalClasses: [ 'class' ] })
以这种方式是可以保证在组件被使用时正常使用原子化 css 的 class name 的:
<custom-component class="w-115px h-15px filter invert"/>
这种方式已正常使用在线上原生小程序产品中:
Sorry, something went wrong.
No branches or pull requests
externalClasses
The text was updated successfully, but these errors were encountered: