fix(DatetimePicker): vant3 fixed incorrect value when dynamic set min/max (#8658)

This commit is contained in:
nemo-shen
2021-05-05 22:36:52 +08:00
committed by GitHub
parent 52fb7628f2
commit 15940fd4ad
5 changed files with 90 additions and 10 deletions

View File

@@ -146,16 +146,17 @@ export default defineComponent({
watch(columns, updateColumnValue);
watch(
() => [
props.filter,
props.minHour,
props.maxHour,
props.minMinute,
props.maxMinute,
],
() => [props.filter, props.maxHour, props.minMinute, props.maxMinute],
updateInnerValue
);
watch(
() => props.minHour,
() => {
nextTick(updateInnerValue);
}
);
watch(currentDate, (value) => emit('update:modelValue', value));
watch(