mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
fix: update Avatar src type (#27524)
* fix: update Avatar src type * refactor: remove string as ReactNode includes string type
This commit is contained in:
parent
4c50355570
commit
73c4566c61
@ -20,7 +20,7 @@ export interface AvatarProps {
|
||||
size?: AvatarSize;
|
||||
gap?: number;
|
||||
/** Src of image avatar */
|
||||
src?: string;
|
||||
src?: React.ReactNode;
|
||||
/** Srcset of image avatar */
|
||||
srcSet?: string;
|
||||
draggable?: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user