Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-05-27 21:33:52 +08:00
commit a75320be8e
26 changed files with 525 additions and 784 deletions

View file

@ -386,7 +386,6 @@ declare interface IBlockTree {
nodeType: string,
subType: string,
name: string,
full: string,
type: string,
depth: number,
url?: string,

View file

@ -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="${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.name}</span>