UNPKG

vue3-gantt-customized

Version:

vue3甘特图 借鉴了原有作者ZRX

98 lines (96 loc) 3.18 kB
import { GanttDataProps, GanttProps, GanttHeadProps, GanttType } from './types.vue'; interface MyProps extends GanttProps { data: GanttDataProps[]; head: GanttHeadProps[]; } declare function __VLS_template(): { parentSlot?(_: { timePosition: any; width: any; activeWidth: number; surplusWidth: number; overflowWidth: any; status?: import('./types.vue').GanttDataStatusProps; ganttId: string; left: number; progress: number; isParent: boolean; parentIsEmpty: boolean; isEmpty: boolean; overtimeWidth?: number; timeInfoList: import('./types.vue').TimeInfo[]; children?: GanttDataProps[]; }): any; childrenSlot?(_: { width: number; activeWidth: number; surplusWidth: number; overflowWidth: number | undefined; status?: import('./types.vue').GanttDataStatusProps; ganttId: string; left: number; progress: number; isParent: boolean; parentIsEmpty: boolean; isEmpty: boolean; overtimeWidth?: number; timeInfoList: import('./types.vue').TimeInfo[]; children?: GanttDataProps[]; }): any; }; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__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) => void; }, {}, {}, {}, 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; }>>> & Readonly<{ onOnClickText?: ((params: GanttDataProps) => any) | undefined; }>, { headWidth: string; headBodyPaddingY: number; headBodyPaddingX: number; open: boolean; height: string; showLine: boolean; ganttType: GanttType; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; 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; }; };