+8
-1
lines changedFilter options
+8
-1
lines changed Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1
1
<template>
2
-
<md-field :class="['md-datepicker', { 'md-native': !this.mdOverrideNative }]" md-clearable>
2
+
<md-field :class="['md-datepicker', { 'md-native': !this.mdOverrideNative }]" :md-clearable="mdClearable" @md-clear="onClear">
3
3
<md-date-icon class="md-date-icon" @click.native="toggleDialog" />
4
4
<md-input :type="type" ref="input" v-model="inputDate" @focus.native="onFocus" :pattern="pattern" />
5
5
@@ -65,6 +65,10 @@
65
65
MdDebounce: {
66
66
type: Number,
67
67
default: 1000
68
+
},
69
+
mdClearable: {
70
+
type: Boolean,
71
+
default: true
68
72
}
69
73
},
70
74
data: () => ({
@@ -221,6 +225,9 @@
221
225
} else {
222
226
Vue.util.warn(`The datepicker value is not a valid date. Given value: ${this.value}`)
223
227
}
228
+
},
229
+
onClear() {
230
+
this.$emit('md-clear')
224
231
}
225
232
},
226
233
created () {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4