From cc1d7095ec6df622efbdaaabe3dec78ca3599d90 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 27 五月 2022 17:01:14 +0800
Subject: [PATCH] X轴自定义名称长度

---
 src/tabviews/custom/components/form/normal-form/index.jsx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/form/normal-form/index.jsx b/src/tabviews/custom/components/form/normal-form/index.jsx
index 84e9b94..a8ad272 100644
--- a/src/tabviews/custom/components/form/normal-form/index.jsx
+++ b/src/tabviews/custom/components/form/normal-form/index.jsx
@@ -76,6 +76,12 @@
       group.subButton.OpenType = 'formSubmit'
       group.subButton.execError = 'never'
 
+      group.subButton.syncComponentId = group.subButton.syncComponent ? group.subButton.syncComponent.pop() : ''
+
+      if (group.subButton.syncComponentId === config.uuid) {
+        group.subButton.syncComponentId = ''
+      }
+
       if (group.subButton.enable === 'false') {
         group.subButton.style.display = 'none'
       }
@@ -353,7 +359,7 @@
     const { config, loading, BID, data, group, dict, step } = this.state
 
     return (
-      <div className="custom-normal-form-box" style={{...config.style}}>
+      <div className="custom-normal-form-box" id={'anchor' + config.uuid} style={{...config.style}}>
         {loading ?
           <div className="loading-mask">
             <div className="ant-spin-blur"></div>

--
Gitblit v1.8.0