mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
3247769115
commit
8a9a570b0e
3 changed files with 4 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue