@namespace AntDesign.Internal @typeparam TValue @inherits AntDomComponentBase @{ Action ClosePanel = () => { DatePicker.Close(); }; Action ChangePickerValue = (date, index) => { DatePicker.ChangePickerValue(date, index); }; Action ChangeValue = (date, index) => { DatePicker.ChangeValue(date, index); }; Action ChangePickerType = (type, index) => { DatePicker.ChangePickerType(type, index); }; Func GetIndexPickerValue = (index) => DatePicker.GetIndexPickerValue(index); Func GetIndexValue = (index) => DatePicker.GetIndexValue(index); Dictionary attributes = new Dictionary() { { "PrefixCls", DatePicker.PrefixCls }, { "Picker", DatePicker.Picker }, { "ClosePanel", ClosePanel }, { "ChangePickerValue", ChangePickerValue }, { "ChangeValue", ChangeValue }, { "ChangePickerType", ChangePickerType }, { "GetIndexPickerValue", GetIndexPickerValue }, { "GetIndexValue", GetIndexValue }, { "DisabledDate", DatePicker.DisabledDate }, { "DateRender", DatePicker.DateRender }, { "MonthCellRender", DatePicker.MonthCellRender }, { "RenderExtraFooter", DatePicker.RenderExtraFooter }, { "IsRange", DatePicker.IsRange }, { "OnSelect", OnSelect }, { "PickerIndex", PickerIndex }, }; Dictionary dateAttributes = new Dictionary(attributes); dateAttributes.Add("ShowToday", DatePicker.ShowToday); Dictionary dateTimeAttributes = new Dictionary(dateAttributes); dateTimeAttributes.Add("ShowTimeFormat", DatePicker.ShowTimeFormat); dateTimeAttributes.Add("Format", DatePicker.Format); dateTimeAttributes.Add("DisabledHours", DatePicker.DisabledHours); dateTimeAttributes.Add("DisabledMinutes", DatePicker.DisabledMinutes); dateTimeAttributes.Add("DisabledSeconds", DatePicker.DisabledSeconds); dateTimeAttributes.Add("DisabledTime", DatePicker.DisabledTime); dateTimeAttributes.Add("IsShowTime", DatePicker.IsShowTime); } @if (IsShowDatePanel()) { @if (DatePicker.IsShowTime) { } else { } } else if (IsShowQuarterPanel()) { } else if (IsShowWeekPanel()) { } else if (IsShowMonthPanel()) { } else if (IsShowYearPanel()) { } else if (IsShowDecadePanel()) { } else if (IsShowTimePanel()) { }