refactor(Calendar): refactor Month/Header component

This commit is contained in:
chenjiahan
2020-08-25 20:56:05 +08:00
parent c54025ce83
commit c71f5ff857
3 changed files with 159 additions and 159 deletions
+4 -4
View File
@@ -288,18 +288,18 @@ export default createComponent({
if (!monthRefs[i].visible && visible) {
this.$emit('month-show', {
date: monthRefs[i].date,
title: monthRefs[i].title,
date: monthRefs[i].getDate(),
title: monthRefs[i].getTitle(),
});
}
monthRefs[i].visible = visible;
monthRefs[i].setVisible(visible);
height += heights[i];
}
/* istanbul ignore else */
if (currentMonth) {
this.subtitle = currentMonth.title;
this.subtitle = currentMonth.getTitle();
}
},