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

Carousel component doesnt work with variable-width prop #3977

Closed
1 task
chaohuilin opened this issue Apr 21, 2021 · 1 comment
Closed
1 task

Carousel component doesnt work with variable-width prop #3977

chaohuilin opened this issue Apr 21, 2021 · 1 comment
Labels

Comments

@chaohuilin
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.1

Environment

Vue3.0

Reproduction link

Edit on CodeSandbox

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]

zkwolf added a commit to zkwolf/ant-design-vue that referenced this issue Apr 27, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants