mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 13:15:32 +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 getContainerFunc = () => HTMLElement;
|
||||||
|
|
||||||
|
type ILevelMove = number | [number, number];
|
||||||
|
|
||||||
const PlacementTypes = tuple('top', 'right', 'bottom', 'left');
|
const PlacementTypes = tuple('top', 'right', 'bottom', 'left');
|
||||||
type placementType = typeof PlacementTypes[number];
|
type placementType = typeof PlacementTypes[number];
|
||||||
|
|
||||||
@ -57,6 +59,9 @@ export interface DrawerProps {
|
|||||||
footer?: React.ReactNode;
|
footer?: React.ReactNode;
|
||||||
footerStyle?: React.CSSProperties;
|
footerStyle?: React.CSSProperties;
|
||||||
level?: string | string[] | null | undefined;
|
level?: string | string[] | null | undefined;
|
||||||
|
levelMove?:
|
||||||
|
| ILevelMove
|
||||||
|
| ((e: { target: HTMLElement; open: boolean }) => ILevelMove);
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IDrawerState {
|
export interface IDrawerState {
|
||||||
|
Loading…
Reference in New Issue
Block a user