This commit is contained in:
Vanessa 2023-03-28 11:54:10 +08:00
parent c0f738fcef
commit a2cc2f1c13

View File

@ -141,6 +141,8 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |
nextElment.classList.add("b3-list-item--focus");
target.parentElement.remove();
}
dialog.element.querySelector(".counter").textContent = (parseInt(dialog.element.querySelector(".counter").textContent) - 1).toString()
if (cb) {
cb(removeResponse);
}
@ -184,6 +186,7 @@ ${unicode2Emoji(item.ial.icon, false, "b3-list-item__graphic", true)}
</div>`;
isFirst = false;
} else {
// 块被删除的情况
listHTML += `<div data-type="card-item" class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}">
<span class="b3-list-item__text">${item.content}</span>
<span data-type="remove" data-id="${item.id}" class="b3-list-item__action b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.removeDeck}">