fix(Calendar): month-show event triggered multiple times (#7565)

This commit is contained in:
neverland 2020-11-15 20:46:56 +08:00 committed by GitHub
parent 0bd1128b91
commit b382e18d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,7 +278,8 @@ export default createComponent({
visibleRange[0] = i;
}
if (!months[i].visible) {
if (!months[i].showed) {
months[i].showed = true;
this.$emit('month-show', {
date: months[i].date,
title: months[i].title,