David Santos
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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 { |
|
|
|