Skip to content

Commit 77ccb64

Browse files
author
radeanu
committed
add reset event & update docs
1 parent 77cb71a commit 77ccb64

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/.vuepress/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
{
2222
title: 'GETTING STARTED',
2323
collapsable: false,
24-
children: ['installation', 'using', 'props'],
24+
children: ['installation', 'using', 'props', 'events'],
2525
},
2626
{
2727
title: 'EXAMPLES',

docs/events.md

+9
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

+1
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ export default {
353353
},
354354
resetDate () {
355355
this.selectedDate = this.defaultSelectedDate()
356+
this.$emit('reset')
356357
},
357358
defaultSelectedDate () {
358359
return this.range ? [null, null] : null

0 commit comments

Comments
 (0)