jordium-gantt-vue3
Version:
A Vue 3 Gantt chart component for project management, task scheduling, resource planning, calendar, resource usage and timeline visualization.
58 lines (57 loc) • 2.27 kB
TypeScript
import { WorkingHoursConfig, CalendarSelectionDraft, CalendarTaskMovePayload } from '../../models/types/CalendarTypes';
import { Task } from '../../models/classes/Task';
interface Props {
anchorDate: Date;
tasks?: Task[];
workingHours?: WorkingHoursConfig;
resourceId?: string | number;
selectionMinuteStep?: number;
disabled?: boolean;
allDayLabel?: string;
/** v1.13.0 任务卡片底色透明度(0-1),底色为任务强调色(task.barColor 或主题色)与透明色的混合比例 */
taskCardOpacity?: number;
/** v1.13.0 任务卡片左侧强调条宽度(px) */
taskAccentWidth?: number;
}
declare var __VLS_1: {
style: {
top: string;
height: string;
left: string;
width: string;
borderLeftWidth: string;
borderLeftColor: string;
backgroundColor: string;
};
task: Task;
};
type __VLS_Slots = {} & {
'task-card'?: (props: typeof __VLS_1) => any;
};
declare const __VLS_component: import('vue').DefineComponent<Props, {
clearSelection: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"selection-complete": (range: CalendarSelectionDraft) => any;
"selection-cancel": (reason: "before-hook-rejected" | "user-cancelled") => any;
"task-click": (task: Task, event: MouseEvent) => any;
"task-move": (payload: CalendarTaskMovePayload) => any;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
"onSelection-complete"?: ((range: CalendarSelectionDraft) => any) | undefined;
"onSelection-cancel"?: ((reason: "before-hook-rejected" | "user-cancelled") => any) | undefined;
"onTask-click"?: ((task: Task, event: MouseEvent) => any) | undefined;
"onTask-move"?: ((payload: CalendarTaskMovePayload) => any) | undefined;
}>, {
tasks: Task[];
disabled: boolean;
selectionMinuteStep: number;
allDayLabel: string;
taskCardOpacity: number;
taskAccentWidth: number;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};