输入框优化
This commit is contained in:
parent
a752238c78
commit
ace301a637
|
|
@ -783,6 +783,14 @@ const mergeFieldMetadata = (fields = []) => {
|
||||||
|
|
||||||
// 点击差异字段时添加到输入框
|
// 点击差异字段时添加到输入框
|
||||||
const addDiffFieldToInput = (field) => {
|
const addDiffFieldToInput = (field) => {
|
||||||
|
// 检查字段是否已存在
|
||||||
|
if (fieldLabelExists(field.label)) {
|
||||||
|
// 如果字段已存在,定位到该字段位置
|
||||||
|
focusFieldLabel(field.label);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 字段不存在,添加新字段
|
||||||
// 检查输入框末尾是否需要加分号
|
// 检查输入框末尾是否需要加分号
|
||||||
let separator = "";
|
let separator = "";
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue