From 8a363ca65486985a1f5d6c1e2d81cf08c8b282d6 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 16 Oct 2019 23:33:38 +0800 Subject: [PATCH] fix: progress strokeWidth not work --- components/progress/line.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/progress/line.jsx b/components/progress/line.jsx index bd5d0bd7c..6e201fb7d 100644 --- a/components/progress/line.jsx +++ b/components/progress/line.jsx @@ -15,13 +15,13 @@ const Line = { } = props; const percentStyle = { width: `${validProgress(percent)}%`, - height: strokeWidth || (size === 'small' ? '6px' : '8px'), + height: `${strokeWidth || (size === 'small' ? 6 : 8)}px`, background: strokeColor, borderRadius: strokeLinecap === 'square' ? 0 : '100px', }; const successPercentStyle = { width: `${validProgress(successPercent)}%`, - height: strokeWidth || (size === 'small' ? '6px' : '8px'), + height: `${strokeWidth || (size === 'small' ? 6 : 8)}px`, borderRadius: strokeLinecap === 'square' ? 0 : '100px', }; const successSegment =