diff --git a/EgwCoreLib.BlazorTest/Pages/TestCompo.razor b/EgwCoreLib.BlazorTest/Pages/TestCompo.razor index 43145cf..d5962cd 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestCompo.razor +++ b/EgwCoreLib.BlazorTest/Pages/TestCompo.razor @@ -15,12 +15,12 @@ }
- +
@code { - protected DtUtils.Periodo? periodo { get; set; } = null; + protected DtUtils.Periodo? periodo { get; set; } = new DtUtils.Periodo(DtUtils.PeriodSet.ThisTrim); protected async Task setPeriodo(DtUtils.Periodo newPeriodo) { diff --git a/EgwCoreLib.Razor/PeriodoSel.razor.cs b/EgwCoreLib.Razor/PeriodoSel.razor.cs index c39ee6c..a121681 100644 --- a/EgwCoreLib.Razor/PeriodoSel.razor.cs +++ b/EgwCoreLib.Razor/PeriodoSel.razor.cs @@ -14,7 +14,8 @@ namespace EgwCoreLib.Razor #region Protected Properties - protected DtUtils.Periodo CurrPeriodo + [Parameter] + public DtUtils.Periodo CurrPeriodo { get => currPeriodo; set