2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-02 01:04:07 +03:00

docs: update readme

This commit is contained in:
mxie
2018-10-29 11:35:11 +08:00
parent b2d0810555
commit 7e2a0489dc
+8 -10
View File
@@ -151,20 +151,18 @@ export default {
### Events
| Name | Description | Callback Arguments |
|-----------------|------------------------------|------------------------|
| change | When the value change | the currentValue |
| input | When the value change | the currentValue |
| confirm | When click 'OK' button | the currentValue |
| clear | When click 'clear' button | |
| input-error | When user type a invalid Date| the input text |
| panel-change | When change the panel | panel, oldPanel |
| Name | Description | Callback Arguments |
|-----------------|--------------------------------------------------------|------------------------|
| input | When the value change(v-model event) | the currentValue |
| change | When the value change(same as input) | the currentValue |
| confirm | When click 'confirm' button | the currentValue |
| clear | When click 'clear' button | |
| input-error | When user type a invalid Date | the input text |
| panel-change | When change the panel view(eg: from year to month view)| panel, oldPanel |
#### panel value
`['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']`
### Slots
| Name | Description |