Skip to content

Commit 3ec3884

Browse files
committed
fix: carousel variable-width vueComponent#3977
1 parent ea8c694 commit 3ec3884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-slick/src/inner-slider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default {
116116
slideCount: children.length,
117117
});
118118
children.forEach(child => {
119-
const childWidth = child.props.width.split('px')[0];
119+
const childWidth = child.props.style.width;
120120
childrenWidths.push(childWidth);
121121
trackWidth += childWidth;
122122
});

0 commit comments

Comments
 (0)