UNPKG

jordium-gantt-vue3

Version:

A Vue 3 Gantt chart component for project management, task scheduling, resource planning, calendar, resource usage and timeline visualization.

38 lines (37 loc) 1.4 kB
export interface TaskBarConfig { showAvatar?: boolean; showTitle?: boolean; showProgress?: boolean; dragThreshold?: number; resizeHandleWidth?: number; enableDragDelay?: boolean; dragDelayTime?: number; /** * 任务标题渲染位置(默认 'inside')v1.12.0 * 'inside' → 标题渲染在任务条内部(白色文字,默认行为) * 'above' → 标题渲染在任务条上方,条内仅显示进度百分比 * 适用于任务条较窄(1–3天)或任务名称较长的场景 */ titlePosition?: 'inside' | 'above'; } export declare const DEFAULT_TASK_BAR_CONFIG: TaskBarConfig; /** 连线路径类型 */ export type LinkType = 'bezier' | 'straight' | 'orthogonal'; /** 连线样式配置 */ export interface LinkConfig { /** 连线路径类型,默认 'bezier' */ type?: LinkType; /** 普通连线颜色,默认 '#c0c4cc' */ color?: string; /** 高亮连线颜色,默认 '#409eff' */ highlightColor?: string; /** 悬停连线颜色,默认 '#67c23a' */ hoverColor?: string; /** 普通连线线宽,默认 2 */ width?: number; /** 高亮连线线宽,默认 4 */ highlightWidth?: number; /** 连线样式,'dotted' 虚线 | 'solid' 实线,默认 'dotted' */ style?: 'dotted' | 'solid'; } export declare const DEFAULT_LINK_CONFIG: Required<LinkConfig>;