mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[Improvement] DatetimePicker: support all picker props (#788)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user