mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
type(Cell): use JSX.IntrinsicElements replace any (#43932)
This commit is contained in:
parent
b2a3c48d4a
commit
fb9c0562a0
@ -33,7 +33,8 @@ const Cell: React.FC<CellProps> = (props) => {
|
||||
content,
|
||||
colon,
|
||||
} = props;
|
||||
const Component = component as any;
|
||||
|
||||
const Component = component as keyof JSX.IntrinsicElements;
|
||||
|
||||
if (bordered) {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user