UNPKG

tav-ui

Version:
63 lines (62 loc) 1.71 kB
import type { ExtractPropTypes, PropType } from 'vue'; export interface TimeLinePropsType { list?: ListItemDefaultDataType[]; useLoadingMore?: boolean; } export interface ListItemDefaultDataType { times?: string[]; status?: 'success' | 'fail' | 'continue'; title?: string; tags?: TagPropsType[]; description?: string[]; } export interface TagPropsType { color?: string; label?: string; tooltip?: string; [key: string]: any; } export declare const timeLineProps: { list: { type: PropType<ListItemDefaultDataType[] | undefined>; default: () => never[]; }; useLoadingMore: { type: PropType<boolean | undefined>; default: boolean; }; renderListItem: { type: FunctionConstructor; default: null; }; }; export declare type TimeLineProps = ExtractPropTypes<typeof timeLineProps>; export declare const timeLineListEmits: string[]; export declare const timeLineTagProps: { label: { type: PropType<string | undefined>; default: string; }; tooltip: { type: PropType<string | undefined>; default: string; }; color: { type: PropType<string | undefined>; default: string; }; }; export declare type TimeLineTagProps = ExtractPropTypes<typeof timeLineTagProps>; export declare const timeLineItemProps: { itemData: { type: PropType<ListItemDefaultDataType>; default: () => { status: string; times: never[]; title: string; tags: never[]; description: never[]; }; }; }; export declare type TimeLineItemProps = ExtractPropTypes<typeof timeLineItemProps>;