Skip to content

Commit

Permalink
fix(drawer): set default value of size to fixed (#1859)
Browse files Browse the repository at this point in the history
Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Feb 22, 2022
1 parent ea8191c commit aed40f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Drawer: React.FC<DrawerProps> = ({
title,
onClose,
closeIcon,
size,
size = 'fixed',
width,
maskClosable = true,
...restProps
Expand Down
2 changes: 1 addition & 1 deletion src/drawer/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface DrawerProps {
/** 强制渲染 */
forceRender?: boolean;
/** 大小 */
size: 'normal' | 'fixed';
size?: 'normal' | 'fixed';
destroyOnClose?: boolean;
style?: React.CSSProperties;
wrapClassName?: string;
Expand Down

1 comment on commit aed40f7

@vercel
Copy link

@vercel vercel bot commented on aed40f7 Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.