16 lines
684 B
TypeScript
16 lines
684 B
TypeScript
|
import type { PortalProps } from '@rc-component/portal';
|
||
|
import * as React from 'react';
|
||
|
import type { DrawerPanelEvents } from './DrawerPanel';
|
||
|
import type { DrawerPopupProps } from './DrawerPopup';
|
||
|
export type Placement = 'left' | 'top' | 'right' | 'bottom';
|
||
|
export interface DrawerProps extends Omit<DrawerPopupProps, 'prefixCls' | 'inline' | 'scrollLocker'>, DrawerPanelEvents {
|
||
|
prefixCls?: string;
|
||
|
open?: boolean;
|
||
|
onClose?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
||
|
destroyOnClose?: boolean;
|
||
|
getContainer?: PortalProps['getContainer'];
|
||
|
panelRef?: React.Ref<HTMLDivElement>;
|
||
|
}
|
||
|
declare const Drawer: React.FC<DrawerProps>;
|
||
|
export default Drawer;
|