Skip to content

Commit

Permalink
fix: update:show-time-panel event invalid (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Jun 3, 2021
1 parent 705c100 commit 7ec739a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/datetime/datetime-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 2 additions & 3 deletions src/datetime/datetime-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ec739a

Please sign in to comment.