优化细节

This commit is contained in:
icssoa
2025-08-27 19:02:22 +08:00
parent e0145091d3
commit b67fc5685a
4 changed files with 5 additions and 17 deletions

View File

@@ -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";

View File

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

View File

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

View File

@@ -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);
};