From 21d0e5692a44c5baeb029f1c182c7ab8d9e501f2 Mon Sep 17 00:00:00 2001 From: paranoidjk Date: Sat, 6 May 2017 12:45:57 +0800 Subject: [PATCH] fix: strokeLinecap protype. close #14 --- README.md | 2 +- src/types.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e1278f2..54b378e 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ ReactDOM.render(
strokeLinecap String 'round' - The shape to be used at the end of the progress bar, can be `square` or `round`. + The shape to be used at the end of the progress bar, can be `butt`, `square` or `round`. prefixCls diff --git a/src/types.js b/src/types.js index d1fd5a2..4a44dcc 100644 --- a/src/types.js +++ b/src/types.js @@ -17,7 +17,7 @@ export const propTypes = { percent: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), prefixCls: PropTypes.string, strokeColor: PropTypes.string, - strokeLinecap: PropTypes.oneOf(['round', 'square']), + strokeLinecap: PropTypes.oneOf(['butt', 'round', 'square']), strokeWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), style: PropTypes.object, trailColor: PropTypes.string,