Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Commit e4271f2

Browse files
committed
fix(calendar): #55 failed to switch to next month if page rendered
1 parent b450cba commit e4271f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/calendar/body/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ const AtCalendarBody = defineComponent({
374374
circular: true,
375375
vertical: props.isVertical,
376376
skipHiddenItemLayout: true,
377-
current: 1,
377+
current: currentSwiperIndex.value,
378378
onChange: handleChange,
379379
onTouchMove: handleSwipeTouchMove,
380380
onTouchEnd: handleSwipeTouchEnd,

0 commit comments

Comments
 (0)