From 43008f1240d6568a3364721bb01fc7e31b33d147 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 24 十二月 2023 23:39:51 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/zshare/mutilform/mkSwitch/index.jsx | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/mutilform/mkSwitch/index.jsx b/src/tabviews/zshare/mutilform/mkSwitch/index.jsx index 62f8822..7cea5b9 100644 --- a/src/tabviews/zshare/mutilform/mkSwitch/index.jsx +++ b/src/tabviews/zshare/mutilform/mkSwitch/index.jsx @@ -33,6 +33,21 @@ } else { this.props.onChange(config.closeVal, other) } + + this.setState({}, () => { + if (config.enter === 'tab') { + MKEmitter.emit('mkFC', 'focus', config.tabUuid) + } else if (config.enter === 'sub') { + config.tabUuid && MKEmitter.emit('mkFC', 'focus', config.tabUuid) + if (config.linkFields || config.subFields || config.controlFields) { + setTimeout(() => { + this.props.onSubmit(config.tabUuid) + }, 1000) + } else { + this.props.onSubmit(config.tabUuid) + } + } + }) } componentWillUnmount () { -- Gitblit v1.8.0