index.js 415 Bytes
Newer Older
Nature's avatar
Nature committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import Vue from 'vue'
import Notify from '../Notify'

import elementUtil from '../../../common/scripts/elementUtil'

class VueNotify {
  constructor () {
    this._vm = undefined
  }
  show (option) {
    elementUtil.createElement('vum-notify')

    this._vm = new Vue(Notify)
    this._vm.$mount('[vum-notify]')

    setTimeout(() => {
      this._vm.showPlugin(option)
    })
  }
}
export default new VueNotify()