2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-23 22:40:38 +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) { value(val) {
this.currentValue = val; this.currentValue = val;
}, },
defaultTimeVisible(val) {
this.$emit('update:show-time-panel', val);
},
}, },
methods: { methods: {
closeTimePanel() { closeTimePanel() {
this.defaultTimeVisible = false; this.defaultTimeVisible = false;
this.$emit('update:show-time-panel', false);
}, },
openTimePanel() { openTimePanel() {
this.defaultTimeVisible = true; this.defaultTimeVisible = true;
this.$emit('update:show-time-panel', true);
}, },
emitDate(date, type) { emitDate(date, type) {
this.$emit('select', date, type); this.$emit('select', date, type);
+2 -3
View File
@@ -34,16 +34,15 @@ export default {
value(val) { value(val) {
this.currentValue = val; this.currentValue = val;
}, },
defaultTimeVisible(val) {
this.$emit('update:show-time-panel', val);
},
}, },
methods: { methods: {
closeTimePanel() { closeTimePanel() {
this.defaultTimeVisible = false; this.defaultTimeVisible = false;
this.$emit('update:show-time-panel', false);
}, },
openTimePanel() { openTimePanel() {
this.defaultTimeVisible = true; this.defaultTimeVisible = true;
this.$emit('update:show-time-panel', true);
}, },
emitDate(dates, type) { emitDate(dates, type) {
this.$emit('select', dates, type); this.$emit('select', dates, type);