mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 09:25:53 +08:00
IM
This commit is contained in:
33
im/src/components/user/user-card/index.js
Normal file
33
im/src/components/user/user-card/index.js
Normal 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
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user