2022-11-09 12:28:04 +08:00
|
|
|
import React from 'react';
|
2022-11-17 13:20:58 +08:00
|
|
|
import { Avatar, Badge, Space } from 'antd';
|
2022-11-09 12:28:04 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => (
|
2022-11-24 23:53:22 +08:00
|
|
|
<Space size="middle" wrap>
|
|
|
|
<Space size="middle" wrap>
|
|
|
|
<Badge count={5} status="success">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
<Badge count={5} status="warning">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
<Badge count={5} color="blue">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
<Badge count={5} color="#fa541c">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
<Badge dot status="success">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
<Badge dot status="warning">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
2023-08-10 17:10:09 +08:00
|
|
|
<Badge dot status="processing">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
2022-11-24 23:53:22 +08:00
|
|
|
<Badge dot color="blue">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
<Badge dot color="#fa541c">
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
</Space>
|
|
|
|
|
|
|
|
<Space size="middle" wrap>
|
|
|
|
<Badge count={0} showZero />
|
2023-08-10 17:10:09 +08:00
|
|
|
<Badge count={0} showZero color="blue" />
|
|
|
|
<Badge count={0} showZero color="#f0f" />
|
2022-11-24 23:53:22 +08:00
|
|
|
<Badge count={0} showZero>
|
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
2023-08-10 17:10:09 +08:00
|
|
|
<Badge count={0} showZero color="blue">
|
2022-11-24 23:53:22 +08:00
|
|
|
<Avatar shape="square" size="large" />
|
|
|
|
</Badge>
|
|
|
|
</Space>
|
2022-11-17 13:20:58 +08:00
|
|
|
</Space>
|
2022-11-09 12:28:04 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|