0.2.0 • Published 5 years ago

rc-taginput v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

使用方式

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
onChangevalue改变时的回调函数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

0.2.0

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago