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

van-datetime-picker组件,拉动后,一直来回跳动,无法解决 #4025

Closed
zzhn6 opened this issue Feb 2, 2021 · 6 comments
Closed
Labels

Comments

@zzhn6
Copy link

zzhn6 commented Feb 2, 2021

你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。

http://vant-contrib.gitee.io/vant-issue-generater?repo=VantWeapp

@zzhn6 zzhn6 changed the title van-datetime-picker van-datetime-picker组件,拉动后,一直来回跳动,无法解决 Feb 2, 2021
@Vict-star
Copy link

遇到了同样的bug

@HumanSean
Copy link

百度了一下发现说,把input事件改为change即可

@zzhn6
Copy link
Author

zzhn6 commented Feb 10, 2021 via email

@HumanSean
Copy link

这是我的写法。input和change获取的参数是不同的。的确不会来回跳动了,不过如果拉动太快的话,动画效果还是怪怪的

onInput({ detail }) {
    this.currentDate = new Date(detail.getValues().join('-')).getTime();
}

@zzhn6
Copy link
Author

zzhn6 commented Feb 10, 2021 via email

@HyperLife1119
Copy link

问题依然存在

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants