{#if node === null}
从左侧选择一个文件夹或项目
{:else}
{#each crumbs as c, i (i)} {#if i > 0}
/
{/if}
{c.name ?? "…"}
{/each}
{node.name}
{node.kind === "PROJECT" ? "项目" : "文件夹"}
{#if canEdit && node.kind === "FOLDER"}
(showCreateChild = true)}>+ 新建
{/if} {#if canManage}
重命名
删除
{/if}
{#if node.kind === "FOLDER"}
点击左侧树展开以浏览子内容
{:else}
{#each [["detail", "概览"], ["files", "文件"]] as [id, label] (id)}
(tab = id as "detail" | "files")} >{label}
{/each}
{#if tab === "detail"}
{:else}
{/if} {/if}
{/if} {#if showCreateChild && node}
(showCreateChild = false)}>
名称
类型
文件夹
项目(课程资源库)
简介(可选)
(showCreateChild = false)}>取消
创建
{/if}