UNPKG

vue3-gantt-customized

Version:

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

88 lines (87 loc) 2.1 kB
export type GanttDataStatusProps = "finish" | "wait" | "progress" | "overtime" | "finishOvertime"; export type GanttType = "day" | "month"; export interface GanttStatusListProps { status: GanttDataStatusProps; text: string; } export interface BodyRectProps { height: number; scrollWidth: number; scrollHeight: number; } export interface GanttRefProps { initGantt: () => void; setGanttType: (type: GanttType) => void; } export interface GanttDataProps { timeInfoList: TimeInfo[]; children?: GanttDataProps[]; [key: string]: any; } export interface TimeInfo { startTime: string; endTime: string; start: boolean; name: string; } export interface GanttHeadProps { title: string; width?: string; key?: string; align?: "center" | "left" | "right"; } export interface IListIF extends GanttDataProps { status?: GanttDataStatusProps; ganttId: string; left: number; width: number; progress: number; isParent: boolean; parentIsEmpty: boolean; isEmpty: boolean; overtimeWidth?: number; } export interface GanttProps { /** * 数据 */ data: GanttDataProps[]; /** * 表头 */ head: GanttHeadProps[]; /** * 表头 */ ganttType?: GanttType; /** * 高度 */ height?: string; /** * 表头宽度 */ headWidth?: string; /** * 显示竖线 */ showLine?: boolean; /** * 左侧表格body区域Y轴内边距 */ headBodyPaddingY?: number; /** * 左侧表格body区域X轴内边距 */ headBodyPaddingX?: number; /** * 是否显示左侧收起按钮 */ open?: boolean; } export interface YearListIF { year: string; length: number; } declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; export default _default;