TimeSelect

Use Time Select for time input.

The available time range is 00:00 to 23:59

Fixed time picker

Provide a list of fixed time for users to choose.

Time Formats

Use format to control format of time(hours and minutes).

Check the list here of all available formats of Day.js.

WARNING

Pay attention to capitalization

Fixed time range

If start( end ) time is picked at first, then the status of end( start ) time's options will change accordingly.

Attributes

NameDescriptionTypeAccepted ValuesDefault
model-value / v-modelbinding valuestring
disabledwhether TimeSelect is disabledbooleanfalse
editablewhether the input is editablebooleantrue
clearablewhether to show clear buttonbooleantrue
sizesize of Inputstringlarge / default / smalldefault
placeholderplaceholder in non-range modestring
namesame as name in native inputstring
effectTooltip theme, built-in theme: dark / lightstringstringlight
prefix-iconCustom prefix icon componentstring | ComponentClock
clear-iconCustom clear icon componentstring | ComponentCircleClose
startstart timestring09:00
endend timestring18:00
steptime stepstring00:30
min-timeminimum time, any time before this time will be disabledstring00:00
max-timemaximum time, any time after this time will be disabledstring
formatset format of timestringsee formatsHH:mm

Events

NameDescriptionParameters
changetriggers when user confirms the valuecomponent's binding value
blurtriggers when Input blurs(event: FocusEvent)
focustriggers when Input focuses(event: FocusEvent)

Methods

MethodDescriptionParameters
focusfocus the Input component
blurblur the Input component

Source

ComponentDocs

Contributors