陈柳鹏
陈柳鹏
我不能复现啊 什么环境的
确实。
后续修复
请提问的时候最好贴下 示例代码最好
[尝试这里修改](https://github.com/ChenLiuPng/uView2.0/commit/63eb3aa5938f6502d07628ee284b9d73fa0ec814)
可能(我这边复现和尝试修复了一下) uni_modules\uview-ui\components\u-rate\u-rate.vue ```javascript // uView封装的获取节点的方法,详见文档 // #ifndef APP-NVUE setTimeout(()=>{ this.$uGetRect("." + this.elClass).then((res) => { this.rateWidth = res.width; }); },100) // #endif ``` 加个定时器,你可以试一试
暂时看到的是 $uGetRect 使用过程中,获取宽度有问题,有问题的时候是17 没有问题的时候是24 你可以自己尝试一下 用官方的示例,然后去 uView2.0\uni_modules\uview-ui\libs\mixin\mixin.js ```javascript $uGetRect(selector, all) { return new Promise((resolve) => { uni.createSelectorQuery() .in(this)[all ? 'selectAll' : 'select'](selector) .boundingClientRect((rect) => { console.log(rect.width) if (all && Array.isArray(rect)...