Calendar
A calendar date picker that supports single and range selection, shown as a bottom sheet.
Examples
API
Props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
type | Selection type | single | range | single |
value | Current value (start,end for range) | string | - |
min-date | Earliest selectable date | string | - |
max-date | Latest selectable date | string | - |
show | Whether to show | boolean | false |
title | Title text | string | - |
Events
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
confirm | Triggered on confirm | { value } | - |
change | Selection change (range mode) | { start, end } | - |
close | Close calendar | - | - |
closed | Close animation ended | - | - |