From 2682e38fcea26a70d3bac34c79931973b989eab5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 10 十二月 2023 19:12:14 +0800
Subject: [PATCH] 2023-12-10

---
 src/menu/components/chart/antv-bar/chartcompile/index.jsx |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/index.jsx b/src/menu/components/chart/antv-bar/chartcompile/index.jsx
index d7ba22d..8b6a146 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/index.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/index.jsx
@@ -482,6 +482,22 @@
   resetPlot = (_plot) => {
     const { config } = this.props
 
+    if (_plot.axis) {
+      _plot.grid = _plot.axis.includes('grid') ? 'show' : 'hidden'
+      _plot.x_line = _plot.axis.includes('x_line') ? 'show' : 'hidden'
+      _plot.y_line = _plot.axis.includes('y_line') ? 'show' : 'hidden'
+      _plot.tick = _plot.axis.includes('tick') ? 'show' : 'hidden'
+
+      delete _plot.axis
+    }
+    
+    if (_plot.tickVals) {
+      _plot.x_label = _plot.tickVals.includes('x_label') ? 'show' : 'hidden'
+      _plot.y_label = _plot.tickVals.includes('y_label') ? 'show' : 'hidden'
+
+      delete _plot.tickVals
+    }
+
     if (_plot.datatype === 'statistics') {
       _plot.enabled = 'false'
       _plot.customs = []
@@ -613,14 +629,14 @@
         <Modal
           wrapClassName="mk-pop-modal"
           visible={visible}
-          width={1100}
+          width={1200}
           maskClosable={false}
           onOk={this.onSubmit}
           onCancel={() => { this.setState({ visible: false }) }}
           destroyOnClose
         >
           {config.name ? <div className="mk-com-name">{config.name} - 缂栬緫</div> : null}
-          <Tabs activeKey={view} className="menu-chart-edit-box" onChange={this.changeTab}>
+          <Tabs activeKey={view} className="menu-chart-line-edit-box" onChange={this.changeTab}>
             <TabPane tab="缁勪欢璁剧疆" key="base">
               <ModalForm formlist={baseFormlist} inputSubmit={this.onSubmit} wrappedComponentRef={(inst) => this.baseRef = inst}/>
             </TabPane>

--
Gitblit v1.8.0