From c1844ae65c6ac4704d8a59e18510ed5c676de697 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 09 七月 2021 18:39:53 +0800
Subject: [PATCH] 2021-07-09

---
 src/menu/components/chart/antv-bar/index.jsx |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/index.jsx b/src/menu/components/chart/antv-bar/index.jsx
index f6d5eaa..c878654 100644
--- a/src/menu/components/chart/antv-bar/index.jsx
+++ b/src/menu/components/chart/antv-bar/index.jsx
@@ -35,7 +35,7 @@
   state = {
     dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
     card: null,
-    ismob: sessionStorage.getItem('appType') === 'mob',
+    appType: sessionStorage.getItem('appType'),
     eventListener: null
   }
 
@@ -1248,15 +1248,15 @@
   }
 
   render() {
-    const { card, ismob } = this.state
+    const { card, appType } = this.state
     let _style = resetStyle(card.style)
 
     return (
       <div className="menu-line-chart-edit-box" style={{..._style, height: card.plot.height || 400}} onClick={this.clickComponent} id={card.uuid}>
         <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
           <div className="mk-popover-control">
-            {!ismob ? <Icon className="plus" title="娣诲姞鎼滅储" onClick={this.addSearch} type="plus-circle" /> : null}
-            <Icon className="plus" title="娣诲姞鎸夐挳" onClick={this.addButton} type="plus-square" />
+            {appType !== 'mob' ? <Icon className="plus" title="娣诲姞鎼滅储" onClick={this.addSearch} type="plus-circle" /> : null}
+            {appType !== 'mob' ? <Icon className="plus" title="娣诲姞鎸夐挳" onClick={this.addButton} type="plus-square" /> : null}
             <ChartCompileForm config={card} dict={this.state.dict} plotchange={this.updateComponent}/>
             <CopyComponent type="line" card={card}/>
             <PasteComponent config={card} options={['action', 'search', 'form']} updateConfig={this.updateComponent} />
@@ -1272,11 +1272,11 @@
         </Popover>
         {card.plot.title || card.search.length > 0 ? <NormalHeader config={card} updateComponent={this.updateComponent}/> : null}
         <div className="canvas" id={card.uuid + 'canvas'}></div>
-        <ActionComponent
+        {appType !== 'mob' ? <ActionComponent
           type="chart"
           config={card}
           updateaction={this.updateComponent}
-        />
+        /> : null}
       </div>
     )
   }

--
Gitblit v1.8.0