https://github.com/kaynewang/multiple-select-for-react
基于 rcselect 实现的复杂选择器
https://github.com/kaynewang/multiple-select-for-react
antdesign react select
Last synced: 7 months ago
JSON representation
基于 rcselect 实现的复杂选择器
- Host: GitHub
- URL: https://github.com/kaynewang/multiple-select-for-react
- Owner: KayneWang
- Created: 2019-08-28T08:07:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T09:28:11.000Z (over 6 years ago)
- Last Synced: 2025-03-16T05:41:20.789Z (10 months ago)
- Topics: antdesign, react, select
- Language: JavaScript
- Size: 25.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# multiple-select-for-react
基于 antd select 实现的复杂类型选择器

## 介绍
满足业务需求的简单实现,欢迎大家共同完善、交流
## 使用简单
1、选择搜索类型
2、使用回车键回调当前搜索内容
## API
| name | desc | type | eg |
| --- | --- | --- | --- |
| value | 选中的值 | Object | {name: 'testname'} |
| handleSearch | 回调函数 | func | 必填选项 |
| items | 搜索类型 | Object | {name: '姓名'} |
| style | 搜索框样式 | Object | {width: '100%'} |
| placeholder | 搜索框默认文字 | String | '请选择类型' |
## 使用方法
```shell
$ yarn install
```
```shell
$ yarn start
```