Skip to content

Commit 8a363ca

Browse files
committed
fix: progress strokeWidth not work
1 parent 35a65bc commit 8a363ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/progress/line.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const Line = {
1515
} = props;
1616
const percentStyle = {
1717
width: `${validProgress(percent)}%`,
18-
height: strokeWidth || (size === 'small' ? '6px' : '8px'),
18+
height: `${strokeWidth || (size === 'small' ? 6 : 8)}px`,
1919
background: strokeColor,
2020
borderRadius: strokeLinecap === 'square' ? 0 : '100px',
2121
};
2222
const successPercentStyle = {
2323
width: `${validProgress(successPercent)}%`,
24-
height: strokeWidth || (size === 'small' ? '6px' : '8px'),
24+
height: `${strokeWidth || (size === 'small' ? 6 : 8)}px`,
2525
borderRadius: strokeLinecap === 'square' ? 0 : '100px',
2626
};
2727
const successSegment =

0 commit comments

Comments
 (0)