NervJS / taro-ui

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

taro-ui@3.2.0 AtRange组件在小程序插件中 onChange获取的数据是NaN #1734

Closed gaogao2017 closed 8 months ago

gaogao2017 commented 9 months ago

问题描述

taro-ui@3.2.0 AtRange 组件 在微信小程序插件中使用,onChange 取到的value值是[0,NaN], image

期望行为 此bug是因为,taro3.x 中小程序和小程序插件获取元素方式不一致,taro-ui delayQuerySelector函数未对小程序插件获取元素方式做处理造成的,如下图所示,应改为判断是不是小程序插件,如果是则获取元素方式改成:Taro.createSelectorQuery().in(getCurrentInstance().page);请尽快解决发包,谢谢!

image

系统信息

image
taro-ui-bot[bot] commented 9 months ago

欢迎提交 Issue~

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

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

Good luck and happy coding~