@meleon/uni-ui
Version:
A uniapp components library written in vue3 and typescript
13 lines (12 loc) • 488 B
TypeScript
import type { InjectionKey, Ref } from 'vue';
import type { TimelineProps } from './index.interface';
export interface TimelineContext {
mode: Ref<TimelineProps['mode']>;
total: Ref<number>;
reverse: Ref<boolean>;
direction: Ref<TimelineProps['direction']>;
getTimelineItemIndex: () => number;
getTimeLineRect: () => Promise<Record<string, number>>;
}
declare const timelineInjectionKey: InjectionKey<TimelineContext>;
export { timelineInjectionKey };