text: // 导入组件，组件必须声明 name
  import Vue from 'vue'
  import FoxMessage from './src'
  
  const messageBox = Vue.extend(FoxMessage)
  
  FoxMessage.install = function (options, type) {
    if (options === undefined || options === null) {
      options = {
        content: ''
      }
    } else if (typeof options === 'string' || typeof options === 'number') {
      options = {
        content: options
      }
      if (type != undefined && options != null) {
        options.type = type;
      }
    }
  
    let instance = new messageBox({
      data: options
    }).$mount()
  
    document.body.appendChild(instance.$el)
  
    Vue.nextTick(() => {
      instance.visible = true
    })
  }
  
  export default FoxMessage