icssoa vor 7 Monaten
Ursprung
Commit
b67fc5685a

+ 1 - 11
uni_modules/cool-ui/components/cl-cascader/cl-cascader.uvue

@@ -93,17 +93,7 @@
 
 <script setup lang="ts">
 import { ref, computed, type PropType, nextTick } from "vue";
-import {
-	isDark,
-	isEmpty,
-	isHarmony,
-	isMp,
-	isNull,
-	parseClass,
-	parsePt,
-	parseRpx,
-	rpx2px
-} from "@/cool";
+import { isDark, isEmpty, isMp, isNull, parseClass, parsePt, parseRpx } from "@/cool";
 import type { ClSelectTriggerPassThrough } from "../cl-select-trigger/props";
 import type { ClPopupPassThrough } from "../cl-popup/props";
 import { t } from "@/locale";

+ 1 - 0
uni_modules/cool-ui/components/cl-list-item/cl-list-item.uvue

@@ -326,6 +326,7 @@ function onTouchEnd() {
  * 触摸取消事件处理
  */
 function onTouchCancel() {
+	onTouchEnd();
 	isHover.value = false; // 移除点击效果
 }
 

+ 0 - 5
uni_modules/cool-ui/components/cl-rolling-number/cl-rolling-number.uvue

@@ -211,8 +211,3 @@ defineExpose({
 	stop
 });
 </script>
-
-<style lang="scss" scoped>
-.cl-rolling-number {
-}
-</style>

+ 3 - 1
uni_modules/cool-ui/hooks/form.ts

@@ -97,7 +97,9 @@ export class Form {
 	};
 
 	// 验证整个表单
-	validate = (callback: (valid: boolean, errors: ClFormValidateError[]) => void): void => {
+	validate = (
+		callback: (valid: boolean, errors: ClFormValidateError[]) => void | Promise<void>
+	): void => {
 		this.formRef.value!.validate(callback);
 	};