mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +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,
);