feat(前端界面): 优化属性文案与列表对齐
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-25 21:42:30 +08:00
1 parent 8cbf0546ee
commit 3607c15162
3 files changed
+5 -9

No files matched your search

+2 -2
View File
@@ -1071,14 +1071,14 @@ function addInfoRow(container, values, sourceIndex) {
const input = document.createElement("textarea");
input.rows = 1;
setInfoInput(input, value);
input.placeholder = values.length === 1 ? "关键词" : index === 0 ? "名称" : "内容";
input.placeholder = values.length === 1 ? "关键词" : index === 0 ? "属性名" : "属性值";
row.append(input);
}
const remove = document.createElement("button");
remove.type = "button";
remove.className = "icon-button";
remove.textContent = "×";
remove.title = values.length === 1 ? "删除词条" : "删除字段";
remove.title = values.length === 1 ? "删除词条" : "删除属性";
remove.addEventListener("click", () => row.remove());
row.append(remove);
container.append(row);