2020-03-22 11:38:02 +08:00
|
|
|
---
|
|
|
|
order: 99
|
|
|
|
title:
|
|
|
|
zh-CN: 多样的 Child
|
|
|
|
en-US: Diverse Child
|
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
Debug usage
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Debug usage
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2022-05-23 14:37:16 +08:00
|
|
|
import { Button, Popconfirm, Space } from 'antd';
|
2022-05-19 09:46:26 +08:00
|
|
|
import React from 'react';
|
2020-03-22 11:38:02 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-03-22 11:38:02 +08:00
|
|
|
<Space>
|
2020-08-28 11:29:37 +08:00
|
|
|
<>
|
|
|
|
Button
|
|
|
|
<Button>Button</Button>
|
|
|
|
</>
|
2020-03-22 11:38:02 +08:00
|
|
|
Button
|
|
|
|
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
|
|
|
|
<Button>Delete</Button>
|
|
|
|
</Popconfirm>
|
|
|
|
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
|
|
|
|
<Button disabled>Delete</Button>
|
|
|
|
</Popconfirm>
|
|
|
|
{null}
|
|
|
|
{false}
|
|
|
|
{1}
|
|
|
|
Button
|
2020-08-25 16:43:52 +08:00
|
|
|
{null}
|
|
|
|
{undefined}
|
2022-04-03 23:27:45 +08:00
|
|
|
</Space>
|
2020-03-22 11:38:02 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-03-22 11:38:02 +08:00
|
|
|
```
|