Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 扩展轮播图组件支持视频和左右滑动 #11528

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

oorange-ocean
Copy link

@oorange-ocean oorange-ocean commented Jan 21, 2025

What

Why

How

@oorange-ocean oorange-ocean changed the title 扩展轮播图组件支持视频和左右滑动 feat: 扩展轮播图组件支持视频和左右滑动 Jan 21, 2025
@qkiroc qkiroc closed this Jan 21, 2025
@qkiroc qkiroc reopened this Jan 21, 2025
if (multiple && multiple.count > 1) {
const container = this.wrapperRef.current;
if (container) {
const items = container.getElementsByClassName('Carousel-item');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没太理解这一段是为了处理什么问题,另外在react尽量不要用dom操作,其次这里应该始终是获取不到的,class都会被加上前缀,比如cxd-Carousel-item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants