Merge branch 'main' into develop
This commit is contained in:
@@ -5,14 +5,10 @@
|
||||
|
||||
<div class="row py-4" style="background-color: #ACDDAC;">
|
||||
<div class="col-4">
|
||||
@*<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="10" height="10">
|
||||
<animate attributeName="rx"
|
||||
values="0;5;0"
|
||||
dur="5s"
|
||||
repeatCount="indefinite" />
|
||||
</rect>
|
||||
</svg>*@
|
||||
<NumInput @bind-Value="@valDecimale" ></NumInput>
|
||||
<div>
|
||||
<b>@valDecimale</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
||||
@@ -103,6 +99,8 @@
|
||||
protected int currVal2 = 1000;
|
||||
protected int maxVal = 1000;
|
||||
|
||||
protected decimal valDecimale = 12345;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
DDemo1.Clear();
|
||||
|
||||
@@ -17,12 +17,11 @@
|
||||
set => decimalVal = value;
|
||||
}
|
||||
|
||||
// [Parameter]
|
||||
// public double ValueDouble
|
||||
// {
|
||||
// get => (double)decimalVal;
|
||||
// set => decimalVal = (decimal)value;
|
||||
// }
|
||||
/// <summary>
|
||||
/// Scan result callback method
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<decimal> ValueChanged { get; set; }
|
||||
|
||||
protected string DisplValue
|
||||
{
|
||||
@@ -32,6 +31,7 @@
|
||||
if (Decimal.TryParse(value, style, culture, out var number))
|
||||
{
|
||||
decimalVal = Math.Round(number, 3);
|
||||
ValueChanged.InvokeAsync(decimalVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user