From 16dce9a4ce4d3aa822d70f6e5199eb9c86e33ad9 Mon Sep 17 00:00:00 2001 From: Soybean Date: Mon, 8 Aug 2022 13:37:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8DTS=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom/CountTo.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/custom/CountTo.vue b/src/components/custom/CountTo.vue index 5c60c34a8..61d25fde4 100644 --- a/src/components/custom/CountTo.vue +++ b/src/components/custom/CountTo.vue @@ -8,6 +8,8 @@ import { isNumber } from '@/utils'; defineOptions({ name: 'CountTo' }); +type TansitionKey = keyof typeof TransitionPresets; + interface Props { /** 初始值 */ startValue?: number; @@ -30,7 +32,7 @@ interface Props { /** 使用缓冲动画函数 */ useEasing?: boolean; /** 缓冲动画函数类型 */ - transition?: string; + transition?: TansitionKey; } const props = withDefaults(defineProps(), {