From b6ccd63b80fc7017bfabc446787732a98c7cbab7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 06 一月 2021 19:10:28 +0800
Subject: [PATCH] 2021-01-06

---
 src/menu/components/search/main-search/index.jsx |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/search/main-search/index.jsx b/src/menu/components/search/main-search/index.jsx
index 43134bf..1970874 100644
--- a/src/menu/components/search/main-search/index.jsx
+++ b/src/menu/components/search/main-search/index.jsx
@@ -339,11 +339,18 @@
     })
   }
 
+  clickComponent = (e) => {
+    if (sessionStorage.getItem('style-control') === 'true') {
+      e.stopPropagation()
+      MKEmitter.emit('clickComponent', this.state.card)
+    }
+  }
+
   render() {
     const { dict, card, visible, sqlVerifing } = this.state
 
     return (
-      <div className={`main-search-edit-list ${card.wrap.float} ${card.wrap.show}`} style={card.style}>
+      <div className={`main-search-edit-list ${card.wrap.float} ${card.wrap.show || ''}`} onClick={this.clickComponent} id={card.uuid} style={card.style}>
         <DragElement
           list={card.search}
           handleList={this.handleList}

--
Gitblit v1.8.0