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

docs: update readme

This commit is contained in:
mxie
2018-10-30 11:27:26 +08:00
parent ef9314e70c
commit 391cc97f4e
2 changed files with 9 additions and 7 deletions
+1
View File
@@ -159,6 +159,7 @@ export default {
| 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 view(eg: from year to month view)| panel, oldPanel | | panel-change | When change the panel view(eg: from year to month view)| panel, oldPanel |
| calendar-change | When calendar view year or month change | now(Date), oldNow(Date)|
#### panel value #### panel value
`['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']` `['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']`
+8 -7
View File
@@ -150,13 +150,14 @@ export default {
### Events ### Events
| Name | 说明 | 回调参数 | | Name | 说明 | 回调参数
|-----------------|----------------------------- |----------------| |-----------------|----------------------------- |----------------
| change | 日期改变的时候触发 | 选择的日期 | | change | 日期改变的时候触发 | 选择的日期
| input | 日期改变的时候触发 | 选择的日期 | | input | 日期改变的时候触发 | 选择的日期
| confirm | 点击确认按钮触发的事件 | 选择的日期 | | confirm | 点击确认按钮触发的事件 | 选择的日期
| input-error | 当用户输入的值无效时候触发 | 用户输入的字符串 | | input-error | 当用户输入的值无效时候触发 | 用户输入的字符串
| panel-change | 切换面板时触发 | 当前面板,过去的面板| | panel-change | 切换面板时触发 | 当前面板,过去的面板
| calendar-change | 日历的年或月改变时触发 | 当前日历时间,过去日历时间
#### panel value #### panel value
`['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']` `['NONE', 'DATE', 'YEAR', 'MONTH', 'TIME']`