2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-21 20:00:35 +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 ### Events
| Name | Description | Callback Arguments | | Name | Description | Callback Arguments |
|-----------------|------------------------------|------------------------| |-----------------|--------------------------------------------------------|------------------------|
| change | When the value change | the currentValue | | input | When the value change(v-model event) | the currentValue |
| input | When the value change | the currentValue | | change | When the value change(same as input) | the currentValue |
| confirm | When click 'OK' button | the currentValue | | confirm | When click 'confirm' button | the currentValue |
| clear | When click 'clear' button | | | clear | When click 'clear' button | |
| input-error | When user type a invalid Date| the input text | | input-error | When user type a invalid Date | the input text |
| panel-change | When change the panel | panel, oldPanel | | panel-change | When change the panel view(eg: from year to month view)| panel, oldPanel |
#### panel value #### panel value
`['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']` `['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']`
### Slots ### Slots
| Name | Description | | Name | Description |