Input
输入框组件。
Install
1. npm install beeshell
Usage
引入方式
全部引入
1. import { Input } from 'beeshell';
单独引入
1. import Input from 'beeshell/components/Input';
Examples

Code
2. import { Input } from 'beeshell';
4. <Input
5. placeholder="请输入姓名"
6. textAlign="left"
7. value={this.state.name}
8. onChange={() => {}}
9. />
通常与 Form 一起使用,详见 Form
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| value | String | false | null | 输入信息 |
| textAlign | String | false | ‘left’ | 文本位置 left right |
| onChange | Function | false | null | 输入信息变化回调 |
| clearButtonMode | String | false | ‘while-editing’ | 清空按钮 |
