mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
9101f3666a
fix lint and test failures update avatar demo card title update ts type check for undefined
461 B
461 B
order | title | ||||
---|---|---|---|---|---|
5 |
|
zh-CN
头像大小可以根据屏幕大小自动调整。
en-US
Avatar size can be automatically adjusted based on the screen size.
import { Avatar } from 'antd';
import { AntDesignOutlined } from '@ant-design/icons';
ReactDOM.render(
<Avatar
size={{ xs: 24, sm: 32, md: 40, lg: 64, xl: 80, xxl: 100 }}
icon={<AntDesignOutlined />}
/>,
mountNode,
);