taro-iconfont-cli icon indicating copy to clipboard operation
taro-iconfont-cli copied to clipboard

支付宝小程序编译时siez写18有bug

Open prototypenull opened this issue 5 years ago • 2 comments

if (size !== this.data.svgSize) { this.setData({ svgSize: size / 750 * my.getSystemInfoSync().windowWidth, }); } 看了一下alipay的代码 发现这句if写的有问题 如果size传入的是18的话 就不会按比例计算大小 而是18px

prototypenull avatar Apr 26 '20 08:04 prototypenull

默认值default_icon_size是18

prototypenull avatar Apr 26 '20 09:04 prototypenull

配置中use_rpx是否设置为true呢?请问有解决思路吗?

fwh1990 avatar Apr 26 '20 11:04 fwh1990