This commit is contained in:
Vanessa 2022-12-02 17:37:29 +08:00
parent 3247769115
commit 8a9a570b0e
3 changed files with 4 additions and 1 deletions

View file

@ -76,8 +76,9 @@ export class Tree {
}
const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0);
html += `<li class="b3-list-item"
${(item.nodeType !== "NodeDocument" && item.type === "backlink") ? 'draggable="true"' : ""}
${(item.nodeType !== "NodeDocument" && item.type === "backlink") ? 'draggable="true" ' : ""}
${item.id ? 'data-node-id="' + item.id + '"' : ""}
${item.box ? 'data-notebook-id="' + item.box + '"' : ""}
data-treetype="${item.type}"
data-type="${item.nodeType}"
data-subtype="${item.subType}"