Skip to content

Commit

Permalink
fix(modal): 修复onOk handler问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Jul 16, 2018
1 parent ed3b0a9 commit 88b499f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class Modal extends Component<IModalComponentProps, IModalComponentState> {
className, style, title, bodyCotent,
content, icon, width, zIndex, showCancel,
okText, cancelText, type, closeText, showClose,
maskStyle, maskClosable, showMask, maskClick,
maskStyle, maskClosable, showMask, maskClick, onOk,
onCancel,
...otherProps
} = this.props;
const preCls = 'yoshino-modal';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/Modal/demo/modalDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default function () {
title: '这是一个标题!!!',
content: '这是一个内容主题!这是一个内容主题!这是一个内容主题!这是一个内容主题!!',
width: 400,
onOk: () => true,
});
};

Expand Down

0 comments on commit 88b499f

Please sign in to comment.