-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Carousel component doesnt work with variable-width prop #3977
Labels
Comments
zkwolf
added a commit
to zkwolf/ant-design-vue
that referenced
this issue
Apr 27, 2021
tangjinzhou
added a commit
that referenced
this issue
Apr 27, 2021
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
2.1.1
Environment
Vue3.0
Reproduction link
Steps to reproduce
->use the carousel component of ant-design and set the prop variable-width='true'
What is expected?
it should works without error.
What is actually happening?
we cannot use the variable-width prop
actually, it cames from inner-slider.js and in ssrInit(), instead of putting const childWidth = child.props.width.split('px')[0]; we should put child.props.STYLE.width.split('px')[0]
The text was updated successfully, but these errors were encountered: