import { ExtractPropTypes, PropType, VNode } from 'vue'; import { ButtonProps } from '../button'; export type DrawerProps = ExtractPropTypes; export declare const DRAWER_PROPS: { /** * 弹框显示隐藏 */ visible: { type: BooleanConstructor; default: boolean; }; /** * 抽屉标题 */ title: { type: StringConstructor; default: string; }; /** * 抽屉内容 */ content: { type: StringConstructor; default: string; }; /** * 控制按钮 loading */ loading: { type: BooleanConstructor; default: boolean; }; /** * 是否支持全屏 */ scale: { type: BooleanConstructor; default: boolean; }; /** * 关闭按钮文字 */ cancelButtonText: { type: StringConstructor; default: string; }; /** * 关闭按钮 props */ cancelButtonProps: { type: PropType | undefined>; default: () => {}; }; /** * 隐藏取消按钮 */ hideCancelButton: { type: BooleanConstructor; default: boolean; }; /** * 确认按钮文字 */ confirmButtonText: { type: StringConstructor; default: string; }; /** * 确认按钮 props */ confirmButtonProps: { type: PropType | undefined>; default: () => {}; }; /** * 隐藏确认按钮 */ hideConfirmButton: { type: BooleanConstructor; default: boolean; }; /** * 是否显示关闭图标 */ closable: { type: BooleanConstructor; default: boolean; }; /** * 是否按下 esc 关闭抽屉 */ closeOnEsc: { type: BooleanConstructor; default: boolean; }; /** * 点击遮罩层是否关闭抽屉 */ closeOnOverlayClick: { type: BooleanConstructor; default: boolean; }; /** * 是否显示遮罩层 */ showOverlay: { type: BooleanConstructor; default: boolean; }; /** * 关闭抽屉是否销毁子元素 */ destroyOnClose: { type: BooleanConstructor; default: boolean; }; /** * 抽屉宽度 */ width: { type: (StringConstructor | NumberConstructor)[]; default: number; }; /** * 抽屉高度 */ height: { type: (StringConstructor | NumberConstructor)[]; default: undefined; }; /** * 抽屉位置 */ placement: { type: PropType<"left" | "right" | "top" | "bottom">; default: string; }; /** * 按钮列表 */ buttonList: { type: PropType[]>; default: boolean; }; /** * 容器 className */ containerClass: { type: StringConstructor; default: undefined; }; /** * 是否需要行内样式 */ noInlineStyle: { type: BooleanConstructor; default: boolean; }; /** * 确认事件 */ onConfirm: { type: PropType<() => void | Promise>; default: undefined; }; /** * 关闭事件 */ onClose: { type: PropType<() => void>; default: undefined; }; teleport: { type: PropType; /** * 确认事件 */ default: string; }; lockScroll: { type: BooleanConstructor; default: boolean; }; lazyRender: { type: BooleanConstructor; default: boolean; }; };