Просмотр исходного кода

修复 mode=range 确认选择时错误提示的问题

icssoa 6 месяцев назад
Родитель
Сommit
96e9e60f14
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      uni_modules/cool-ui/components/cl-calendar-select/cl-calendar-select.uvue

+ 1 - 1
uni_modules/cool-ui/components/cl-calendar-select/cl-calendar-select.uvue

@@ -263,7 +263,7 @@ function confirm() {
 			return;
 			return;
 		}
 		}
 
 
-		if (date.value.length != 2) {
+		if (date.value.length != 2 && props.mode == "range") {
 			ui.showToast({
 			ui.showToast({
 				message: t("请选择日期范围")
 				message: t("请选择日期范围")
 			});
 			});