相关平台
H5
浏览器版本: chrome 89
使用框架: React
复现步骤
当 slider 的min>0,max>100时,滑动时value值计算有问题。如:
<Slider step={10} min={60} max={120}></Slider>
期望结果
当第一次滑动时value=70
实际结果
第一次滑动value=10
环境信息
Taro CLI 2.2.13 environment info:
System:
OS: macOS 11.2.3
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.13.0 - /usr/local/bin/node
npm: 6.12.0 - /usr/local/bin/npm
npmPackages:
@tarojs/cli: 2.2.16 => 2.2.16
@tarojs/components: ^2.2.16 => 2.2.16
@tarojs/components-qa: ^2.2.16 => 2.2.16
@tarojs/mini-runner: ^2.2.16 => 2.2.16
@tarojs/plugin-babel: ^2.2.16 => 2.2.16
@tarojs/plugin-sass: ^2.2.16 => 2.2.16
@tarojs/plugin-uglify: ^2.2.16 => 2.2.16
@tarojs/redux: ^2.2.16 => 2.2.16
@tarojs/redux-h5: ^2.2.16 => 2.2.16
@tarojs/router: ^2.2.16 => 2.2.16
@tarojs/taro: ^2.2.16 => 2.2.16
@tarojs/taro-alipay: ^2.2.16 => 2.2.16
@tarojs/taro-h5: ^2.2.16 => 2.2.16
@tarojs/taro-qq: ^2.2.16 => 2.2.16
@tarojs/taro-quickapp: ^2.2.16 => 2.2.16
@tarojs/taro-swan: ^2.2.16 => 2.2.16
@tarojs/taro-tt: ^2.2.16 => 2.2.16
@tarojs/taro-weapp: ^2.2.16 => 2.2.16
@tarojs/webpack-runner: ^2.2.16 => 2.2.16
eslint-config-taro: ^2.2.16 => 2.2.16
eslint-plugin-taro: ^2.2.16 => 2.2.16
nerv-devtools: ^1.5.7 => 1.5.7
nervjs: ^1.5.7 => 1.5.7
stylelint-config-taro-rn: ^2.2.16 => 2.2.16
stylelint-taro-rn: ^2.2.16 => 2.2.16
taro-ui: ^2.3.4 => 2.3.4
2条答案
按热度按时间dzhpxtsq1#
bug修复
constructor
方法componentWillReceiveProps
方法countValue
方法handleTouchMove
方法官方看到自己修改一下bug吧。
cnh2zyt32#
直接提个 pr