NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.52k stars 756 forks source link

taro-ui中sass文件中写法 除号,推荐用math.div #1430

Open kevinlvhsl opened 2 years ago

kevinlvhsl commented 2 years ago

问题描述 taro-ui 在npm run dev:h5时,命令行会出现sass警告。

就是 sass中的【除号】建议用 math.div(分子, 分母) 来代替 【分子 / 分母】

复现步骤

image

期望行为 希望下次更新版本时修改这个问题

报错信息 Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

系统信息 taro v3.3.17
taro-ui v3.0.0 node v14.16.1

taro-ui-bot[bot] commented 2 years ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

liyanging commented 2 years ago

所以这个解决了吗

dxrdengxr commented 2 months ago

怎么解决的啊