amis-rpc-design/node_modules/rc-drawer/lib/Drawer.d.ts
2023-10-07 19:42:30 +08:00

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;