Browse Source

fix: Drawer levelMove types (#30714)

pull/32034/head
David Santos 3 years ago
committed by GitHub
parent
commit
63ddba3023
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/drawer/index.tsx

5
components/drawer/index.tsx

@ -20,6 +20,8 @@ type EventType =
type getContainerFunc = () => HTMLElement;
type ILevelMove = number | [number, number];
const PlacementTypes = tuple('top', 'right', 'bottom', 'left');
type placementType = typeof PlacementTypes[number];
@ -57,6 +59,9 @@ export interface DrawerProps {
footer?: React.ReactNode;
footerStyle?: React.CSSProperties;
level?: string | string[] | null | undefined;
levelMove?:
| ILevelMove
| ((e: { target: HTMLElement; open: boolean }) => ILevelMove);
}
export interface IDrawerState {

Loading…
Cancel
Save