Skip to content

Conversation

@lishengzxc
Copy link

@lishengzxc lishengzxc commented Jun 23, 2016

MessageBox.prompt = function(message, title, options) {
  if (typeof title === 'object') {
    options = title;
    title = '';
  }
  return MessageBox(merge({
    title: title,
    message: message,
    showCancelButton: true,
    showInput: true,
    $type: 'prompt'
  }, options));
};

好像关于prompt的配置,已经设置了showInput: true,感觉不用再去判断this.$els.input了好像~

sorry,刚发现还是应该去判断下的 :)

@lishengzxc lishengzxc changed the title remove unnecessary judgment & add vue dependency replace setTimeout with Vue.nextTick & add vue dependency Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant