Commit 9a58a5e 1 parent 24fe9ac commit 9a58a5e Copy full SHA for 9a58a5e
File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ class Mask extends React.Component {
29
29
overlayProps : PropTypes . object ,
30
30
onClose : PropTypes . func ,
31
31
timeoutId : PropTypes . string ,
32
+ style : PropTypes . style ,
33
+ className : PropTypes . string ,
32
34
} ;
33
35
34
36
static defaultProps = {
@@ -40,6 +42,8 @@ class Mask extends React.Component {
40
42
in : 'pulse' ,
41
43
out : 'zoomOut' ,
42
44
} ,
45
+ style : { } ,
46
+ className : '' ,
43
47
} ;
44
48
45
49
state = {
@@ -80,6 +84,8 @@ class Mask extends React.Component {
80
84
animation,
81
85
overlayProps,
82
86
timeoutId,
87
+ className,
88
+ style,
83
89
...others
84
90
} = this . props ;
85
91
/* eslint-enable */
@@ -102,7 +108,8 @@ class Mask extends React.Component {
102
108
type = { type }
103
109
shape = "toast"
104
110
title = { title }
105
- className = { `${ prefix } message-wrapper` }
111
+ style = { style }
112
+ className = { `${ prefix } message-wrapper ${ className } ` }
106
113
onClose = { this . handleClose }
107
114
>
108
115
{ content }
You can’t perform that action at this time.
0 commit comments