asp-smart-ui-plus-test
Version:
A Component Library for Vue 3
123 lines (122 loc) • 4.84 kB
TypeScript
export declare const AspH5DatePicker: import("asp-smart-ui-plus/es/utils").SFCWithInstall<{
raw: import("vant/lib/utils").WithInstall<import("vue").DefineComponent<{
loading: BooleanConstructor;
readonly: BooleanConstructor;
allowHtml: BooleanConstructor;
optionHeight: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
showToolbar: {
type: BooleanConstructor;
default: true;
};
swipeDuration: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
visibleOptionNum: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
} & {
title: StringConstructor;
cancelButtonText: StringConstructor;
confirmButtonText: StringConstructor;
} & {
modelValue: {
type: import("vue").PropType<string[]>;
default: () => never[];
};
filter: import("vue").PropType<(columnType: string, options: import("vant").PickerOption[]) => import("vant").PickerOption[]>;
formatter: {
type: import("vue").PropType<(type: string, option: import("vant").PickerOption) => import("vant").PickerOption>;
default: (type: string, option: import("vant").PickerOption) => import("vant").PickerOption;
};
} & {
columnsType: {
type: import("vue").PropType<import("vant").DatePickerColumnType[]>;
default: () => string[];
};
minDate: {
type: DateConstructor;
default: () => Date;
validator: (val: unknown) => val is Date;
};
maxDate: {
type: DateConstructor;
default: () => Date;
validator: (val: unknown) => val is Date;
};
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "update:modelValue" | "change" | "confirm")[], "cancel" | "update:modelValue" | "change" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
loading: BooleanConstructor;
readonly: BooleanConstructor;
allowHtml: BooleanConstructor;
optionHeight: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
showToolbar: {
type: BooleanConstructor;
default: true;
};
swipeDuration: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
visibleOptionNum: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
} & {
title: StringConstructor;
cancelButtonText: StringConstructor;
confirmButtonText: StringConstructor;
} & {
modelValue: {
type: import("vue").PropType<string[]>;
default: () => never[];
};
filter: import("vue").PropType<(columnType: string, options: import("vant").PickerOption[]) => import("vant").PickerOption[]>;
formatter: {
type: import("vue").PropType<(type: string, option: import("vant").PickerOption) => import("vant").PickerOption>;
default: (type: string, option: import("vant").PickerOption) => import("vant").PickerOption;
};
} & {
columnsType: {
type: import("vue").PropType<import("vant").DatePickerColumnType[]>;
default: () => string[];
};
minDate: {
type: DateConstructor;
default: () => Date;
validator: (val: unknown) => val is Date;
};
maxDate: {
type: DateConstructor;
default: () => Date;
validator: (val: unknown) => val is Date;
};
}>> & {
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onCancel?: ((...args: any[]) => any) | undefined;
onConfirm?: ((...args: any[]) => any) | undefined;
}, {
formatter: (type: string, option: import("vant").PickerOption) => import("vant").PickerOption;
modelValue: string[];
readonly: boolean;
loading: boolean;
allowHtml: boolean;
optionHeight: string | number;
showToolbar: boolean;
swipeDuration: string | number;
visibleOptionNum: string | number;
minDate: Date;
maxDate: Date;
columnsType: import("vant").DatePickerColumnType[];
}>>;
name: string;
}> & Record<string, any>;
export default AspH5DatePicker;
export * from './src';