Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AtSlider设置value无效。 #135

Closed
huangguozhen opened this issue Oct 22, 2018 · 1 comment
Closed

AtSlider设置value无效。 #135

huangguozhen opened this issue Oct 22, 2018 · 1 comment
Assignees

Comments

@huangguozhen
Copy link

huangguozhen commented Oct 22, 2018

重现步骤

依赖的版本号

Node: 10.11.0
Taro: 1.0.7
Taro-UI: 1.3.3

预期结果

AtSlider根据设置的value正确显示滑块的位置。

实际结果

改变AtSlider传入的value值,AtSlider滑块的位置并没有按预期改变。

相关链接

原因

AtSlider内部实现使用了state._value来设置小程序原生slider的value。但是在props.value发送改变的时候并没有重新设置state._value

@koppthe koppthe self-assigned this Oct 23, 2018
koppthe added a commit that referenced this issue Oct 23, 2018
- 修复 AtSlider 无法变更 value props 不生效的问题 (#135)
@koppthe
Copy link
Collaborator

koppthe commented Oct 23, 2018

已修复,麻烦升级到 v1.3.5 版本

@koppthe koppthe closed this as completed Oct 23, 2018
jimczj added a commit that referenced this issue Nov 5, 2018
* feat_component_steps:
  docs(step): 增加文档
  fix(steps): 细节修改
  feat(steps): 增加types
  feat(steps): 新增步骤条组件
  Revert "test(search-bar): 修复测试"
  test(search-bar): 修复测试
  docs: 修复文档错误
  docs(navbar): 修复文档错误
  docs: 增加常见问题说明
  fix: 修复 types 是否必须
  docs: 更新文档说明
  fix(textarea): 组件 props 修改
  docs: 增加组件使用版本号说明
  chore(release): 发布 v1.3.5 版本
  fix(slider): 修复 AtSlider 变更 value 无效的问题 (#135)

# Conflicts:
#	@types/index.d.ts
#	docs/nav.config.yml
#	src/app.js
#	src/index.js
#	src/pages/panel/index.js
#	src/style/theme/default.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants