mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 13:15:32 +08:00
remove defaultClose
This commit is contained in:
parent
216af6d8df
commit
befde97f70
@ -17,7 +17,7 @@ var openNotification = function() {
|
|||||||
var args = {
|
var args = {
|
||||||
message: "这是标题",
|
message: "这是标题",
|
||||||
description: "这是提示框的文案这是提示框示框的文案这是提示是提示框的文案这是提示框的文案",
|
description: "这是提示框的文案这是提示框示框的文案这是提示是提示框的文案这是提示框的文案",
|
||||||
defaultClose: close
|
onClose: close
|
||||||
};
|
};
|
||||||
notification.open(args);
|
notification.open(args);
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ function notice(args) {
|
|||||||
</div>,
|
</div>,
|
||||||
duration: null,
|
duration: null,
|
||||||
closable: true,
|
closable: true,
|
||||||
onClose: args.defaultClose,
|
onClose: args.onClose,
|
||||||
style: {}
|
style: {}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -57,7 +57,7 @@ function notice(args) {
|
|||||||
</div>,
|
</div>,
|
||||||
duration: null,
|
duration: null,
|
||||||
closable: true,
|
closable: true,
|
||||||
onClose: args.defaultClose,
|
onClose: args.onClose,
|
||||||
style: {}
|
style: {}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -84,7 +84,7 @@ export default {
|
|||||||
notice(args);
|
notice(args);
|
||||||
},
|
},
|
||||||
close(key){
|
close(key){
|
||||||
Notification.notification.removeNotice(key);
|
notificationInstance.removeNotice(key);
|
||||||
},
|
},
|
||||||
config(options) {
|
config(options) {
|
||||||
top = isNaN(options.top) ? 24 : options.top;
|
top = isNaN(options.top) ? 24 : options.top;
|
||||||
|
Loading…
Reference in New Issue
Block a user