File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -103,19 +103,20 @@ const Alert = {
103
103
}
104
104
}
105
105
106
+ // closeable when closeText is assigned
107
+ if ( closeText ) {
108
+ closable = true
109
+ }
110
+
106
111
const alertCls = classNames ( prefixCls , {
107
112
[ `${ prefixCls } -${ type } ` ] : true ,
108
113
[ `${ prefixCls } -close` ] : ! closing ,
109
114
[ `${ prefixCls } -with-description` ] : ! ! description ,
110
115
[ `${ prefixCls } -no-icon` ] : ! showIcon ,
111
116
[ `${ prefixCls } -banner` ] : ! ! banner ,
117
+ [ `${ prefixCls } -closable` ] : closable ,
112
118
} )
113
119
114
- // closeable when closeText is assigned
115
- if ( closeText ) {
116
- closable = true
117
- }
118
-
119
120
const closeIcon = closable ? (
120
121
< a onClick = { this . handleClose } class = { `${ prefixCls } -close-icon` } >
121
122
{ closeText || < Icon type = 'close' /> }
You can’t perform that action at this time.
0 commit comments