rc-taginput
v0.2.0
Published
taginput
Downloads
3
Readme
使用方式
npm install 'rc-taginput'
import TagInput from "rc-taginput";
onEnter = (value) => {
this.setState({
tagList: value
});
};
<TagInput tagList={this.state.tagList} onEnter={this.onEnter} />
参数说明
| 参数 | 说明 | 类型 | | ------ | ------ | ------ | | value |设置input值 | String | | tagList |设置标签值 | Array | | onEnter |回车时的回调函数 | Function: (value: any) => void| | onChange |value改变时的回调函数 | Function: (value: any, event: SyntheticInputEvent) => void| | placeholder |规定帮助用户填写输入字段的提示 | Text | | onFocus |获得焦点事件 | Function | | onBlur |失去焦点事件 | Function | | disabled |禁用input(默认false) | Boolean |
GitHub:https://github.com/justcoolls/rc-taginput
示例:http://liazm.com/#/tagInput