From 99f4651779d6e8d8024d8e60eae16f4de7fa931a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 27 六月 2023 18:47:26 +0800 Subject: [PATCH] 2023-06-27 --- src/tabviews/custom/components/chart/antv-X6/index.jsx | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-X6/index.jsx b/src/tabviews/custom/components/chart/antv-X6/index.jsx index 3e2990b..467d0da 100644 --- a/src/tabviews/custom/components/chart/antv-X6/index.jsx +++ b/src/tabviews/custom/components/chart/antv-X6/index.jsx @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' import { Spin, Tooltip, Empty, message, Modal, notification } from 'antd' -import { VerticalAlignTopOutlined, VerticalAlignBottomOutlined, SaveOutlined, ZoomInOutlined, ZoomOutOutlined, OneToOneOutlined, DoubleLeftOutlined, DownloadOutlined } from '@ant-design/icons' +import { VerticalAlignTopOutlined, VerticalAlignBottomOutlined, SaveOutlined, ZoomInOutlined, ZoomOutOutlined, OneToOneOutlined, DownloadOutlined } from '@ant-design/icons' import { Graph, Shape } from '@antv/x6' import { Stencil } from '@antv/x6-plugin-stencil' import { Transform } from '@antv/x6-plugin-transform' @@ -340,8 +340,6 @@ state = { config: null, - toolunfold: true, - nodeunfold: true, editing: false, node: null, arr_field: 'id,cells', @@ -1299,7 +1297,7 @@ } render() { - const { loading, config, empty, toolunfold, nodeunfold, node } = this.state + const { loading, config, empty, node } = this.state return ( <div className="custom-x6-plot-box" id={'anchor' + config.uuid} style={config.style}> @@ -1339,16 +1337,9 @@ </div> </div> <div className="canvas" style={{width: '100%', minHeight: config.plot.height, height: config.plot.height}} id={config.uuid + 'canvas'}> - <div id={config.uuid + 'stencil'} className={'mk-stencil ' + (toolunfold ? '' : 'merge')}> - <div className="tool-control" onClick={() => this.setState({toolunfold: !toolunfold})}> - <DoubleLeftOutlined /> - </div> - </div> + <div id={config.uuid + 'stencil'} className="mk-stencil"></div> <div id={config.uuid + 'container'} className="mk-container"></div> - <div className={'mk-node-edit ' + (nodeunfold ? '' : 'merge')}> - <div className="tool-control" onClick={() => this.setState({nodeunfold: !nodeunfold})}> - <DoubleLeftOutlined /> - </div> + <div className="mk-node-edit"> <div className="header">璁剧疆</div> {!node ? <div className="empty">鏈�変腑</div> : <NodeUpdate node={node} onChange={this.changeProps}/>} </div> -- Gitblit v1.8.0