mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-21 22:09:16 +08:00
fix(Calendar): month-show event triggered multiple times (#7565)
This commit is contained in:
parent
0bd1128b91
commit
b382e18d30
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user