Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace setTimeout with Vue.nextTick & add vue dependency #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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