Prechádzať zdrojové kódy

fix: [progress] render error when size change

tank0317 4 rokov pred
rodič
commit
587502ac3c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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}