This commit is contained in:
2022-12-28 10:08:51 +08:00
parent 0fa93d545e
commit 3881370b6e
151 changed files with 17044 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import UserCardDetail from './UserCardDetail'
export default {
install(Vue) {
function user(user_id, options) {
let _vm = this
const el = new Vue({
router: _vm.$router,
store: _vm.$store,
render(h) {
return h(UserCardDetail, {
on: {
close: () => {
el.$destroy()
document.body.removeChild(el.$el)
},
changeRemark: data => {
options.editRemarkCallbak && options.editRemarkCallbak(data)
},
},
props: {
user_id,
},
})
},
}).$mount()
document.body.appendChild(el.$el)
}
Vue.prototype.$user = user
},
}