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
在vue3+vite4项目中,我自己写的class是有被转成成vw、vh单位的,但tailwind写的class是没有被转化成vw、vh的。 比如我写class=“pr-[10px]”, 在审查元素里看到是padding-right:10px;
The text was updated successfully, but these errors were encountered:
老哥解决没有,遇到同样的问题
Sorry, something went wrong.
tailwind 相当于在给标签加属性, postcss只能做到修改 css或者scss里的单位
理论上你这种行内的样式 需要换一种方式去解决了,它这个只能解决你用class写的样式对应的unit的转换。 像uni-app是魔改了vue的render vnode,在setProp的时候判断如果是需要修改的unit再去动态的改-。-
No branches or pull requests
在vue3+vite4项目中,我自己写的class是有被转成成vw、vh单位的,但tailwind写的class是没有被转化成vw、vh的。
比如我写class=“pr-[10px]”, 在审查元素里看到是padding-right:10px;
The text was updated successfully, but these errors were encountered: