1.0.6 • Published 7 years ago

tag-select v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

tag-select

tag select based on antd tag, support single select and multiple select

// single select
state = { 
    value: 1
}
handleChange = value => {
    this.setState({ value })
}
const options = [{
    id: 1,
    text: 'a' 
}, {
    id: 2,
    text: 'b' 
}]
<TagSelect 
	options={options}
	value={this.state.value}
	onChange={handleChange}
/>

props

nameremarkrequiredtypedefault
optionsoptions to select,ex:'a','b' or {id:1,title: 'a'},{id:2,title:'b'}truearray
multiplewhether multi select,default single selectfalsebooleanfalse
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago