mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
d99f4f35a8
* feat: add localization option to DatePicker * fix(module: datepicker): fix formatting issue * fix: fix Week/Year panel miss matching fix picker not update when setting CultureInfo fix ShortWeekDays names and order * fix: fix binding of CultureInfo in datetime demos Add globalization demo * fix: datetime string format Co-authored-by: ElderJames <shunjiey@hotmail.com>
13 lines
346 B
C#
13 lines
346 B
C#
@namespace AntDesign.Internal
|
|
|
|
<div class="@(DatePicker.PrefixCls)-footer">
|
|
<a class="@(DatePicker.PrefixCls)-today-btn" @onclick="e => DatePicker.ChangePickerValue(DateTime.Now)">
|
|
@this.DatePicker.CultureInfo.GetDateLocale().Today
|
|
</a>
|
|
</div>
|
|
|
|
@code {
|
|
[CascadingParameter]
|
|
public DatePicker DatePicker { get; set; }
|
|
|
|
} |