amis-rpc-design/node_modules/rc-drawer/es/Drawer.d.ts

16 lines
684 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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;