Browse Source

fix: progress strokeWidth not work

pull/1297/head
tangjinzhou 5 years ago
parent
commit
8a363ca654
  1. 4
      components/progress/line.jsx

4
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 =

Loading…
Cancel
Save