From 2a3629979d1bc6d0a6c90e481ac93eabd2bfefd1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 01 六月 2023 10:45:21 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/zshare/mutilform/index.jsx | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index 88e321e..067bfd2 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -546,9 +546,17 @@ if (unload) return if (action.setting && action.setting.focus && fieldMap.has(action.setting.focus)) { - setTimeout(() => { - MKEmitter.emit('mkFC', 'focus', fieldMap.get(action.setting.focus).uuid) - }, 500) + let focusItem = fieldMap.get(action.setting.focus) + + if (focusItem.type === 'text' || focusItem.type === 'number') { + setTimeout(() => { + MKEmitter.emit('mkFC', 'focus', focusItem.uuid) + }, 50) + } else { + setTimeout(() => { + MKEmitter.emit('mkFC', 'focus', focusItem.uuid) + }, 500) + } } if (deForms.length > 0) { -- Gitblit v1.8.0