@afeefa/vue-app 0.0.69 → 0.0.70

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.69
1
+ 0.0.70
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -16,6 +16,7 @@
16
16
  v-bind="{...$attrs, ...attrs}"
17
17
  :rules="validationRules"
18
18
  v-on="on"
19
+ @click:clear="clearDate"
19
20
  @click.native="on.click"
20
21
  />
21
22
  </template>
@@ -72,6 +73,11 @@ export default class ADatePicker extends Mixins(ComponentWidthMixin) {
72
73
  return this.$attrs.label
73
74
  }
74
75
 
76
+ clearDate () {
77
+ this.value_ = null
78
+ this.$emit('input', this.value_)
79
+ }
80
+
75
81
  dateChanged (date) {
76
82
  this.menu = false
77
83
  this.value_ = new Date(date)