mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(DatetimePicker): Selector error when setting filter option
This commit is contained in:
parent
3c5894a898
commit
dd48ce34a0
@ -131,8 +131,8 @@ Page({
|
||||
Page({
|
||||
data: {
|
||||
currentDate: '12:00',
|
||||
minHour: 9,
|
||||
maxHour: 23
|
||||
minHour: 10,
|
||||
maxHour: 20
|
||||
},
|
||||
|
||||
onInput(event) {
|
||||
|
@ -295,7 +295,7 @@ VantComponent({
|
||||
|
||||
if (data.type === 'time') {
|
||||
const indexes = picker.getIndexes();
|
||||
value = `${indexes[0] + data.minHour}:${indexes[1] + data.minMinute}`;
|
||||
value = `${+data.columns[0].values[indexes[0]]}:${+data.columns[1].values[indexes[1]]}`;
|
||||
} else {
|
||||
const values = picker.getValues();
|
||||
const year = getTrueValue(values[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user