File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export default {
21
21
maskStyle,
22
22
okButtonProps,
23
23
cancelButtonProps,
24
+ closable = false ,
24
25
} = props ;
25
26
const iconType = props . iconType || 'question-circle' ;
26
27
const okType = props . okType || 'primary' ;
@@ -62,6 +63,7 @@ export default {
62
63
wrapClassName = { classNames ( { [ `${ contentPrefixCls } -centered` ] : ! ! centered } ) }
63
64
onCancel = { e => close ( { triggerCancel : true } , e ) }
64
65
visible = { visible }
66
+ closable = { closable }
65
67
title = ""
66
68
transitionName = "zoom"
67
69
footer = ""
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ The properties of the object are follows:
53
53
| autoFocusButton | Specify which button to autofocus | null\| string: ` ok ` ` cancel ` | ` ok ` |
54
54
| cancelText | Text of the Cancel button | string | ` Cancel ` |
55
55
| centered | Centered Modal | Boolean | ` false ` |
56
+ | closable | Whether a close (x) button is visible on top right of the modal dialog or not | boolean | ` false ` |
56
57
| class | class of container | string | - |
57
58
| content | Content | string\| vNode | - |
58
59
| iconType | Icon ` type ` of the Icon component | string | ` question-circle ` |
Original file line number Diff line number Diff line change 52
52
| autoFocusButton | 指定自动获得焦点的按钮 | null\| string: ` ok ` ` cancel ` | ` ok ` |
53
53
| cancelText | 取消按钮文字 | string | 取消 |
54
54
| centered | 垂直居中展示 Modal | Boolean | ` false ` |
55
+ | closable | 是否显示右上角的关闭按钮 | boolean | ` false ` |
55
56
| class | 容器类名 | string | - |
56
57
| content | 内容 | string\| vNode | 无 |
57
58
| iconType | 图标 Icon 类型 | string | question-circle |
Original file line number Diff line number Diff line change 7
7
display : none ;
8
8
}
9
9
10
- .@{ant-prefix} -modal-close {
11
- display : none ;
12
- }
13
-
14
10
.@{ant-prefix} -modal-body {
15
11
padding : 32px 32px 24px ;
16
12
}
You can’t perform that action at this time.
0 commit comments