Open prototypenull opened 4 years ago
if (size !== this.data.svgSize) { this.setData({ svgSize: size / 750 * my.getSystemInfoSync().windowWidth, }); } 看了一下alipay的代码 发现这句if写的有问题 如果size传入的是18的话 就不会按比例计算大小 而是18px
if (size !== this.data.svgSize) { this.setData({ svgSize: size / 750 * my.getSystemInfoSync().windowWidth, }); }
默认值default_icon_size是18
配置中use_rpx是否设置为true呢?请问有解决思路吗?
use_rpx
if (size !== this.data.svgSize) { this.setData({ svgSize: size / 750 * my.getSystemInfoSync().windowWidth, }); }
看了一下alipay的代码 发现这句if写的有问题 如果size传入的是18的话 就不会按比例计算大小 而是18px