2
0
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:
mengxiong10
2021-06-03 14:14:50 +08:00
parent 705c1006af
commit 7ec739a32f
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -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);
+2 -3
View File
@@ -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);