Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83d3ae3

Browse files
radeanuedisdev
authored andcommitted
add reset event & update docs
1 parent 283e11e commit 83d3ae3

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
{
1414
title: 'GETTING STARTED',
1515
collapsable: false,
16-
children: ['installation', 'using', 'props'],
16+
children: ['installation', 'using', 'props', 'events'],
1717
},
1818
{
1919
title: 'EXAMPLES',

docs/events.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: 'Events'
3+
---
4+
5+
Name | Desciption
6+
------------- | -------------
7+
@input | On input
8+
@change | On change value of selected date
9+
@reset | On click the clear button

src/components/datepicker.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ export default {
361361
},
362362
resetDate () {
363363
this.selectedDate = this.defaultSelectedDate()
364+
this.$emit('reset')
364365
},
365366
defaultSelectedDate () {
366367
return this.range ? [null, null] : null

0 commit comments

Comments
 (0)