vue-devui
Version:
DevUI components based on Vite and Vue3
119 lines (118 loc) • 3.63 kB
TypeScript
import { PropType } from 'vue';
import './gantt-scale.scss';
import { GanttScaleUnit, GanttMilestone, GanttScaleDateInfo } from '../gantt-model';
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
/** 视图单位 */
unit: {
type: StringConstructor;
default: GanttScaleUnit;
};
height: {
type: NumberConstructor;
};
/** 开始时间 */
startDate: {
type: DateConstructor;
};
/** 结束时间 */
endDate: {
type: DateConstructor;
};
/** 甘特图时间轴容器左偏移像素 */
ganttScaleContainerOffsetLeft: {
type: NumberConstructor;
};
/** 版本里程碑列表 */
milestoneList: {
type: PropType<GanttMilestone[]>;
};
scrollElement: {
type: ObjectConstructor;
};
ganttBarContainerElement: {
type: ObjectConstructor;
};
}>, {
viewSCaleData: import("vue").Ref<{
dayOfMonthLabel: string;
dayOfWeekLabel: string;
monthLabel: string;
yearLabel: string;
date: Date;
monthStart?: boolean | undefined;
weekend?: boolean | undefined;
today?: boolean | undefined;
highlight?: boolean | undefined;
highlightStart?: boolean | undefined;
milestone?: string | undefined;
scaleStartVisable?: boolean | undefined;
index?: number | undefined;
}[], GanttScaleDateInfo[] | {
dayOfMonthLabel: string;
dayOfWeekLabel: string;
monthLabel: string;
yearLabel: string;
date: Date;
monthStart?: boolean | undefined;
weekend?: boolean | undefined;
today?: boolean | undefined;
highlight?: boolean | undefined;
highlightStart?: boolean | undefined;
milestone?: string | undefined;
scaleStartVisable?: boolean | undefined;
index?: number | undefined;
}[]>;
scaleWidth: import("vue").Ref<{
day: number;
week: number;
month: number;
}, {
day: number;
week: number;
month: number;
} | {
day: number;
week: number;
month: number;
}>;
addMilestone: (info: GanttScaleDateInfo) => void;
highlight: import("vue").Ref<boolean, boolean>;
highlightStartText: import("vue").Ref<string, string>;
highlightEndText: import("vue").Ref<string, string>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "addMilestone"[], "addMilestone", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/** 视图单位 */
unit: {
type: StringConstructor;
default: GanttScaleUnit;
};
height: {
type: NumberConstructor;
};
/** 开始时间 */
startDate: {
type: DateConstructor;
};
/** 结束时间 */
endDate: {
type: DateConstructor;
};
/** 甘特图时间轴容器左偏移像素 */
ganttScaleContainerOffsetLeft: {
type: NumberConstructor;
};
/** 版本里程碑列表 */
milestoneList: {
type: PropType<GanttMilestone[]>;
};
scrollElement: {
type: ObjectConstructor;
};
ganttBarContainerElement: {
type: ObjectConstructor;
};
}>> & Readonly<{
onAddMilestone?: ((...args: any[]) => any) | undefined;
}>, {
unit: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;