@@ -96,7 +96,13 @@ const NoticeList: FC<NoticeListProps> = (props) => {
9696        nodeRef , 
9797      )  =>  { 
9898        const  {  key,  times }  =  config  as  InnerOpenConfig ; 
99-         const  {  className : configClassName ,  style : configStyle  }  =  config  as  NoticeConfig ; 
99+         const  { 
100+           className : configClassName , 
101+           style : configStyle , 
102+           classNames : configClassNames , 
103+           styles : configStyles , 
104+           ...restConfig 
105+         }  =  config  as  NoticeConfig ; 
100106        const  dataIndex  =  keys . findIndex ( ( item )  =>  item . key  ===  key ) ; 
101107
102108        // If dataIndex is -1, that means this notice has been removed in data, but still in dom 
@@ -132,19 +138,23 @@ const NoticeList: FC<NoticeListProps> = (props) => {
132138        return  ( 
133139          < div 
134140            ref = { nodeRef } 
135-             className = { clsx ( `${ prefixCls }  -notice-wrapper` ,  motionClassName ) } 
141+             className = { clsx ( 
142+               `${ prefixCls }  -notice-wrapper` , 
143+               motionClassName , 
144+               configClassNames ?. wrapper , 
145+             ) } 
136146            style = { { 
137147              ...motionStyle , 
138148              ...stackStyle , 
139-               ...configStyle , 
149+               ...configStyles ?. wrapper , 
140150            } } 
141151            onMouseEnter = { ( )  => 
142152              setHoverKeys ( ( prev )  =>  ( prev . includes ( key )  ? prev  : [ ...prev ,  key ] ) ) 
143153            } 
144154            onMouseLeave = { ( )  =>  setHoverKeys ( ( prev )  =>  prev . filter ( ( k )  =>  k  !==  key ) ) } 
145155          > 
146156            < Notice 
147-               { ...config } 
157+               { ...restConfig } 
148158              ref = { ( node )  =>  { 
149159                if  ( dataIndex  >  - 1 )  { 
150160                  dictRef . current [ key ]  =  node ; 
@@ -153,7 +163,10 @@ const NoticeList: FC<NoticeListProps> = (props) => {
153163                } 
154164              } } 
155165              prefixCls = { prefixCls } 
166+               classNames = { configClassNames } 
167+               styles = { configStyles } 
156168              className = { clsx ( configClassName ,  ctxCls ?. notice ) } 
169+               style = { configStyle } 
157170              times = { times } 
158171              key = { key } 
159172              eventKey = { key } 
0 commit comments