feat(Calendar): add show-range-prompt prop (#8739)

* feat(Calendar): add show-range-prompt prop

- show-range-prompt prop
- over-range event

* docs(Calendar): upper case
This commit is contained in:
nemo-shen
2021-05-22 16:47:34 +08:00
committed by GitHub
parent 5c99ded59d
commit e87905c5bf
4 changed files with 68 additions and 3 deletions
+2
View File
@@ -290,6 +290,7 @@ Following props are supported when the type is range
| --- | --- | --- | --- |
| max-range | Number of selectable days | _number \| string_ | Unlimited |
| range-prompt | Error message when exceeded max range | _string_ | `Choose no more than xx days` |
| show-range-prompt | Whether prompt error message when exceeded max range | _boolean_ | `true` |
| allow-same-day | Whether the start and end time of the range is allowed on the same day | _boolean_ | `false` |
### Calendar Multiple Props
@@ -324,6 +325,7 @@ Following props are supported when the type is multiple
| closed | Emitted when Popup is closed | - |
| unselect | Emitted when unselect date when type is multiple | _value: Date_ |
| month-show | Emitted when a month enters the visible area | _{ date: Date, title: string }_ |
| over-range | Emitted when exceeded max range | - |
### Slots