[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
+7 -2
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
+2 -2
View File
@@ -132,11 +132,11 @@ When Picker columns data is acquired asynchronously, use `loading` prop to show
| show-toolbar | Whether to show toolbar | `Boolean` | `false` | - |
| title | Toolbar title | `String` | `''` | - |
| loading | Whether to show loading prompt | `Boolean` | `false` | - |
| value-key | Key of option text | `String` | `text` | - |
| item-height | Option height | `Number` | `44` | - |
| confirm-button-text | Text of confirm button | `String` | `Confirm` | - |
| cancel-button-text | Text of cancel button | `String` | `Cancel` | - |
| item-height | Option height | `Number` | `44` | - |
| visible-item-count | Count of visible columns | `Number` | `5` | - |
| value-key | Key of option text | `String` | `text` | - |
### Event
Picker events will pass different parameters according to the columns are single or multiple