# bee-search-panel

> SearchPanel ui component for react

Latest version **3.0.2** (published 2020-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install bee-search-panel
pnpm add bee-search-panel
yarn add bee-search-panel
bun add bee-search-panel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2020-03-09 |
| First published | 2017-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 6 |
| Unpacked size | 12.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | liushaozhen |
| Maintainers | bjyxszd, guoyongfeng, huayingjie, jonyw, kvkens, liushaozhen, npm_yx, whizbz, yangchch, yonyoufed, zhaoyuchief |
| Keywords | react, react-component, bee-search-panel, iuap-design, tinper-bee, SearchPanel |

## Links

- npm: https://www.npmjs.com/package/bee-search-panel
- Repository: https://github.com/tinper-bee/bee-search-panel
- Issues: https://github.com/tinper-bee/bee-search-panel/issues
- npm.io page: https://npm.io/package/bee-search-panel

## Dependencies (6)

- [bee-panel](https://npm.io/package/bee-panel.md) latest
- [bee-locale](https://npm.io/package/bee-locale.md) ^0.0.13
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.23.0
- [is-instance-of](https://npm.io/package/is-instance-of.md) ^1.0.1
- [tinper-bee-core](https://npm.io/package/tinper-bee-core.md) latest

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2020-03-09
- 3.0.1 — 2019-07-24
- 3.0.1-alpha.0 — 2019-07-24
- 3.0.0 — 2019-04-26
- 2.0.14 — 2019-04-11
- 2.0.13 — 2019-04-09
- 2.0.12 — 2019-04-08
- 2.0.11 — 2019-04-08
- 2.0.10 — 2019-03-28
- 2.0.8 — 2019-02-25
- 2.0.7 — 2019-02-22
- 2.0.6 — 2019-02-22
- 2.0.5 — 2019-02-21
- 2.0.4 — 2019-02-20
- 2.0.3 — 2019-02-20
- … 8 more at https://npm.io/package/bee-search-panel/versions

## README

[![npm version](https://img.shields.io/npm/v/bee-search-panel.svg)](https://www.npmjs.com/package/bee-search-panel)
[![Build Status](https://img.shields.io/travis/tinper-bee/bee-search-panel/master.svg)](https://travis-ci.org/tinper-bee/bee-search-panel)
[![Coverage Status](https://coveralls.io/repos/github/tinper-bee/bee-search-panel/badge.svg?branch=master)](https://coveralls.io/github/tinper-bee/bee-search-panel?branch=master)
[![devDependency Status](https://img.shields.io/david/dev/tinper-bee/bee-search-panel.svg)](https://david-dm.org/tinper-bee/bee-search-panel#info=devDependencies)
[![NPM downloads](http://img.shields.io/npm/dm/bee-search-panel.svg?style=flat)](https://npmjs.org/package/bee-search-panel)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/tinper-bee/bee-search-panel.svg)](http://isitmaintained.com/project/tinper-bee/bee-search-panel "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/tinper-bee/bee-search-panel.svg)](http://isitmaintained.com/project/tinper-bee/bee-search-panel "Percentage of issues still open")


react bee-search-panel component for tinper-bee

折叠查询条件

## 使用方法

```
import SearchPanel from 'bee-search-panel';

class SearchPanelDemo extends Component {
    render() {
        return (
            <SearchPanel/>
        )
    }
}
```
#### 样式引入
- 可以使用link引入build目录下SearchPanel.css
```
<link rel="stylesheet" href="./node_modules/bee-search-panel/build/SearchPanel.css">
```
- 可以在js中import样式
```js
import "./node_modules/bee-search-panel/src/SearchPanel.scss"
//或是
import "./node_modules/bee-search-panel/build/SearchPanel.css"
```


## API

|参数|说明|类型|默认值|
|:---|:-----|:----|:------|
|isExpandedBtn|是否显示展开按钮|boolean|true|
|defaultExpanded|展开和收起的默认状态|boolean|false|
|expanded|是否默认展开|boolean|false|
|onSearch|点击查询的回调|function|-|
|onReset|点击查询的回调|function|-|
|title|查询面板标题|string|'默认筛选'|
|onPanelChangeStart|显示或隐藏开始回调|function|-|
|onPanelChangeIng|显示或隐藏进行中回调|function|-|
|onPanelChangeEnd|显示或隐藏结束回调|function|-|
|onChange|点击显示或隐藏回调|function|-|
|showOperation|是否显示 查询，清空操作按钮|bool|-|

#### 开发调试

```sh
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-search-panel
$ cd bee-search-panel
$ npm install
$ npm run dev
```

---
_Source: https://npm.io/package/bee-search-panel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
