Skip to content

Commit

Permalink
feat(Drawer): support custom node closeHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
ZxBing0066 committed Oct 12, 2021
1 parent dfef717 commit 32a9aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Drawer/Drawer.jsx
Expand Up @@ -52,8 +52,8 @@ class Drawer extends Component {
getContainer: PropTypes.func,
/** 弹出层的z-index */
zIndex: PropTypes.number,
/** 传入 false/null 隐藏关闭控件 */
closeHandler: PropTypes.oneOf([null, false]),
/** 传入 false/null 隐藏关闭控件,或自定义控件 */
closeHandler: PropTypes.oneOfType([PropTypes.oneOf([null, false]), PropTypes.node]),
/** @ignore */
level: PropTypes.any
};
Expand Down

0 comments on commit 32a9aab

Please sign in to comment.