@namespace AntDesign.Internal @inherits AntDomComponentBase @{ Action ClosePanel = () => { }; Action ChangePickerValue = async (date, index) => { await Calendar.ChangeValue(date); }; Action ChangeValue = async (date, index) => { await Calendar.ChangeValue(date); }; Action ChangePickerType = (type, index) => { Calendar.ChangePickerType(type, index); }; Func GetIndexPickerValue = (index) => Calendar.Value; Func GetIndexValue = (index) => Calendar.Value; Dictionary attributes = new Dictionary() { { "PrefixCls", "ant-picker" }, { "Picker", Calendar.Picker }, { "Locale", Calendar.Locale }, { "CultureInfo", Calendar.CultureInfo }, { "ClosePanel", ClosePanel }, { "ChangePickerValue", ChangePickerValue }, { "ChangeValue", ChangeValue }, { "ChangePickerType", ChangePickerType }, { "GetIndexPickerValue", GetIndexPickerValue }, { "GetIndexValue", GetIndexValue }, { "DisabledDate", Calendar.DisabledDate }, { "DateRender", Calendar.DateFullCellRender }, { "MonthCellRender", Calendar.MonthFullCellRender }, { "CalendarDateRender", Calendar.DateCellRender }, { "CalendarMonthCellRender", Calendar.MonthCellRender }, { "OnSelect", OnSelect }, { "PickerIndex", 0 }, { "IsCalendar", true }, { "IsShowHeader", false }, }; Dictionary dateAttributes = new Dictionary(attributes); dateAttributes.Add("ShowToday", false); } @if (IsShowDatePanel()) { } else if (IsShowQuarterPanel()) { } else if (IsShowWeekPanel()) { } else if (IsShowMonthPanel()) { } else if (IsShowYearPanel()) { } else if (IsShowDecadePanel()) { }