-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Labels
Comments
遇到了同样的bug |
百度了一下发现说,把input事件改为change即可 |
没用
…---原始邮件---
发件人: "Human Sean"<notifications@github.com>
发送时间: 2021年2月10日(周三) 晚上9:34
收件人: "youzan/vant-weapp"<vant-weapp@noreply.github.com>;
抄送: "zzhn6"<1197520188@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [youzan/vant-weapp] van-datetime-picker组件,拉动后,一直来回跳动,无法解决 (#4025)
百度了一下发现说,把input事件改为change即可
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
这是我的写法。input和change获取的参数是不同的。的确不会来回跳动了,不过如果拉动太快的话,动画效果还是怪怪的 onInput({ detail }) {
this.currentDate = new Date(detail.getValues().join('-')).getTime();
} |
我修改后,感觉还是有跳动,效果不是很好
…---原始邮件---
发件人: "Human Sean"<notifications@github.com>
发送时间: 2021年2月10日(周三) 晚上10:27
收件人: "youzan/vant-weapp"<vant-weapp@noreply.github.com>;
抄送: "zzhn6"<1197520188@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [youzan/vant-weapp] van-datetime-picker组件,拉动后,一直来回跳动,无法解决 (#4025)
这是我的写法。input和change获取的参数是不同的。的确不会来回跳动了,不过如果拉动太快的话,动画效果还是怪怪的
onInput({ detail }) { this.currentDate = new Date(detail.getValues().join('-')).getTime(); }
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
问题依然存在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。
http://vant-contrib.gitee.io/vant-issue-generater?repo=VantWeapp
The text was updated successfully, but these errors were encountered: