mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 12:09:59 +08:00
fix(Topology): missing background cause value is null (#3822)
* feat: 增加 null 忽略标签 * chore: bump version 8.0.8
This commit is contained in:
parent
a0de191cff
commit
f09c8d5d05
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>8.0.7</Version>
|
||||
<Version>8.0.8</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace BootstrapBlazor.Components;
|
||||
|
||||
/// <summary>
|
||||
@ -22,6 +24,7 @@ public class TopologyItem
|
||||
/// <summary>
|
||||
/// 获得/设置 显示文字
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? Text { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@ -32,11 +35,13 @@ public class TopologyItem
|
||||
/// <summary>
|
||||
/// 获得/设置 显示文字颜色
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? TextColor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 背景颜色
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? Background { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user