[Improvement] DatetimePicker: support all picker props (#788)

This commit is contained in:
neverland
2018-03-27 17:34:07 +08:00
committed by GitHub
parent 5497eef5ef
commit 99361427f9
5 changed files with 30 additions and 15 deletions

View File

@@ -99,12 +99,17 @@ export default {
| Attribute | Description | Type | Default | Accepted Values |
|-----------|-----------|-----------|-------------|-------------|
| type | Picker type | `String` | `datetime` | `date` `time` `year-month` |
| type | Picker type | `String` | `datetime` | `date` `time` <br> `year-month` |
| min-date | Min date | `Date` | Ten years ago on January 1 | - |
| max-date | Max date | `Date` | Ten years later on December 31 | - |
| min-hour | Min hour | `Number` | `0` | - |
| max-hour | Max hour | `Number` | `23` | - |
| visible-item-count | Count of columns to show | `Number` | `5` | - |
| title | Toolbar title | `String` | `''` | - |
| loading | Whether to show loading prompt | `Boolean` | `false` | - |
| item-height | Option height | `Number` | `44` | - |
| confirm-button-text | Text of confirm button | `String` | `Confirm` | - |
| cancel-button-text | Text of cancel button | `String` | `Cancel` | - |
| visible-item-count | Count of visible columns | `Number` | `5` | - |
### Event