@layui/layui-vue
Version:
a component library for Vue 3 base on layui-vue
34 lines (33 loc) • 1.53 kB
TypeScript
import type { RequiredDatePickerProps, DatePickerContextType } from "../interface";
import { type Dayjs } from "dayjs";
export declare const useDatePicker: (props: RequiredDatePickerProps) => {
RenderComponent: import("vue").ComputedRef<import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
renderComponentProps: import("vue").ComputedRef<DatePickerContextType>;
datePickerContext: {
modelValue: Dayjs | Dayjs[] | null;
format: string;
inputFormat: string;
size: import("../../../types").CommonSize;
type: import("../interface").DatePickerType;
disabled: boolean;
readonly: boolean;
allowClear: boolean;
simple: boolean;
range: boolean;
rangeSeparator: string;
prefixIcon: string;
suffixIcon: string;
timestamp: boolean;
yearPage: number;
name?: string | undefined;
placeholder?: string | string[] | undefined;
max?: string | undefined;
min?: string | undefined;
defaultValue?: import("dayjs").ConfigType | import("dayjs").ConfigType[];
defaultTime?: import("dayjs").ConfigType | import("dayjs").ConfigType[];
contentStyle?: import("vue").StyleValue;
contentClass?: import("../../../types").CommonClass | undefined;
disabledDate?: ((date: Date) => boolean) | undefined;
shortcuts?: import("../interface").Shortcuts[] | undefined;
};
};