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

slider组件的barstyle中width计算有误 #472

Closed
myweal opened this issue Jun 18, 2019 · 1 comment
Closed

slider组件的barstyle中width计算有误 #472

myweal opened this issue Jun 18, 2019 · 1 comment
Assignees
Labels
bug Something isn't working @Components Components related P0 Highest priority

Comments

@myweal
Copy link

myweal commented Jun 18, 2019

项目版本:mand-mobile2.3.0
复现步骤及解决方案如下:
1、range使用默认值false,设置min为50 max为100
2、滑动滑块,发现默认的蓝色进度条所在百分比不对
3、原因:由于在**/components/slider/index.vue 获得barStyle值 计算width有误,
4、解决方法:
可将**/components/slider/index.vue 的126行
width: this.values[0] / (this.max - this.min) * 100 + '%',
修改为如下即可
width: (this.values[0] - this.min) / (this.max - this.min) * 100 + '%'

@supergaojian supergaojian added bug Something isn't working P0 Highest priority labels Jun 19, 2019
@supergaojian
Copy link
Collaborator

已复现,我们会尽快修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @Components Components related P0 Highest priority
Projects
None yet
Development

No branches or pull requests

3 participants