fix(DatetimePicker): Selector error when setting filter option

This commit is contained in:
Jake 2019-10-24 10:54:01 +08:00
parent 3c5894a898
commit dd48ce34a0
2 changed files with 3 additions and 3 deletions

View File

@ -131,8 +131,8 @@ Page({
Page({
data: {
currentDate: '12:00',
minHour: 9,
maxHour: 23
minHour: 10,
maxHour: 20
},
onInput(event) {

View File

@ -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]);