mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
fix(DatetimePicker): vant3 fixed incorrect value when dynamic set min/max (#8658)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user