File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- import { VNodeTypes } from 'vue' ;
1
+ import { CSSProperties , VNodeTypes } from 'vue' ;
2
2
import Notification from '../vc-notification' ;
3
3
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined' ;
4
4
import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled' ;
@@ -66,6 +66,8 @@ export interface ArgsProps {
66
66
onClose ?: ( ) => void ;
67
67
icon ?: VNodeTypes ;
68
68
key ?: string | number ;
69
+ style ?: CSSProperties ;
70
+ class ?: string ;
69
71
}
70
72
71
73
function notice ( args : ArgsProps ) : MessageType {
@@ -85,7 +87,8 @@ function notice(args: ArgsProps): MessageType {
85
87
instance . notice ( {
86
88
key : target ,
87
89
duration,
88
- style : { } ,
90
+ style : args . style || { } ,
91
+ class : args . class ,
89
92
content : ( ) => {
90
93
return (
91
94
< div
You can’t perform that action at this time.
0 commit comments