fix(projects): 修复TS类型问题
This commit is contained in:
parent
0f0cd0b759
commit
16dce9a4ce
@ -8,6 +8,8 @@ import { isNumber } from '@/utils';
|
|||||||
|
|
||||||
defineOptions({ name: 'CountTo' });
|
defineOptions({ name: 'CountTo' });
|
||||||
|
|
||||||
|
type TansitionKey = keyof typeof TransitionPresets;
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
/** 初始值 */
|
/** 初始值 */
|
||||||
startValue?: number;
|
startValue?: number;
|
||||||
@ -30,7 +32,7 @@ interface Props {
|
|||||||
/** 使用缓冲动画函数 */
|
/** 使用缓冲动画函数 */
|
||||||
useEasing?: boolean;
|
useEasing?: boolean;
|
||||||
/** 缓冲动画函数类型 */
|
/** 缓冲动画函数类型 */
|
||||||
transition?: string;
|
transition?: TansitionKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
Loading…
Reference in New Issue
Block a user