关于vetur自动格式化导致自动转rem的大写Px方法失效的解决办法
在使用了amfe-flexible
自动px转rem的插件后。
遇到过这个问题,发现无解啊,只要在组件的style里面书写大写的Px
单位,vetur都会给你自动转成小写,很尴尬,特别是在用scss的情况下,组件内通过大小单位来让元素大小不自动转rem,无法完成,除非你关闭自动格式化,但是那是不可能的,太难了。
有种鱼和熊掌不可兼得的感觉。
但是作为一个成年人,怎么可能要做选择,我都要...
这个办法也是我灵光一现,突然有的,我说下我的思路。
此处内容已隐藏回复后方可阅读。
版权申明
本文系作者 @木灵鱼儿 原创发布在木灵鱼儿站点。未经许可,禁止转载。
最新文章
Nestjs CORS配置和生产环境处理
1点赞
·
0评论
Debian12 SSH连接报错:Error Handshake failed no matching host key format
0点赞
·
0评论
Prisma 使用MongoDB创建数据时报错:Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set.
0点赞
·
0评论
Prisma 初始化MongoDB数据库下载报错reason unable to verify the first certificate解决方案
0点赞
·
0评论
Nuxt3 useFetch和$fetch的探讨以及封装请求处理
0点赞
·
3评论
全部评论 22
LLL
Google Chrome Windows 10111
Google Chrome Windows 10大白
Google Chrome MacOSm12
Google Chrome Windows 10nn
Google Chrome Windows 10123123
Google Chrome MacOS贾贾
Google Chrome Windows 10啥?
Google Chrome Windows 101
Google Chrome Windows 10c
Google Chrome Windows 10