feat(Calendar): support max-range when type is multiple (#6202)

* feat(Calendar): support max-range when type is multiple

* docs: fix version tag
This commit is contained in:
neverland
2020-05-03 09:11:14 +08:00
committed by GitHub
parent 8348819cc8
commit 3cda85e122
4 changed files with 45 additions and 4 deletions
+10 -1
View File
@@ -255,10 +255,19 @@ Following props are supported when the type is range
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| max-range `v2.4.3` | Number of selectable days | _number \| string_ | - |
| max-range `v2.4.3` | Number of selectable days | _number \| string_ | Unlimitied |
| range-prompt `v2.4.3` | Error message when exceeded max range | _string_ | `Choose no more than xx days` |
| allow-same-day `v2.5.6` | Whether the start and end time of the range is allowed on the same day | _boolean_ | `fasle` |
### Multiple Props
Following props are supported when the type is multiple
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| max-range `v2.7.2` | Max count of selectable days | _number \| string_ | Unlimitied |
| range-prompt `v2.4.3` | Error message when exceeded max count | _string_ | `Choose no more than xx days` |
### Data Structure of Day
| Key | Description | Type |