Browse Source

fix: enhance tag type (#42235)

Co-authored-by: gaoqi <gaoqi@onething.net>
pull/42231/head
qi gao 2 years ago
committed by GitHub
parent
commit
492dbbec38
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/tag/index.tsx

2
components/tag/index.tsx

@ -138,7 +138,7 @@ const InternalTag: React.ForwardRefRenderFunction<HTMLSpanElement, TagProps> = (
return wrapSSR(isNeedWave ? <Wave>{tagNode}</Wave> : tagNode);
};
const Tag = React.forwardRef<unknown, TagProps>(InternalTag) as TagType;
const Tag = React.forwardRef<HTMLSpanElement , TagProps>(InternalTag) as TagType;
if (process.env.NODE_ENV !== 'production') {
Tag.displayName = 'Tag';

Loading…
Cancel
Save