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

33 lines
471 B
Markdown
Raw Normal View History

2016-05-25 18:21:27 +08:00
---
order: 3
title:
2016-08-22 10:27:43 +08:00
zh-CN: 输入框组合
en-US: Input Group
2016-05-25 18:21:27 +08:00
---
## zh-CN
2016-06-16 21:15:59 +08:00
输入框的组合展现。
2016-05-25 18:21:27 +08:00
## en-US
Input.Group example
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);
````