feat(Dock): add HasHeaders parameter (#3315)

* chore: 更新 tracker 配置

* doc: 重构代码

* feat: 增加 HasHeaders 配置

* chore: bump version 8.0.4

* doc: 更新依赖包
This commit is contained in:
Argo Zhang 2024-04-19 13:31:28 +08:00 committed by GitHub
parent de0ca9629d
commit d5e31be342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 4 deletions

View File

@ -4,7 +4,7 @@
[issuetracker "Gitee-Issue"]
regex = "#(.+?)\\)"
url = "https://gitee.com/Longbow/BootstrapBlazor/issues/$1"
url = "https://github.com/dotnetcore/BootstrapBlazor/pull/$1?wt.mc_id=DT-MVP-5004174"
[issuetracker "Gitee-Url"]
regex = "([a-zA-z]+://[^\\s]*)"

View File

@ -35,7 +35,7 @@
<PackageReference Include="BootstrapBlazor.Chart" Version="8.1.0" />
<PackageReference Include="BootstrapBlazor.CherryMarkdown" Version="8.0.0" />
<PackageReference Include="BootstrapBlazor.CodeEditor" Version="8.0.2" />
<PackageReference Include="BootstrapBlazor.Dock" Version="8.0.3" />
<PackageReference Include="BootstrapBlazor.Dock" Version="8.0.4" />
<PackageReference Include="BootstrapBlazor.FileViewer" Version="8.0.1" />
<PackageReference Include="BootstrapBlazor.FontAwesome" Version="8.0.2" />
<PackageReference Include="BootstrapBlazor.Gantt" Version="8.0.1" />

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>8.0.3</Version>
<Version>8.0.4</Version>
</PropertyGroup>
<PropertyGroup>

View File

@ -39,6 +39,12 @@ public class DockContent : DockComponentBase
[Parameter]
public int? Height { get; set; }
/// <summary>
/// 获得/设置 组件是否显示 Header 默认 true
/// </summary>
[Parameter]
public bool HasHeaders { get; set; } = true;
/// <summary>
/// <inheritdoc/>
/// </summary>

View File

@ -19,7 +19,7 @@ class DockContentRootConverter : JsonConverter<List<DockContent>>
public override void Write(Utf8JsonWriter writer, List<DockContent> value, JsonSerializerOptions options)
{
if (value.Any())
if (value.Count > 0)
{
var converter = new DockComponentConverter();
converter.Write(writer, value[0].Items, options);