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

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

icssoa 4 месяцев назад
Родитель
Сommit
96e9e60f14

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

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