From 089bf5d2378b3c4a61d795b2a92bede2c193b771 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:22:58 +0800
Subject: [PATCH] 1
---
src/components/user/user-contacts/index.js | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/src/components/user/user-contacts/index.js b/src/components/user/user-contacts/index.js
new file mode 100644
index 0000000..ce39fd8
--- /dev/null
+++ b/src/components/user/user-contacts/index.js
@@ -0,0 +1,35 @@
+import UserContacts from './UserContacts'
+
+export default {
+ install(Vue) {
+ function Contacts(options) {
+ let _vm = this
+
+ let close = () => {
+ el.$destroy()
+ document.body.removeChild(el.$el)
+ }
+
+ const el = new Vue({
+ router: _vm.$router,
+ store: _vm.$store,
+ render(h) {
+ return h(UserContacts, {
+ on: {
+ close,
+ confirm: data => {
+ options.confirm(data)
+ close()
+ },
+ },
+ props: {},
+ })
+ },
+ }).$mount()
+
+ document.body.appendChild(el.$el)
+ }
+
+ Vue.prototype.$contacts = Contacts
+ },
+}
--
Gitblit v1.9.3