mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-08 02:22:20 +08:00
This commit is contained in:
parent
7560d31bdf
commit
14f0b47ed1
2
app/src/types/protyle.d.ts
vendored
2
app/src/types/protyle.d.ts
vendored
@ -132,6 +132,8 @@ declare class Lute {
|
||||
|
||||
public static GetHeadingID(node: ILuteNode): string;
|
||||
|
||||
public static BlockDOM2Content(html: string): string;
|
||||
|
||||
private constructor();
|
||||
|
||||
public SetHeadingID(enable: boolean): void;
|
||||
|
@ -76,7 +76,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>
|
||||
<svg data-id="${encodeURIComponent(item.name + item.depth)}" class="b3-list-item__arrow ${((item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0)) ? "b3-list-item__arrow--open" : "fn__hidden"}"><use xlink:href="#iconRight"></use></svg>
|
||||
</span>
|
||||
${iconHTML}
|
||||
<span class="b3-list-item__text"${item.type === "outline" ? ' title="' + Lute.EscapeHTMLStr(item.name) + '"' : ""}>${item.name}</span>
|
||||
<span class="b3-list-item__text"${item.type === "outline" ? ' title="' + Lute.EscapeHTMLStr(Lute.BlockDOM2Content(item.name)) + '"' : ""}>${item.name}</span>
|
||||
${countHTML}
|
||||
</li>`;
|
||||
if (item.children && item.children.length > 0) {
|
||||
@ -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>
|
||||
</span>
|
||||
${iconHTML}
|
||||
<span class="b3-list-item__text" ${type === "outline" ? ' title="' + Lute.EscapeHTMLStr(item.content) + '"' : ""}>${item.content}</span>
|
||||
<span class="b3-list-item__text" ${type === "outline" ? ' title="' + Lute.EscapeHTMLStr(Lute.BlockDOM2Content(item.content)) + '"' : ""}>${item.content}</span>
|
||||
${countHTML}
|
||||
${this.blockExtHTML || ""}
|
||||
</li>`;
|
||||
|
Loading…
Reference in New Issue
Block a user