2020-07-08 14:47:07 +08:00
|
|
|
---
|
|
|
|
order: 20
|
|
|
|
title:
|
|
|
|
zh-CN: Ribbon Debug
|
|
|
|
en-US: Ribbon Debug
|
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
Buggy!
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Buggy!
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-07-08 14:47:07 +08:00
|
|
|
import { Badge, Card, Space } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2020-07-08 14:47:07 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-07-08 14:47:07 +08:00
|
|
|
<Space direction="vertical" style={{ width: '100%' }}>
|
|
|
|
<Badge.Ribbon text="啦啦啦啦">
|
|
|
|
<Card>推开窗户举起望远镜</Card>
|
|
|
|
</Badge.Ribbon>
|
|
|
|
<Badge.Ribbon text="啦啦啦啦" color="purple">
|
|
|
|
<Card>推开窗户举起望远镜</Card>
|
|
|
|
</Badge.Ribbon>
|
|
|
|
<Badge.Ribbon text="啦啦啦啦" color="#2db7f5">
|
|
|
|
<Card>推开窗户举起望远镜</Card>
|
|
|
|
</Badge.Ribbon>
|
|
|
|
<Badge.Ribbon text="啦啦啦啦" color="#2db7f5" placement="start">
|
|
|
|
<Card>推开窗户举起望远镜</Card>
|
|
|
|
</Badge.Ribbon>
|
|
|
|
<Badge.Ribbon text="啦啦啦啦" color="#2db7f5" placement="end">
|
|
|
|
<Card>推开窗户举起望远镜</Card>
|
|
|
|
</Badge.Ribbon>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Space>
|
2020-07-08 14:47:07 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-07-08 14:47:07 +08:00
|
|
|
```
|