2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-21 20:10:37 +03:00

feat: add the prop time-select-options (#227)

This commit is contained in:
mengxiong10
2019-06-25 17:12:33 +08:00
parent e134442bc7
commit a55b4b6f95
5 changed files with 175 additions and 100 deletions
+8
View File
@@ -102,6 +102,7 @@ export default {
| disabled-days | Disable Days | `(date) => boolean` | - |
| shortcuts | the shortcuts for the range picker | [shortcuts](#shortcuts) | true |
| time-picker-options | custom time-picker | [time-picker-options](#time-picker-options) | null |
| time-select-options | custom time-select | [time-select-options](#time-select-options) | null |
| minute-step | if > 0 don't show the second picker | 0 - 60 | 0 |
| first-day-of-week | set the first day of week | 1 - 7 | 7 |
| input-class | the input class name | `string` | 'mx-input' |
@@ -151,6 +152,13 @@ custom time-picker
| {start: '00:00', step:'00:30' , end: '23:30'} |
| () => Array<{ label: string; values: { hours: number; minutes: number } }> |
#### time-select-options
custom time-select for columns
| Type |
|------|
| {hours: [9, 10, 11], minutes: [10, 20], seconds: [10, 20] } |
### Events
| Name | Description | Callback Arguments |
|-----------------|--------------------------------------------------------|------------------------|