Skip to content

Commit 61a7bf3

Browse files
authored
feat(CherryMarkdown): auto show label in validate form (#651)
* refactor: 更改基类支持表单内自动标签 * chore: bump version 9.0.4
1 parent 5a6491b commit 61a7bf3

3 files changed

Lines changed: 8 additions & 15 deletions

File tree

src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.3</Version>
4+
<Version>9.0.4</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
@namespace BootstrapBlazor.Components
2-
@inherits BootstrapModuleComponentBase
1+
@namespace BootstrapBlazor.Components
2+
@inherits ValidateBase<string>
33
@attribute [JSModuleAutoLoader("./_content/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.js", JSObjectReference = true)]
44

5+
@if (IsShowLabel)
6+
{
7+
<BootstrapLabel required="@Required" for="@Id" ShowLabelTooltip="ShowLabelTooltip" Value="@DisplayText" />
8+
}
59
<div @attributes="@AdditionalAttributes" id="@Id"></div>

src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
1+
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
// Website: https://www.blazor.zone or https://argozhang.github.io/
44

@@ -31,17 +31,6 @@ public partial class CherryMarkdown
3131
public bool IsSupportMath { get; set; } = true;
3232

3333
private string? _lastValue;
34-
/// <summary>
35-
/// 获得/设置 组件值
36-
/// </summary>
37-
[Parameter]
38-
public string? Value { get; set; }
39-
40-
/// <summary>
41-
/// 获得/设置 组件值回调
42-
/// </summary>
43-
[Parameter]
44-
public EventCallback<string?> ValueChanged { get; set; }
4534

4635
/// <summary>
4736
/// 获得/设置 组件 Html 代码

0 commit comments

Comments
 (0)