mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(Calendar): month-show event triggered multiple times (#7565)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user