MessageBox: swap 'message' and 'title' when called with 'this.$msgbox' (#1067)

pull/1099/head
杨奕 2016-11-16 11:06:03 +08:00 committed by FuryBean
parent 22bc5f312a
commit 238f8625b1
1 changed files with 2 additions and 2 deletions

View File

@ -109,10 +109,10 @@ const showNextMsg = () => {
const MessageBox = function(options, callback) {
if (typeof options === 'string') {
options = {
title: options
message: options
};
if (arguments[1]) {
options.message = arguments[1];
options.title = arguments[1];
}
if (arguments[2]) {
options.type = arguments[2];