Skip to content

Commit e0dc8b5

Browse files
author
weifeiyue
committed
add event handler weifeiyue#27
1 parent 009985b commit e0dc8b5

7 files changed

+29
-27
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ The `dist` folder contains `vue-datepicker-local.js` and `vue-datepicker-local.c
8181
| format | to set the date format | String | "YYYY-MM-DD" |
8282
| local | the local of the DatePicker | Object | {<br/>dow: 1, // Monday is the first day of the week<br/>hourTip: '选择小时', // tip of select hour<br/>minuteTip: '选择分钟', // tip of select minute<br/>secondTip: '选择秒数', // tip of select second<br/>yearSuffix: '年', // format of head<br/>monthsHead: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), // months of head<br/>months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), // months of panel<br/>weeks: '一_二_三_四_五_六_日'.split('_'), // weeks<br/> cancelTip: '取消', // default text for cancel button <br />, submitTip: '提交' // default text for submit button <br />} |
8383
| disabledDate | specify the date that cannot be selected | Function | ()=>{return false} |
84-
| showButtons | show Cancel/Submit buttons on daterangepicker only | Boolean | false |
84+
| showButtons | show Cancel/Submit buttons | Boolean | false |
8585

8686
### Events
8787

88-
| Name | Return | About |
89-
|:---------------|:-------------------------------------------------|:-------------------|
90-
| dateRangeSelect| Array of Dates| This function is triggered after user click submit, usefull when need to make something after select time interval|
88+
| Event Name | Description | Parameters |
89+
|:---------------|:-------------------------------------------------|:-------------------------------------|
90+
| confirm |triggers when user confirms | the value component's binding value |
9191

9292
## License
9393
vue-datepicker-local is licensed under [The MIT License](LICENSE).

dist/vue-datepicker-local.css

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)