Skip to content

Commit 71b1c86

Browse files
committed
1.1.8.6
1 parent 6f984bd commit 71b1c86

6 files changed

Lines changed: 45 additions & 4 deletions
-86.8 KB
Binary file not shown.
86.9 KB
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using Microsoft.AspNetCore.Components;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using System.Web.UI;
8+
using System.Web.UI.WebControls;
9+
10+
namespace Blazor.WebForm.UI.ControlComponents
11+
{
12+
public abstract class BaseCompareValidatorControlComponent<TControl> : BaseValidatorControlComponent<TControl>
13+
where TControl : BaseCompareValidator, new()
14+
{
15+
[Parameter]
16+
public ValidationDataType Type
17+
{
18+
get
19+
{
20+
return this.Control.Type;
21+
}
22+
set
23+
{
24+
this.Control.Type = value;
25+
}
26+
}
27+
28+
[Parameter]
29+
public bool CultureInvariantValues
30+
{
31+
get
32+
{
33+
return this.Control.CultureInvariantValues;
34+
}
35+
set
36+
{
37+
this.Control.CultureInvariantValues = value;
38+
}
39+
}
40+
}
41+
}

Blazor.WebForm.Components/Blazor.WebForm.Components.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>Blazor.WebForm.Components.pfx</AssemblyOriginatorKeyFile>
7-
<Version>1.1.8.5</Version>
7+
<Version>1.1.8.6</Version>
88
<RootNamespace>asp</RootNamespace>
99
<Copyright>Jurio li</Copyright>
1010
<AssemblyName>Blazor.WebForm.Components</AssemblyName>
@@ -17,7 +17,7 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Applied" Version="1.2.1.5" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.8.5" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.8.6" />
2121
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.8" />
2222
</ItemGroup>
2323

Blazor.WebForm.Components/CompareValidator.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@using Blazor.WebForm.UI.ControlComponents
33
@using System.Web.UI
44
@using System.Web.UI.WebControls
5-
@inherits BaseValidatorControlComponent<System.Web.UI.WebControls.CompareValidator>
5+
@inherits BaseCompareValidatorControlComponent<System.Web.UI.WebControls.CompareValidator>
66
@this.RenderWithInner(this.Control)
77
@code {
88
[Parameter]

Blazor.WebForm.Components/RangeValidator.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@using Blazor.WebForm.UI.ControlComponents
33
@using System.Web.UI
44
@using System.Web.UI.WebControls
5-
@inherits BaseValidatorControlComponent<System.Web.UI.WebControls.RangeValidator>
5+
@inherits BaseCompareValidatorControlComponent<System.Web.UI.WebControls.RangeValidator>
66
@this.RenderWithInner(this.Control)
77
@code {
88
[Parameter]

0 commit comments

Comments
 (0)