We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 674933a commit 123d04dCopy full SHA for 123d04d
components/message/index.tsx
@@ -1,4 +1,4 @@
1
-import { VNodeTypes } from 'vue';
+import { CSSProperties, VNodeTypes } from 'vue';
2
import Notification from '../vc-notification';
3
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
4
import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled';
@@ -66,6 +66,8 @@ export interface ArgsProps {
66
onClose?: () => void;
67
icon?: VNodeTypes;
68
key?: string | number;
69
+ style?: CSSProperties;
70
+ class?: string;
71
}
72
73
function notice(args: ArgsProps): MessageType {
@@ -85,7 +87,8 @@ function notice(args: ArgsProps): MessageType {
85
87
instance.notice({
86
88
key: target,
89
duration,
- style: {},
90
+ style: args.style || {},
91
+ class: args.class,
92
content: () => {
93
return (
94
<div
0 commit comments