mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
02dbce30e6
commit
2360746cc1
1 changed files with 3 additions and 3 deletions
|
|
@ -58,8 +58,8 @@ export class Tree {
|
||||||
iconHTML = '<svg class="b3-list-item__graphic"><use xlink:href="#iconTags"></use></svg>';
|
iconHTML = '<svg class="b3-list-item__graphic"><use xlink:href="#iconTags"></use></svg>';
|
||||||
} else if (item.type === "backlink") {
|
} else if (item.type === "backlink") {
|
||||||
iconHTML = `<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.nodeType, item.subType)}"></use></svg>`;
|
iconHTML = `<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.nodeType, item.subType)}"></use></svg>`;
|
||||||
} else if (item.type === "NodeHeading") {
|
} else if (item.type === "outline") {
|
||||||
iconHTML = `<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.type, item.subType)}"></use></svg>`;
|
iconHTML = `<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.nodeType, item.subType)}"></use></svg>`;
|
||||||
}
|
}
|
||||||
let countHTML = "";
|
let countHTML = "";
|
||||||
if (item.count) {
|
if (item.count) {
|
||||||
|
|
@ -121,7 +121,7 @@ data-def-path="${item.defPath}">
|
||||||
<svg data-id="${item.id}" class="b3-list-item__arrow${item.children ? "" : " fn__hidden"}"><use xlink:href="#iconRight"></use></svg>
|
<svg data-id="${item.id}" class="b3-list-item__arrow${item.children ? "" : " fn__hidden"}"><use xlink:href="#iconRight"></use></svg>
|
||||||
</span>
|
</span>
|
||||||
${iconHTML}
|
${iconHTML}
|
||||||
<span class="b3-list-item__text">${item.content}</span>
|
<span class="b3-list-item__text" ${type === "outline" ? ' title="' + item.content + '"' : ""}>${item.content}</span>
|
||||||
${countHTML}
|
${countHTML}
|
||||||
${this.blockExtHTML || ""}
|
${this.blockExtHTML || ""}
|
||||||
</li>`;
|
</li>`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue