vue-msgbox icon indicating copy to clipboard operation
vue-msgbox copied to clipboard

replace setTimeout with Vue.nextTick & add vue dependency

Open lishengzxc opened this issue 8 years ago • 0 comments

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 avatar Jun 23 '16 15:06 lishengzxc