From 4f29ad0f9800313ea239064a1b5aab663a794674 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 22 五月 2024 17:55:43 +0800
Subject: [PATCH] 2024-05-22

---
 src/menu/modalconfig/index.jsx |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/menu/modalconfig/index.jsx b/src/menu/modalconfig/index.jsx
index 6388269..3ffa871 100644
--- a/src/menu/modalconfig/index.jsx
+++ b/src/menu/modalconfig/index.jsx
@@ -61,7 +61,6 @@
 
   componentDidMount () {
     MKEmitter.addListener('completeSave', this.completeSave)
-    MKEmitter.addListener('submitStyle', this.getStyle)
   }
 
   /**
@@ -72,7 +71,6 @@
       return
     }
     MKEmitter.removeListener('completeSave', this.completeSave)
-    MKEmitter.removeListener('submitStyle', this.getStyle)
   }
 
   /**
@@ -197,24 +195,6 @@
       visible: true,
       card: card,
       formlist: getModalForm(card, _inputfields, _tabfields, _linkableFields, _linksupFields, columns)
-    })
-  }
-
-  getStyle = (comIds, style) => {
-    const { config } = this.state
-
-    if (comIds[0] !== 'form') return
-
-    let Index = config.fields.findIndex(n => n.uuid === comIds[1])
-
-    if (Index === -1) return
-    
-    let _config = fromJS(config).toJS()
-
-    _config.fields[Index].style = style
-
-    this.setState({
-      config: _config
     })
   }
 

--
Gitblit v1.8.0