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/mob/modalconfig/index.jsx | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/src/mob/modalconfig/index.jsx b/src/mob/modalconfig/index.jsx index 803af96..1fe5aaf 100644 --- a/src/mob/modalconfig/index.jsx +++ b/src/mob/modalconfig/index.jsx @@ -59,7 +59,6 @@ componentDidMount () { window.GLOB.formId = '' - MKEmitter.addListener('submitStyle', this.getStyle) MKEmitter.addListener('completeSave', this.completeSave) } @@ -70,30 +69,11 @@ this.setState = () => { return } - MKEmitter.removeListener('submitStyle', this.getStyle) MKEmitter.removeListener('completeSave', this.completeSave) } completeSave = () => { this.setState({saving: false}) - } - - 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