UNPKG

vue3-gantt-component

Version:

vue3甘特图

101 lines (99 loc) 3.14 kB
import { GanttDataProps, GanttProps, GanttHeadProps, GanttType } from './types.vue'; interface MyProps extends GanttProps { data: GanttDataProps[]; head: GanttHeadProps[]; } declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, { headWidth: string; height: string; ganttType: string; headBodyPaddingY: number; headBodyPaddingX: number; showLine: boolean; open: boolean; }>, { setGanttType: (type: GanttType) => void; initGantt: (time?: 0 | undefined) => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { onClickText: (params: GanttDataProps) => void; }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, { headWidth: string; height: string; ganttType: string; headBodyPaddingY: number; headBodyPaddingX: number; showLine: boolean; open: boolean; }>>> & { onOnClickText?: ((params: GanttDataProps) => any) | undefined; }, { headWidth: string; headBodyPaddingY: number; headBodyPaddingX: number; open: boolean; height: string; showLine: boolean; ganttType: GanttType; }, {}>, { parentSlot?(_: { width: number; activeWidth: number; surplusWidth: number; overflowWidth: number | undefined; status?: import('./types.vue').GanttDataStatusProps | undefined; ganttId: string; left: number; progress: number; isParent: boolean; parentIsEmpty: boolean; isEmpty: boolean; overtimeWidth?: number | undefined; finishTime: string | null; startTime: string; endTime: string; start: boolean; children?: GanttDataProps[] | undefined; }): any; childrenSlot?(_: { width: number; activeWidth: number; surplusWidth: number; overflowWidth: number | undefined; status?: import('./types.vue').GanttDataStatusProps | undefined; ganttId: string; left: number; progress: number; isParent: boolean; parentIsEmpty: boolean; isEmpty: boolean; overtimeWidth?: number | undefined; finishTime: string | null; startTime: string; endTime: string; start: boolean; children?: GanttDataProps[] | undefined; }): any; }>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };