fengmao-ui
Version:
Vue3 中基于Element-plus二次封装基础组件文档
74 lines (73 loc) • 2.79 kB
TypeScript
import type { PropType } from 'vue';
declare const _sfc_main: import("vue").DefineComponent<{
value: {
type: (StringConstructor | DateConstructor | ArrayConstructor)[];
};
plusTime: {
type: BooleanConstructor;
default: boolean;
};
/***
* week周;month月;year年;dates多个日期;months多个月;years多个年;daterange日期范围;monthrange月份范围
* datetime日期和时间点;datetimerange日期和时间点范围
*/
type: {
type: 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;
};
}, {
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>;
attrsBind: import("vue").ComputedRef<any>;
state: {
dateOptions: unknown[] | undefined;
};
getShortcuts: (type: any) => any;
dateChange: (val: any[]) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
value: {
type: (StringConstructor | DateConstructor | ArrayConstructor)[];
};
plusTime: {
type: BooleanConstructor;
default: boolean;
};
/***
* week周;month月;year年;dates多个日期;months多个月;years多个年;daterange日期范围;monthrange月份范围
* datetime日期和时间点;datetimerange日期和时间点范围
*/
type: {
type: 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;
};
}>> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onChange?: ((...args: any[]) => any) | undefined;
}, {
type: "date" | "week" | "month" | "year" | "dates" | "months" | "years" | "daterange" | "monthrange" | "datetime" | "datetimerange";
plusTime: boolean;
isPickerOptions: boolean;
}, {}>;
export default _sfc_main;