From c98e45bfac25e9110ad0383faac54a54d98ea9d5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 18 十一月 2021 20:47:04 +0800
Subject: [PATCH] 2021-11-18

---
 src/mob/components/topbar/normal-navbar/index.jsx |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/mob/components/topbar/normal-navbar/index.jsx b/src/mob/components/topbar/normal-navbar/index.jsx
index 84a1fb9..fc6c79b 100644
--- a/src/mob/components/topbar/normal-navbar/index.jsx
+++ b/src/mob/components/topbar/normal-navbar/index.jsx
@@ -12,6 +12,7 @@
 import './index.scss'
 
 const NormalForm = asyncIconComponent(() => import('@/components/normalform'))
+const CopyComponent = asyncIconComponent(() => import('@/menu/components/share/copycomponent'))
 
 class NormalNavbar extends Component {
   static propTpyes = {
@@ -179,6 +180,19 @@
     this.updateComponent({...this.state.card, wrap: res})
   }
 
+  skip = () => {
+    const { wrap } = this.state.card
+
+    if (!wrap.linkmenu) return
+    
+    MKEmitter.emit('changeEditMenu', {
+      MenuID: wrap.linkmenu,
+      copyMenuId: '',
+      MenuNo: '',
+      MenuName: '',
+    })
+  }
+
   render() {
     const { card } = this.state
 
@@ -187,10 +201,10 @@
       right = <Icon type="logout" />
     }
     if (card.wrap.scan === 'true') {
-      right = !right ? <ExpandOutlined /> : <Icon type="ellipsis" />
+      right = !right ? <ExpandOutlined onDoubleClick={this.skip}/> : <Icon type="ellipsis" />
     }
     if (card.wrap.refresh === 'true') {
-      right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" />
+      right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" onDoubleClick={this.skip}/>
     }
 
     return (
@@ -200,6 +214,7 @@
             <NormalForm title="瀵艰埅鏍忚缃�" width={750} update={this.updateWrap} getForms={this.getWrapForms}>
               <Icon type="edit" style={{color: '#1890ff'}} title="缂栬緫"/>
             </NormalForm>
+            <CopyComponent type="topbar" card={card}/>
             <Icon className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle} type="font-colors" />
             <Icon className="close" title="鍒犻櫎缁勪欢" type="delete" onClick={() => this.props.deletecomponent(card.uuid)} />
           </div>

--
Gitblit v1.8.0