Browse Source

performance: add key for <i /> (#43317)

* performance: add key for <i />

* Update index.tsx

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
pull/43316/head
lijianan 1 year ago
committed by GitHub
parent
commit
e2907c8ac2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/spin/index.tsx

8
components/spin/index.tsx

@ -61,10 +61,10 @@ function renderIndicator(prefixCls: string, props: SpinClassProps): React.ReactN
return (
<span className={classNames(dotClassName, `${prefixCls}-dot-spin`)}>
<i className={`${prefixCls}-dot-item`} />
<i className={`${prefixCls}-dot-item`} />
<i className={`${prefixCls}-dot-item`} />
<i className={`${prefixCls}-dot-item`} />
<i className={`${prefixCls}-dot-item`} key={1} />
<i className={`${prefixCls}-dot-item`} key={2} />
<i className={`${prefixCls}-dot-item`} key={3} />
<i className={`${prefixCls}-dot-item`} key={4} />
</span>
);
}

Loading…
Cancel
Save