feat(Calendar): add month-show event (#6292)

This commit is contained in:
neverland
2020-05-17 20:28:53 +08:00
committed by GitHub
parent 6870bdcbc2
commit f2ec0c5a4d
4 changed files with 21 additions and 1 deletions
+7
View File
@@ -253,6 +253,13 @@ export default createComponent({
currentMonth = months[i];
}
if (!months[i].visible && visible) {
this.$emit('month-show', {
date: months[i].date,
title: months[i].title,
});
}
months[i].visible = visible;
height += heights[i];
}