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

[Bug Report] 时间选择器filter方法没有接收到入参 #5900

Open
gansx opened this issue Oct 8, 2024 · 2 comments
Open

[Bug Report] 时间选择器filter方法没有接收到入参 #5900

gansx opened this issue Oct 8, 2024 · 2 comments

Comments

@gansx
Copy link

gansx commented Oct 8, 2024

重现链接

filterTime(type, options) { console.log('type1', type); console.log('options', options); if(this.data.offline) {
}
return options;

},

Vant Weapp 版本

1.10.21

描述一下你遇到的问题。

filter属性无法接收到参数

重现步骤

点击选择时间按钮,然后弹窗显示时间选择器

设备/浏览器

手机

Tasks

Preview Give feedback
No tasks being tracked yet.
@gansx
Copy link
Author

gansx commented Oct 8, 2024

代码片段 filterTime(type, options) {
console.log('type1', type);
console.log('options', options);
if(this.data.offline) {

}
// if (type === 'minute') {
//   return options.filter((option) => option % 5 === 0);
// }
return options;

},



是在小程序上

@TallNutAlt
Copy link

TallNutAlt commented Oct 11, 2024

更新版本试试 11.6没有复现

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

No branches or pull requests

2 participants