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

hover-class中的 !类名 不生效 #96

Open
rapiz1 opened this issue Apr 3, 2023 · 1 comment
Open

hover-class中的 !类名 不生效 #96

rapiz1 opened this issue Apr 3, 2023 · 1 comment

Comments

@rapiz1
Copy link

rapiz1 commented Apr 3, 2023

微信 button 等元素支持 hover-class,在点时runtime会自动在class中加上hover-class中的内容。我使用 hover-class="!bg-black" 无效,类名被正确添加,但style没有变化,看起来是对应的样式没有被生成。是否应该增加对hover-class的扫描?

如果我自己写 .selector {background: black !important} 则可以生效

@rapiz1
Copy link
Author

rapiz1 commented Apr 3, 2023

查看编译结果发现,生成的类名是 -i-bg-black,但小程序runtime添加的类名是 !bg-black。我同时书写 -i-bg-black !bg-black则可以工作

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