From dbf2f8a85f8218e9e570aa1d91bf4f17ac120353 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 18 十二月 2023 14:54:20 +0800 Subject: [PATCH] 2023-12-18 --- src/tabviews/zshare/mutilform/mkCheck/index.jsx | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/mutilform/mkCheck/index.jsx b/src/tabviews/zshare/mutilform/mkCheck/index.jsx index aea3f25..b6c3195 100644 --- a/src/tabviews/zshare/mutilform/mkCheck/index.jsx +++ b/src/tabviews/zshare/mutilform/mkCheck/index.jsx @@ -2,6 +2,8 @@ import PropTypes from 'prop-types' import { Checkbox } from 'antd' +import MKEmitter from '@/utils/events.js' + class MKCheck extends Component { static propTpyes = { config: PropTypes.object, @@ -20,6 +22,21 @@ } else { this.props.onChange(config.closeVal) } + + 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