网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
<ul>
    @foreach (var item in Node.Directories)
    {
        <TreeNode 
            OnSelectedFile="OnSelectedFile" 
            IsFolder="@(true)" 
            Name="@item.Name" 
            Path="item.CurrentPath"
            OnExpandFolder="OnExpandFolder"
            Keyword="@Keyword"/>
    
    }

    @foreach (var item in Node.Files)
    {
        <TreeNode 
            OnSelectedFile="OnSelectedFile" 
            IsFolder="@(false)" 
            Name="@item.Name" 
            Path="item.CurrentPath"
            OnExpandFolder="OnExpandFolder"
            Keyword="@Keyword"/>
    }
</ul>

@code {

    [Parameter]
    public CodeNoteTree Node { get; set; } = new();
    
    [Parameter] 
    public EventCallback<CodeNoteTree> OnSelectedFile { get; set; }
    
    [Parameter]
    public EventCallback<CodeNoteTree> OnExpandFolder { get; set; }
    
    [Parameter]
    public string? Keyword { get; set; }
}
loading