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' ;
22import Notification from '../vc-notification' ;
33import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined' ;
44import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled' ;
@@ -66,6 +66,8 @@ export interface ArgsProps {
6666 onClose ?: ( ) => void ;
6767 icon ?: VNodeTypes ;
6868 key ?: string | number ;
69+ style ?: CSSProperties ;
70+ class ?: string ;
6971}
7072
7173function notice ( args : ArgsProps ) : MessageType {
@@ -85,7 +87,8 @@ function notice(args: ArgsProps): MessageType {
8587 instance . notice ( {
8688 key : target ,
8789 duration,
88- style : { } ,
90+ style : args . style || { } ,
91+ class : args . class ,
8992 content : ( ) => {
9093 return (
9194 < div
You can’t perform that action at this time.
0 commit comments