File tree 2 files changed +12
-10
lines changed
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,16 @@ export default defineComponent({
37
37
message: ' Notification Title' ,
38
38
description:
39
39
' A function will be be called after the notification is closed (automatically after the "duration" time of manually).' ,
40
- btn: h (
41
- Button ,
42
- {
43
- type: ' primary' ,
44
- size: ' small' ,
45
- onClick : () => notification .close (key ),
46
- },
47
- ' Confirm' ,
48
- ),
40
+ btn : () =>
41
+ h (
42
+ Button ,
43
+ {
44
+ type: ' primary' ,
45
+ size: ' small' ,
46
+ onClick : () => notification .close (key ),
47
+ },
48
+ { default : () => ' Confirm' },
49
+ ),
49
50
key ,
50
51
onClose: close ,
51
52
});
Original file line number Diff line number Diff line change @@ -172,7 +172,8 @@ function notice(args: NotificationArgsProps) {
172
172
const duration = args . duration === undefined ? defaultDuration : args . duration ;
173
173
getNotificationInstance ( args , notification => {
174
174
notification . notice ( {
175
- content : ( { prefixCls } ) => {
175
+ content : ( { prefixCls : outerPrefixCls } ) => {
176
+ const prefixCls = `${ outerPrefixCls } -notice` ;
176
177
let iconNode = null ;
177
178
if ( icon ) {
178
179
iconNode = ( ) => < span class = { `${ prefixCls } -icon` } > { renderHelper ( icon ) } </ span > ;
You can’t perform that action at this time.
0 commit comments