mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-12 04:13:13 +08:00
fix: Drawer levelMove types (#30714)
This commit is contained in:
parent
04d140d7a6
commit
63ddba3023
@ -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…
Reference in New Issue
Block a user