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