From e01d39d4a2c3137fdce5f18f9589a34df13b7963 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 05 十一月 2023 10:37:06 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx index e99578c..47eb46b 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx @@ -284,7 +284,7 @@ this.props.onChange(values, record.$$uuid) - this.setState({visible: false}) + this.setState({visible: false, value: record.$$uuid}) if (config.$ctrl) { MKEmitter.emit('colBlur' + config.tableId, lineId, config.uuid) @@ -294,11 +294,13 @@ if (config.enter === '$noAct') return - if (/\$next/.test(config.enter)) { - MKEmitter.emit('nextLine' + config.tableId, lineId, config.enter.replace('$next_', '')) - } else { - MKEmitter.emit('setFocus' + config.tableId, lineId, config.enter) - } + setTimeout(() => { + if (/\$next/.test(config.enter)) { + MKEmitter.emit('nextLine' + config.tableId, lineId, config.enter.replace('$next_', '')) + } else { + MKEmitter.emit('setFocus' + config.tableId, lineId, config.enter) + } + }, 10) } trigger = (e) => { -- Gitblit v1.8.0