fix: update Avatar src type (#27524)

* fix: update Avatar src type

* refactor: remove string as ReactNode includes string type
This commit is contained in:
不吃猫的鱼 2020-11-04 10:38:27 +08:00 committed by GitHub
parent 4c50355570
commit 73c4566c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;