Skip to content

Calendar

A calendar date picker that supports single and range selection, shown as a bottom sheet.

Examples

Select DateSelect Range

Date Selection

Click the button to open the calendar. The confirm event fires after selection.

API

Props

属性说明类型默认值
typeSelection typesingle | rangesingle
valueCurrent value (start,end for range)string-
min-dateEarliest selectable datestring-
max-dateLatest selectable datestring-
showWhether to showbooleanfalse
titleTitle textstring-

Events

属性说明类型默认值
confirmTriggered on confirm{ value }-
changeSelection change (range mode){ start, end }-
closeClose calendar--
closedClose animation ended--

MiniDev Studio — Mini-app Development Toolkit