Imui
Components
AlertAlignButtonCheckboxCheckbox GroupConfirmDatepickerProps & MethodsBasic UsagePlaceholderSet Input WidthValueInlinePreset MonthLimit RangeFormat DateIconModeHighlight DatesonChangeonChangeMonthDialogDropdownFormIconInputMenuMessageMonthpickerPagePickerPopconfirmRadioStatusboxTabTableUploadValidator
Home introReadmeRelease

Datepicker

Props & Methods

inline
bool
false
value
Class(Date)
undefined
selectedWeek
Class(Date)
selectedRange
{ "from": "Class(Date)", "to": "Class(Date)" }
rangeJoin
string
" 至 "
initMonth
Class(Date)
showPicker
bool
false
className
string
minDate
Class(Date)
maxDate
Class(Date)
placeholder
string
calendarZindex
number
showIcon
bool
true
showClean
bool
false
disabled
bool
false
weekMode
bool
false
mode
string
MODE.date
inputWidth
number
dateFormat
string
"YYYY-M-D"
highLightDates
array
[]
onlyEnableHighLightDate
bool
false
onChange
func
() => { }
onChangeMonth
func
() => { }

Basic Usage

Placeholder

Set Input Width

Value

Inline

2021年5月
5
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

Preset Month

Limit Range

Format Date

Icon

Mode

Highlight Dates

2021年5月
5
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

onChange

onChangeMonth