Quellcode durchsuchen

cl-calendar-select 添加提示

icssoa vor 6 Monaten
Ursprung
Commit
81e48b7277

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

@@ -263,6 +263,13 @@ function confirm() {
 			return;
 		}
 
+		if (date.value.length != 2) {
+			ui.showToast({
+				message: t("请选择日期范围")
+			});
+			return;
+		}
+
 		emit("update:date", date.value);
 		emit("change", date.value);