mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 06:11:53 +08:00
This commit is contained in:
parent
c0f738fcef
commit
a2cc2f1c13
@ -141,6 +141,8 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |
|
|||||||
nextElment.classList.add("b3-list-item--focus");
|
nextElment.classList.add("b3-list-item--focus");
|
||||||
target.parentElement.remove();
|
target.parentElement.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dialog.element.querySelector(".counter").textContent = (parseInt(dialog.element.querySelector(".counter").textContent) - 1).toString()
|
||||||
if (cb) {
|
if (cb) {
|
||||||
cb(removeResponse);
|
cb(removeResponse);
|
||||||
}
|
}
|
||||||
@ -184,6 +186,7 @@ ${unicode2Emoji(item.ial.icon, false, "b3-list-item__graphic", true)}
|
|||||||
</div>`;
|
</div>`;
|
||||||
isFirst = false;
|
isFirst = false;
|
||||||
} else {
|
} else {
|
||||||
|
// 块被删除的情况
|
||||||
listHTML += `<div data-type="card-item" class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}">
|
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 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}">
|
<span data-type="remove" data-id="${item.id}" class="b3-list-item__action b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.removeDeck}">
|
||||||
|
Loading…
Reference in New Issue
Block a user