@pit-front-end/components
Version:
湖南创智艾泰克科技有限公司
43 lines (42 loc) • 1.3 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
type DoneFn = (cancel?: boolean) => void;
export type DrawerBeforeCloseFn = (done: DoneFn) => void;
export declare const drawerProps: {
readonly modelValue: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly title: {
readonly type: StringConstructor;
readonly default: "标题";
};
readonly size: {
readonly type: [NumberConstructor, StringConstructor];
readonly default: "30%";
};
readonly fullscreen: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly beforeClose: {
readonly type: PropType<DrawerBeforeCloseFn>;
};
readonly direction: {
readonly type: PropType<"ltr" | "rtl" | "ttb" | "btt">;
readonly default: "rtl";
};
readonly withHeader: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly modalClass: {
readonly type: StringConstructor;
readonly default: "pit-common-drawer";
};
};
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
export declare const drawerEmits: {
"update:modelValue": (value: Boolean) => Boolean;
};
export type DrawerEmits = typeof drawerEmits;
export {};