Skip to content

Commit 7f64361

Browse files
authored
feat(Vditor): support ShowLabel parameter (#653)
* feat: 增加 ValidateForm 支持 * chore: bump version 9.0.1
1 parent 61a7bf3 commit 7f64361

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/components/BootstrapBlazor.Vditor/BootstrapBlazor.Vditor.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.0</Version>
4+
<Version>9.0.1</Version>
55
</PropertyGroup>
66

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

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

src/components/BootstrapBlazor.Vditor/Vditor.razor.cs

Lines changed: 1 addition & 2 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

@@ -80,7 +80,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
8080
if (firstRender)
8181
{
8282
_lastValue = Value;
83-
return;
8483
}
8584

8685
if (_lastValue != Value)

0 commit comments

Comments
 (0)