Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.0.2</Version>
<Version>9.0.3</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@namespace BootstrapBlazor.Components
@namespace BootstrapBlazor.Components
@inherits ValidateBase<string>

@if (IsShowLabel)
{
<BootstrapLabel required="@Required" for="@Id" ShowLabelTooltip="ShowLabelTooltip" Value="@DisplayText" />
}
<div @attributes="@AdditionalAttributes" id="@Id" class="@GetClassString()" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// 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/

Expand Down Expand Up @@ -117,19 +117,19 @@ protected override void OnInitialized()
/// <summary>
/// 更新组件值方法
/// </summary>
/// <param name="vals"></param>
/// <param name="values"></param>
/// <returns></returns>
[JSInvokable]
public async Task Update(string[] vals)
public async Task Update(string[] values)
{
if (vals.Length == 2)
if (values.Length == 2)
{
CurrentValueAsString = vals[0];
CurrentValueAsString = values[0];

var hasChanged = !EqualityComparer<string>.Default.Equals(vals[1], Html);
var hasChanged = !EqualityComparer<string>.Default.Equals(values[1], Html);
if (hasChanged)
{
Html = vals[1];
Html = values[1];
if (HtmlChanged.HasDelegate)
{
await HtmlChanged.InvokeAsync(Html);
Expand Down
Loading