更新记录
2.1.1(2025-09-26) 下载此版本
更新可自行设置 时间范围最早选择日期,未来选择日期
2.1.0(2024-05-21) 下载此版本
修复时间不足2位补0
1.0.0(2024-05-16) 下载此版本
1.0.0
查看更多平台兼容性
uni-app x(3.6.5)
Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
---|---|---|---|---|---|
- | - | 5.0 | - | - | - |
wb-picker
开发文档
UTS 语法 UTS API插件 UTS 组件插件 Hello UTS 注意注意:运行配置,请开启***,仓库在国外
使用方式 需要打包为自定义基座
时间范围选择器:MyCalendarPicker(options)
import { CalendarPickerOptions, MyCalendarPicker } from '@/uni_modules/wb-picker';
getPickerTime() {
let req = {
minMonth: 24, // 当前时间+24 (以前选择日期)
maxMonth ?: 24,// 当前时间+24 (未来选择日期)
complete: (res) => {
console.log('res', res);
}
} as CalendarPickerOptions
MyCalendarPicker(req)
},
时间选择器(年月日时分秒):MyCalendarPicker(options)
import { MyDateimePicker } from '@/uni_modules/wb-picker';
getPickerTime() {
MyDateimePicker((res:string)=>{
console.log(res);
})
},
时间选择器(年月日):MyCalendarPicker(options)
import { MyDatePicker } from '@/uni_modules/wb-picker';;
getPickerTime() {
MyDatePicker((res:string)=>{
console.log(res);
})
},