UNPKG

vue-ganttastic-custom

Version:

A simple and customizable Gantt chart component for Vue.js

11 lines (10 loc) 618 B
import dayjs, { type Dayjs } from "dayjs"; import type { GGanttChartConfig } from "../components/GGanttChart.vue"; import type { GanttBarObject } from "../types"; export declare const DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss"; export default function useDayjsHelper(config?: GGanttChartConfig): { chartStartDayjs: import("vue").ComputedRef<dayjs.Dayjs>; chartEndDayjs: import("vue").ComputedRef<dayjs.Dayjs>; toDayjs: (input: string | Date | GanttBarObject, startOrEnd?: "start" | "end") => dayjs.Dayjs; format: (input: string | Date | Dayjs, pattern?: string | false) => string | Date; };