mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
feat: expose closable
for Modal
This commit is contained in:
parent
695f4fc374
commit
a7b2c2e348
@ -21,7 +21,8 @@ let AntModal = React.createClass({
|
||||
transitionName: 'zoom',
|
||||
maskAnimation: 'fade',
|
||||
confirmLoading: false,
|
||||
visible: false
|
||||
visible: false,
|
||||
closable: true,
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
| visible | 对话框是否可见 | Boolean | 无 |
|
||||
| confirmLoading | 确定按钮 loading | Boolean | 无 |
|
||||
| title | 标题 | React.Element | 无 |
|
||||
| closable | 是否显示右上角的关闭按钮 | Boolean | true |
|
||||
| onOk | 点击确定回调 | function | 无 |
|
||||
| onCancel | 点击遮罩层或右上角叉或取消按钮的回调 | function | 无 |
|
||||
| width | 宽度 | String or Number | 520 |
|
||||
|
Loading…
Reference in New Issue
Block a user