import React, { ReactNode } from 'react'; import XBaseLayout, { XBaseLayoutProps } from "../base/XBaseLayout"; import { Drawer } from "antd"; import PropsType from "./pop/PropsType"; export interface XDrawerProps extends XBaseLayoutProps, PropsType { /** * 标题 */ title?: string; /** * 显示位置 */ placement?: "top" | "right" | "bottom" | "left"; /** * 宽度 */ width?: string; /** * 高度 */ height?: string; /** * 容器 */ container?: any; mask?: boolean; /** * 关闭事件 */ onClose?: Function; } /** * 从上下左右弹出对话框 * @name 弹出框 * @groupName 弹出 */ export default class XDrawer extends XBaseLayout { static ComponentName: string; static Drawer: typeof Drawer; static Placement: { top: string; right: string; bottom: string; left: string; }; static defaultProps: { title: string; placement: string; width: string; height: string; mask: boolean; container: any; forceRender: boolean; onClose: any; visible: boolean; lazyChildren: boolean; styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; constructor(props: any); /** * 显示浮层 * @param title 标题 */ Show(title: string | ReactNode): void; /** * 隐藏浮层 */ Close(): void; onClose: () => void; render(): React.JSX.Element; }