Skip to content

Commit 9352976

Browse files
committed
refactor: 更改基类支持表单内自动标签
1 parent 5a6491b commit 9352976

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

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)