浏览代码

fix: [progress] render error when size change

tank0317 4 年之前
父节点
当前提交
587502ac3c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/semi-ui/progress/index.tsx

+ 1 - 1
packages/semi-ui/progress/index.tsx

@@ -153,7 +153,7 @@ class Progress extends Component<ProgressProps, ProgressState> {
 
         return (
             <div className={classNames.wrapper} style={style}>
-                <svg className={classNames.svg} height={width} width={width}>
+                <svg key={size} className={classNames.svg} height={width} width={width}>
                     <circle
                         strokeDashoffset={0}
                         strokeWidth={strokeWidth}