From 040ab1cc344a81f6b055210d7fbc78fb2fce505b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 14 五月 2025 09:54:27 +0800
Subject: [PATCH] 2025-05-14

---
 src/tabviews/custom/components/chart/antv-X6/index.scss |    3 +++
 src/tabviews/custom/components/chart/antv-X6/index.jsx  |    9 ++++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/chart/antv-X6/index.jsx b/src/tabviews/custom/components/chart/antv-X6/index.jsx
index ecedc25..ed4283f 100644
--- a/src/tabviews/custom/components/chart/antv-X6/index.jsx
+++ b/src/tabviews/custom/components/chart/antv-X6/index.jsx
@@ -1563,12 +1563,16 @@
   setback = () => {
     if (this.mkGraph.canUndo()) {
       this.mkGraph.undo()
+    } else {
+      message.warning('鏃犲彲鎾ら攢璁板綍锛�')
     }
   }
 
   setprev = () => {
     if (this.mkGraph.canRedo()) {
       this.mkGraph.redo()
+    } else {
+      message.warning('鏃犲彲鍓嶈繘璁板綍锛�')
     }
   }
 
@@ -1746,7 +1750,10 @@
     let cells = this.mkGraph.getCells()
     const that = this
 
-    if (cells.length === 0) return
+    if (cells.length === 0) {
+      message.warning('灏氭湭娣诲姞鍏冪礌锛�')
+      return
+    }
 
     confirm({
       title: '纭畾娓呯┖鍏冪礌鍚�?',
diff --git a/src/tabviews/custom/components/chart/antv-X6/index.scss b/src/tabviews/custom/components/chart/antv-X6/index.scss
index 63daf7b..d4e81ef 100644
--- a/src/tabviews/custom/components/chart/antv-X6/index.scss
+++ b/src/tabviews/custom/components/chart/antv-X6/index.scss
@@ -94,6 +94,9 @@
       border-right: 1px solid #dfe3e8;
       transition: all 0.2s;
 
+      .x6-port {
+        display: none;
+      }
       .x6-widget-stencil-title {
         display: none;
       }

--
Gitblit v1.8.0