-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
uniapp编译为小程序后!前缀转换错误 #134
Comments
这个应该是 uni-app 把它自动转化成了 js 的表达式,你能告诉我 uni-app vue 的版本 (2/3),webpack or vite 我怀疑直接被转成了 这种情况,可能需要用到 |
vue2 |
This comment was marked as duplicate.
This comment was marked as duplicate.
上面第一张图,那个vue里完整的判断条件也粘贴给我看看吧,我复现一下,谢啦 |
:class="[{ popup: !maxFull }, className, { 'rounded-t-lg !w-full': type == 'bottom' && !className }]" |
我这边用的是最新版本的HX忘记说了,不好意思.. |
取值的其实是className |
这个问题其实和 issues/129 是一样的, new UniAppWeappTailwindcssWebpackPluginV4({
customAttributes: {
// * 通配符,代表所有的标签都生效
'*': ['className']
// 数组里同时允许 字符串 和正则
// '*': [/className/],
} 这样 |
感觉大佬的解答哇 |
感谢大佬 :) |
在uniapp 中
![image](https://user-images.githubusercontent.com/59040157/207519417-7acf54d8-acac-456e-9257-054f5a3c2623.png)
![image](https://user-images.githubusercontent.com/59040157/207519474-295307ca-4f0e-432d-b1a3-de8a437efd8e.png)
编译为小程序后!没有了并且失去了important
The text was updated successfully, but these errors were encountered: