mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-11 18:12:32 +03:00
fix: update:show-time-panel event invalid (#614)
This commit is contained in:
@@ -34,16 +34,15 @@ export default {
|
||||
value(val) {
|
||||
this.currentValue = val;
|
||||
},
|
||||
defaultTimeVisible(val) {
|
||||
this.$emit('update:show-time-panel', val);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
closeTimePanel() {
|
||||
this.defaultTimeVisible = false;
|
||||
this.$emit('update:show-time-panel', false);
|
||||
},
|
||||
openTimePanel() {
|
||||
this.defaultTimeVisible = true;
|
||||
this.$emit('update:show-time-panel', true);
|
||||
},
|
||||
emitDate(date, type) {
|
||||
this.$emit('select', date, type);
|
||||
|
||||
@@ -34,16 +34,15 @@ export default {
|
||||
value(val) {
|
||||
this.currentValue = val;
|
||||
},
|
||||
defaultTimeVisible(val) {
|
||||
this.$emit('update:show-time-panel', val);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
closeTimePanel() {
|
||||
this.defaultTimeVisible = false;
|
||||
this.$emit('update:show-time-panel', false);
|
||||
},
|
||||
openTimePanel() {
|
||||
this.defaultTimeVisible = true;
|
||||
this.$emit('update:show-time-panel', true);
|
||||
},
|
||||
emitDate(dates, type) {
|
||||
this.$emit('select', dates, type);
|
||||
|
||||
Reference in New Issue
Block a user