mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 21:50:05 +08:00
!3552 fix(#I62BF5): do not update the end data in the DateTimeRange component
* chore: bump version 7.0.5 * fix: 修复时间范围右侧组件未关联问题 * fix: 修复首次加载时间范围开始时间背景色丢失问题
This commit is contained in:
parent
75aaaccf36
commit
f5eae00235
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>7.0.4</Version>
|
||||
<Version>7.0.5</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
|
||||
|
@ -376,6 +376,9 @@ public partial class DatePickerBody
|
||||
{
|
||||
base.OnParametersSet();
|
||||
|
||||
CurrentDate = Value.Date;
|
||||
CurrentTime = Value - CurrentDate;
|
||||
|
||||
DatePlaceHolder ??= Localizer[nameof(DatePlaceHolder)];
|
||||
TimePlaceHolder ??= Localizer[nameof(TimePlaceHolder)];
|
||||
TimeFormat ??= Localizer[nameof(TimeFormat)];
|
||||
|
@ -164,7 +164,7 @@ public partial class DateTimeRange
|
||||
StartValue = Value.Start;
|
||||
EndValue = Value.End;
|
||||
|
||||
if (StartValue == DateTime.MinValue) StartValue = DateTime.Now;
|
||||
if (StartValue == DateTime.MinValue) StartValue = DateTime.Today;
|
||||
if (EndValue == DateTime.MinValue) EndValue = StartValue.AddMonths(1);
|
||||
|
||||
SelectedValue.Start = StartValue;
|
||||
|
Loading…
Reference in New Issue
Block a user