vant-weapp icon indicating copy to clipboard operation
vant-weapp copied to clipboard

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

Open gansx opened this issue 1 year ago • 2 comments

重现链接

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

},

Vant Weapp 版本

1.10.21

描述一下你遇到的问题。

filter属性无法接收到参数

重现步骤

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

设备/浏览器

手机

### Tasks

gansx avatar Oct 08 '24 06:10 gansx

代码片段 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;

}, 是在小程序上

gansx avatar Oct 08 '24 06:10 gansx

更新版本试试 11.6没有复现

TallNutAlt avatar Oct 11 '24 08:10 TallNutAlt