@@ -122,7 +122,7 @@ export default class MessageBox extends Component {
122
122
}
123
123
124
124
render ( ) : React . Element < any > {
125
- const { willUnmount, title, showClose, message, showInput, inputPlaceholder, showCancelButton, cancelButtonClass, showConfirmButton, confirmButtonClass, inputType } = this . props ;
125
+ const { willUnmount, title, showClose, message, showInput, inputPlaceholder, showCancelButton, cancelButtonClass, showConfirmButton, confirmButtonClass, customClass , inputType } = this . props ;
126
126
const { visible, editorErrorMessage } = this . state ;
127
127
128
128
return (
@@ -133,7 +133,7 @@ export default class MessageBox extends Component {
133
133
onAfterLeave = { ( ) => { willUnmount && willUnmount ( ) } }
134
134
>
135
135
< View show = { visible } >
136
- < div className = " el-message-box__wrapper" >
136
+ < div className = { this . classNames ( ' el-message-box__wrapper' , customClass ) } >
137
137
< div className = "el-message-box" >
138
138
{
139
139
title && (
@@ -211,6 +211,7 @@ MessageBox.propTypes = {
211
211
cancelButtonText : PropTypes . string ,
212
212
cancelButtonClass : PropTypes . string ,
213
213
confirmButtonClass : PropTypes . string ,
214
+ customClass : PropTypes . string ,
214
215
inputPlaceholder : PropTypes . string ,
215
216
inputPattern : PropTypes . regex ,
216
217
inputValidator : PropTypes . func ,
0 commit comments