mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-29 10:38:29 +08:00
feat(Dock): add HasHeaders parameter (#3315)
* chore: 更新 tracker 配置 * doc: 重构代码 * feat: 增加 HasHeaders 配置 * chore: bump version 8.0.4 * doc: 更新依赖包
This commit is contained in:
parent
de0ca9629d
commit
d5e31be342
@ -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]*)"
|
||||
|
@ -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" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>8.0.3</Version>
|
||||
<Version>8.0.4</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user