瀏覽代碼

修复 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("请选择日期范围")
 			});