This commit is contained in:
gtz
2022-11-07 08:45:49 +08:00
commit 4d1231adc2
1222 changed files with 194552 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import Vue from 'vue'
// 按照方法调用vue组件用完即销毁
const ListDialogConstrctor = Vue.extend(require('./main.vue').default)
// 定义原型方法
Vue.prototype.$createListReview = (options) => {
const instance = new ListDialogConstrctor({
data: options
})
instance.vm = instance.$mount()
document.getElementById('app').appendChild(instance.vm.$el)
}