fix(projects): 修复TS类型问题

This commit is contained in:
Soybean 2022-08-08 13:37:32 +08:00
parent 0f0cd0b759
commit 16dce9a4ce

View File

@ -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<Props>(), {