From f93a21a0ec4ccce78c6514383ba56fd24b225ae3 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 15 May 2025 10:10:44 +0800 Subject: [PATCH] fix --- src/components/DateCalendar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/DateCalendar.vue b/src/components/DateCalendar.vue index 2cc36e04..6abf6008 100755 --- a/src/components/DateCalendar.vue +++ b/src/components/DateCalendar.vue @@ -377,8 +377,10 @@ limitations under the License. --> } classObj[`${state.pre}-date`] = true; classObj[`${state.pre}-date-disabled`] = - (props.right && (t < start.value || t > maxEnd.value)) || + (props.right && (t < start.value || t > maxEnd.value || !props.maxRange?.length)) || (props.left && t < minStart.value) || + t > end.value || + !props.maxRange?.length || t > maxEnd.value || props.disabledDate(time, format); classObj[`${state.pre}-date-on`] = (props.left && t > start.value) || (props.right && t < end.value);