Skip to content

Commit

Permalink
fix: carousel variable-width vueComponent#3977
Browse files Browse the repository at this point in the history
  • Loading branch information
zkwolf committed Apr 27, 2021
1 parent ea8c694 commit 3ec3884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-slick/src/inner-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
slideCount: children.length,
});
children.forEach(child => {
const childWidth = child.props.width.split('px')[0];
const childWidth = child.props.style.width;
childrenWidths.push(childWidth);
trackWidth += childWidth;
});
Expand Down

0 comments on commit 3ec3884

Please sign in to comment.