🐛 标题存在字体颜色时大纲异常 https://github.com/siyuan-note/siyuan/issues/5009
This commit is contained in:
parent
9b2ab2ed35
commit
6d6cfbe669
3 changed files with 1 additions and 3 deletions
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
@ -386,7 +386,6 @@ declare interface IBlockTree {
|
|||
nodeType: string,
|
||||
subType: string,
|
||||
name: string,
|
||||
full: string,
|
||||
type: string,
|
||||
depth: number,
|
||||
url?: string,
|
||||
|
|
|
@ -71,7 +71,7 @@ data-type="${item.nodeType}"
|
|||
data-subtype="${item.subType}"
|
||||
${item.label ? "data-label='" + item.label + "'" : ""}>
|
||||
<span style="padding-left: ${item.depth * 16}px" class="b3-list-item__toggle">
|
||||
<svg data-id="${item.full || (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>
|
||||
<svg data-id="${(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.name}</span>
|
||||
|
|
|
@ -64,7 +64,6 @@ type Path struct {
|
|||
ID string `json:"id"` // 块 ID
|
||||
Box string `json:"box"` // 块 Box
|
||||
Name string `json:"name"` // 当前路径
|
||||
Full string `json:"full"` // 全路径
|
||||
Type string `json:"type"` // "path"
|
||||
NodeType string `json:"nodeType"` // 节点类型
|
||||
SubType string `json:"subType"` // 节点子类型
|
||||
|
|
Loading…
Add table
Reference in a new issue