ant-design/components/input/demo/group.md

25 lines
395 B
Markdown
Raw Normal View History

2016-05-25 18:21:27 +08:00
---
order: 3
title: 输入框组合
---
2016-06-16 21:15:59 +08:00
输入框的组合展现。
2016-05-25 18:21:27 +08:00
````jsx
2016-06-16 21:15:59 +08:00
import { Input, Col } from 'antd';
2016-05-25 18:21:27 +08:00
const InputGroup = Input.Group;
ReactDOM.render(
<div>
<InputGroup size="large">
<Col span="4">
<Input defaultValue="0571" />
</Col>
<Col span="8">
<Input defaultValue="26888888" />
</Col>
</InputGroup>
</div>
, mountNode);
````