【文件属性】:
文件名称:react-labels-input:React标签输入
文件大小:13KB
文件格式:ZIP
更新时间:2021-07-20 17:20:24
JavaScript
React标签输入
React标签输入
安装
npm install react-labels-input --save
用法
import React from 'react' ;
import LabelsInput from 'react-labels-input' ;
var data = [ 'apple' , 'banana' , 'cheery' ] ;
function add ( value , tags ) {
console . log ( 'add' , value ) ;
console . log ( 'tags' , tags ) ;
}
function remove ( value , tags ) {
console . log ( 'remove' , value ) ;
console . log ( 'tags' , tags
【文件预览】:
react-labels-input-master
----webpack.config.js(2KB)
----scss()
--------labelsinput.scss(911B)
----lib()
--------components()
--------index.js(4KB)
----example()
--------index.html(251B)
--------main.js(400B)
----gulpfile.js(53B)
----LICENSE(1KB)
----README.md(935B)
----gulp.babel.js(551B)
----dist()
--------index.js(10KB)
--------style.css(596B)
----.gitignore(533B)
----package.json(1KB)