Skip to content

Commit 70331dd

Browse files
committed
refactor: 增加关窗逻辑
1 parent 4f9e787 commit 70331dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@
3737
{
3838
<DatePickerBody Value="@StartValue" ValueChanged="UpdateValue" OnDateChanged="OnStartDateChanged"
3939
DateFormat="@DateFormat" TimeFormat="@TimeFormat" ViewMode="ViewMode"
40-
ShowLunar="ShowLunar" ShowSolarTerm="ShowSolarTerm" ShowFestivals="ShowFestivals" ShowHolidays="ShowHolidays"
40+
ShowLunar="ShowLunar" ShowSolarTerm="ShowSolarTerm"
41+
ShowFestivals="ShowFestivals" ShowHolidays="ShowHolidays"
4142
ShowRightButtons="false" MaxValue="MaxValue" MinValue="MinValue">
4243
</DatePickerBody>
4344
}
4445
<DatePickerBody Value="@EndValue" ValueChanged="UpdateValue" OnDateChanged="OnEndDateChanged"
4546
DateFormat="@DateFormat" TimeFormat="@TimeFormat" ViewMode="ViewMode"
46-
ShowLunar="ShowLunar" ShowSolarTerm="ShowSolarTerm" ShowFestivals="ShowFestivals" ShowHolidays="ShowHolidays"
47+
ShowLunar="ShowLunar" ShowSolarTerm="ShowSolarTerm"
48+
ShowFestivals="ShowFestivals" ShowHolidays="ShowHolidays"
4749
ShowLeftButtons="@_showLeftButtons" MaxValue="MaxValue" MinValue="MinValue">
4850
</DatePickerBody>
4951
</CascadingValue>

src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ private async Task ClickConfirmButton()
442442
{
443443
EditContext.NotifyFieldChanged(FieldIdentifier.Value);
444444
}
445+
await InvokeVoidAsync("hide", Id);
445446
}
446447

447448
/// <summary>

0 commit comments

Comments
 (0)