fix(Calendar): subtitle not updated in some cases (#6723)

This commit is contained in:
neverland
2020-07-07 14:44:20 +08:00
committed by GitHub
parent 5793481ba4
commit 89fdbf4729
2 changed files with 8 additions and 5 deletions
+7 -4
View File
@@ -90,11 +90,14 @@ export default createComponent({
},
},
mounted() {
this.height = this.$el.getBoundingClientRect().height;
},
methods: {
getHeight() {
if (!this.height) {
this.height = this.$el.getBoundingClientRect().height;
}
return this.height;
},
scrollIntoView() {
if (this.showSubtitle) {
this.$refs.days.scrollIntoView();