소스 검색

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

icssoa 6 달 전
부모
커밋
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;
 		}
 
-		if (date.value.length != 2) {
+		if (date.value.length != 2 && props.mode == "range") {
 			ui.showToast({
 				message: t("请选择日期范围")
 			});