优化细节
This commit is contained in:
@@ -93,17 +93,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, type PropType, nextTick } from "vue";
|
import { ref, computed, type PropType, nextTick } from "vue";
|
||||||
import {
|
import { isDark, isEmpty, isMp, isNull, parseClass, parsePt, parseRpx } from "@/cool";
|
||||||
isDark,
|
|
||||||
isEmpty,
|
|
||||||
isHarmony,
|
|
||||||
isMp,
|
|
||||||
isNull,
|
|
||||||
parseClass,
|
|
||||||
parsePt,
|
|
||||||
parseRpx,
|
|
||||||
rpx2px
|
|
||||||
} from "@/cool";
|
|
||||||
import type { ClSelectTriggerPassThrough } from "../cl-select-trigger/props";
|
import type { ClSelectTriggerPassThrough } from "../cl-select-trigger/props";
|
||||||
import type { ClPopupPassThrough } from "../cl-popup/props";
|
import type { ClPopupPassThrough } from "../cl-popup/props";
|
||||||
import { t } from "@/locale";
|
import { t } from "@/locale";
|
||||||
|
|||||||
@@ -326,6 +326,7 @@ function onTouchEnd() {
|
|||||||
* 触摸取消事件处理
|
* 触摸取消事件处理
|
||||||
*/
|
*/
|
||||||
function onTouchCancel() {
|
function onTouchCancel() {
|
||||||
|
onTouchEnd();
|
||||||
isHover.value = false; // 移除点击效果
|
isHover.value = false; // 移除点击效果
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -211,8 +211,3 @@ defineExpose({
|
|||||||
stop
|
stop
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.cl-rolling-number {
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -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);
|
this.formRef.value!.validate(callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user