feat: expose closable for Modal

This commit is contained in:
Benjy Cui 2016-01-06 10:21:02 +08:00
parent 695f4fc374
commit a7b2c2e348
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,8 @@ let AntModal = React.createClass({
transitionName: 'zoom',
maskAnimation: 'fade',
confirmLoading: false,
visible: false
visible: false,
closable: true,
};
},

View File

@ -23,6 +23,7 @@
| visible | 对话框是否可见 | Boolean | 无 |
| confirmLoading | 确定按钮 loading | Boolean | 无 |
| title | 标题 | React.Element | 无 |
| closable | 是否显示右上角的关闭按钮 | Boolean | true |
| onOk | 点击确定回调 | function | 无 |
| onCancel | 点击遮罩层或右上角叉或取消按钮的回调 | function | 无 |
| width | 宽度 | String or Number | 520 |