mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
f928baf52a
* add flex style * add new demo * update snapshot * Merge branch feature into fix-descriptions * update snapshot * update snapshot
452 B
452 B
order | title | debug | ||||
---|---|---|---|---|---|---|
99 |
|
true |
zh-CN
图片不存在时,会回退到 src
。
en-US
图片不存在时,会回退到 src
。
import { Avatar } from 'antd';
ReactDOM.render(
<>
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
A
</Avatar>
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
ABC
</Avatar>
</>,
mountNode,
);