Open foreverpw opened 5 years ago
发现Taro-ui中size相关,有三种写法 1.直接Taro.pxTransform(size) 2.Taro.pxTransform(size * 2) 3.size+'px' 是出于什么考虑这么设计,麻烦统一下,有点反人类 https://github.com/NervJS/taro-ui/blob/1352bebb2347fa4ed1467375a7025d9130b8860b/src/components/progress/index.js#L33 https://github.com/NervJS/taro-ui/blob/1352bebb2347fa4ed1467375a7025d9130b8860b/src/components/icon/index.js#L60 https://github.com/NervJS/taro-ui/blob/1352bebb2347fa4ed1467375a7025d9130b8860b/src/components/loading/index.js#L17
https://github.com/NervJS/taro-ui/issues/112#issuecomment-514445808
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
CC @koppthe
发现Taro-ui中size相关,有三种写法 1.直接Taro.pxTransform(size) 2.Taro.pxTransform(size * 2) 3.size+'px' 是出于什么考虑这么设计,麻烦统一下,有点反人类 https://github.com/NervJS/taro-ui/blob/1352bebb2347fa4ed1467375a7025d9130b8860b/src/components/progress/index.js#L33 https://github.com/NervJS/taro-ui/blob/1352bebb2347fa4ed1467375a7025d9130b8860b/src/components/icon/index.js#L60 https://github.com/NervJS/taro-ui/blob/1352bebb2347fa4ed1467375a7025d9130b8860b/src/components/loading/index.js#L17
https://github.com/NervJS/taro-ui/issues/112#issuecomment-514445808