Skip to content

Commit

Permalink
fix(projects): 修复TS类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Aug 8, 2022
1 parent 0f0cd0b commit 16dce9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/custom/CountTo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { isNumber } from '@/utils';
defineOptions({ name: 'CountTo' });
type TansitionKey = keyof typeof TransitionPresets;
interface Props {
/** 初始值 */
startValue?: number;
Expand All @@ -30,7 +32,7 @@ interface Props {
/** 使用缓冲动画函数 */
useEasing?: boolean;
/** 缓冲动画函数类型 */
transition?: string;
transition?: TansitionKey;
}
const props = withDefaults(defineProps<Props>(), {
Expand Down

1 comment on commit 16dce9a

@vercel
Copy link

@vercel vercel bot commented on 16dce9a Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.