fix[Carousel]: Fixed the current value returned by beforeChange props is incorrect #7419
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
版本
Antd vue 4.1.2
问题描述
引入走马灯组件,使用 beforeChange 属性,发现返回的 current 的值始终为 undefined
复现链接
https://codesandbox.io/p/sandbox/ji-ben-ant-design-vue-4-1-2-forked-pdrlxc?file=%2Fsrc%2Fdemo.vue%3A11%2C53