@npmxiaowu/h-ui-plus
Version:
Vue3 中基于Element-plus二次封装基础组件文档
149 lines (148 loc) • 6.08 kB
TypeScript
declare const TDatePicker: ({
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: (DateConstructor | StringConstructor | ArrayConstructor)[];
};
plusTime: {
type: BooleanConstructor;
default: boolean;
};
type: {
type: import("vue").PropType<"date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange">;
validator: (value: string) => boolean;
default: string;
};
shortcuts: {
type: ArrayConstructor;
};
isPickerOptions: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onChange?: ((...args: any[]) => any) | undefined;
}>, {
props: any;
emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
$attrs: any;
slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
time: any;
DatePicker: import("vue").Ref<any, any>;
attrsBind: import("vue").ComputedRef<any>;
state: {
dateOptions: unknown[] | undefined;
};
getShortcuts: (type: any) => any;
subtractDays: (date: Date, days: number) => Date;
subtractMonths: (date: Date, months: number) => Date;
dateChange: (val: any[]) => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], import("vue").PublicProps, {
type: "date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange";
plusTime: boolean;
isPickerOptions: boolean;
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: (DateConstructor | StringConstructor | ArrayConstructor)[];
};
plusTime: {
type: BooleanConstructor;
default: boolean;
};
type: {
type: import("vue").PropType<"date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange">;
validator: (value: string) => boolean;
default: string;
};
shortcuts: {
type: ArrayConstructor;
};
isPickerOptions: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onChange?: ((...args: any[]) => any) | undefined;
}>, {
props: any;
emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
$attrs: any;
slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
time: any;
DatePicker: import("vue").Ref<any, any>;
attrsBind: import("vue").ComputedRef<any>;
state: {
dateOptions: unknown[] | undefined;
};
getShortcuts: (type: any) => any;
subtractDays: (date: Date, days: number) => Date;
subtractMonths: (date: Date, months: number) => Date;
dateChange: (val: any[]) => void;
}, {}, {}, {}, {
type: "date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange";
plusTime: boolean;
isPickerOptions: boolean;
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: (DateConstructor | StringConstructor | ArrayConstructor)[];
};
plusTime: {
type: BooleanConstructor;
default: boolean;
};
type: {
type: import("vue").PropType<"date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange">;
validator: (value: string) => boolean;
default: string;
};
shortcuts: {
type: ArrayConstructor;
};
isPickerOptions: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onChange?: ((...args: any[]) => any) | undefined;
}>, {
props: any;
emits: (event: "update:modelValue" | "change", ...args: any[]) => void;
$attrs: any;
slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
time: any;
DatePicker: import("vue").Ref<any, any>;
attrsBind: import("vue").ComputedRef<any>;
state: {
dateOptions: unknown[] | undefined;
};
getShortcuts: (type: any) => any;
subtractDays: (date: Date, days: number) => Date;
subtractMonths: (date: Date, months: number) => Date;
dateChange: (val: any[]) => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", {
type: "date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange";
plusTime: boolean;
isPickerOptions: boolean;
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & {
label?: string | undefined;
}) & Record<string, any>;
export default TDatePicker;