mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-22 12:10:36 +03:00
feat: add type for calendar-change (#459)
This commit is contained in:
@@ -266,19 +266,19 @@ Set fixed time list to select;
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description | Callback Arguments |
|
||||
| --------------- | ---------------------------------------------------------------------------------- | -------------------------------------------- |
|
||||
| input | When the value change(v-model event) | date |
|
||||
| change | When the value change(same as input) | date, type(date, hour, minute, second, ampm) |
|
||||
| open | When panel opening | |
|
||||
| close | When panel closing | |
|
||||
| confirm | When click 'confirm' button | date |
|
||||
| clear | When click 'clear' button | |
|
||||
| input-error | When user type a invalid Date | the input text |
|
||||
| focus | When input focus | |
|
||||
| blur | When input blur | |
|
||||
| pick | when select date [#429](https://github.com/mengxiong10/vue2-datepicker/issues/429) | date |
|
||||
| calendar-change | when change the calendar | date, oldDate |
|
||||
| Name | Description | Callback Arguments |
|
||||
| --------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
||||
| input | When the value change(v-model event) | date |
|
||||
| change | When the value change(same as input) | date, type('date'\|'hour'\|'minute'\|'second'\|'ampm |
|
||||
| open | When panel opening | |
|
||||
| close | When panel closing | |
|
||||
| confirm | When click 'confirm' button | date |
|
||||
| clear | When click 'clear' button | |
|
||||
| input-error | When user type a invalid Date | the input text |
|
||||
| focus | When input focus | |
|
||||
| blur | When input blur | |
|
||||
| pick | when select date [#429](https://github.com/mengxiong10/vue2-datepicker/issues/429) | date |
|
||||
| calendar-change | when change the calendar | date, oldDate, type('year'\|'month'\|'last-year'\|'next-year'\|'last-month'\|'next-month'\|'last-decade'\|'next-decade') |
|
||||
|
||||
### Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user