2023-02-20 10:24:40 +08:00
|
|
|
import { AntDesignOutlined, UserOutlined } from '@ant-design/icons';
|
|
|
|
import { Avatar, Divider, Tooltip } from 'antd';
|
2022-11-09 12:28:04 +08:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<>
|
|
|
|
<Avatar.Group>
|
2023-04-08 21:01:51 +08:00
|
|
|
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1" />
|
2023-01-04 17:31:31 +08:00
|
|
|
<a href="https://ant.design">
|
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
</a>
|
2022-11-09 12:28:04 +08:00
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
|
|
|
<Avatar style={{ backgroundColor: '#1890ff' }} icon={<AntDesignOutlined />} />
|
|
|
|
</Avatar.Group>
|
|
|
|
<Divider />
|
|
|
|
<Avatar.Group maxCount={2} maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}>
|
2023-04-08 21:01:51 +08:00
|
|
|
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2" />
|
2022-11-09 12:28:04 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
|
|
|
<Avatar style={{ backgroundColor: '#1890ff' }} icon={<AntDesignOutlined />} />
|
|
|
|
</Avatar.Group>
|
|
|
|
<Divider />
|
|
|
|
<Avatar.Group
|
|
|
|
maxCount={2}
|
|
|
|
size="large"
|
|
|
|
maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}
|
|
|
|
>
|
2023-04-08 21:01:51 +08:00
|
|
|
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3" />
|
2022-11-09 12:28:04 +08:00
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
|
|
|
<Avatar style={{ backgroundColor: '#1890ff' }} icon={<AntDesignOutlined />} />
|
|
|
|
</Avatar.Group>
|
|
|
|
<Divider />
|
|
|
|
<Avatar.Group
|
|
|
|
maxCount={2}
|
|
|
|
maxPopoverTrigger="click"
|
|
|
|
size="large"
|
|
|
|
maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf', cursor: 'pointer' }}
|
|
|
|
>
|
|
|
|
<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
|
|
|
|
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
|
|
|
<Tooltip title="Ant User" placement="top">
|
|
|
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
|
|
|
</Tooltip>
|
|
|
|
<Avatar style={{ backgroundColor: '#1890ff' }} icon={<AntDesignOutlined />} />
|
|
|
|
</Avatar.Group>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|