remove defaultClose

This commit is contained in:
zhujun24 2015-08-03 19:23:25 +08:00
parent 216af6d8df
commit befde97f70
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ var openNotification = function() {
var args = {
message: "这是标题",
description: "这是提示框的文案这是提示框示框的文案这是提示是提示框的文案这是提示框的文案",
defaultClose: close
onClose: close
};
notification.open(args);
};

View File

@ -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;