index.js
441 Bytes
import Dialog from './dialog';
export default {
install(Vue) {
let DialogObj=Vue.extend(Dialog);
Vue.prototype.$Dialog=function () {
// const div = document.createElement('div')
// document.body.appendChild(div)
// let DialogInit = new DialogObj().$mount(div)
let DialogInit=new DialogObj().$mount();
document.body.appendChild(DialogInit.$el);
}
}
}