Input

输入框组件。

Install

  1. npm install beeshell

Usage

引入方式

全部引入

  1. import { Input } from 'beeshell';

单独引入

  1. import Input from 'beeshell/components/Input';

Examples

image

Code

  1. import { Input } from 'beeshell';
  2. <Input
  3. placeholder="请输入姓名"
  4. textAlign="left"
  5. value={this.state.name}
  6. onChange={() => {}}
  7. />

通常与 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’ 清空按钮