mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:44:23 +08:00
1 parent
e91c30ca3c
commit
078c4e0736
3 files changed
+17
-10
No files matched your search
@@ -8353,7 +8353,7 @@ function addStructureAttribute(attribute = {}) {
|
||||
}
|
||||
const remove = document.createElement("button");
|
||||
remove.type = "button";
|
||||
remove.className = "small-button";
|
||||
remove.className = "icon-button";
|
||||
remove.textContent = "×";
|
||||
remove.title = "删除属性";
|
||||
remove.setAttribute("aria-label", remove.title);
|
||||
@@ -8373,9 +8373,9 @@ function addStructureReference(reference = {}) {
|
||||
for (const [index, item] of state.doc.pages.entries()) page.add(new Option(`第${index + 1}页`, item.id));
|
||||
if (reference.pageId) page.value = reference.pageId;
|
||||
const remove = document.createElement("button"), add = document.createElement("button");
|
||||
for (const [button, label, text] of [[remove, "删除引用", "×"], [add, "添加图元", "添加"]]) {
|
||||
for (const [button, label, text] of [[remove, "删除引用", "×"], [add, "添加图元", "+"]]) {
|
||||
button.type = "button";
|
||||
button.className = "small-button";
|
||||
button.className = "icon-button";
|
||||
button.textContent = text;
|
||||
button.title = label;
|
||||
button.setAttribute("aria-label", label);
|
||||
|
||||
Reference in new issue
Block a user