2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-24 02:20:36 +03:00

feat: add calendar-change event (#432)

This commit is contained in:
mengxiong10
2020-03-06 16:11:04 +08:00
parent 2fb9e6710c
commit 17d2262c59
3 changed files with 28 additions and 24 deletions
+13 -12
View File
@@ -266,18 +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](issues/429) | date |
| 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](issues/429) | date |
| calendar-change | when change the calendar | date, oldDate |
### Slots