# @beisen-phoenix/search

> > @beisen-phoenix/search

Latest version **3.3.55** (published 2019-11-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-phoenix/search
pnpm add @beisen-phoenix/search
yarn add @beisen-phoenix/search
bun add @beisen-phoenix/search
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.3.55 |
| Published | 2019-11-25 |
| First published | 2019-03-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

- npm: https://www.npmjs.com/package/@beisen-phoenix/search
- npm.io page: https://npm.io/package/@beisen-phoenix/search

## Dependencies (3)

- [@beisen-phoenix/icon](https://npm.io/package/@beisen-phoenix/icon.md) ^3.2.54
- [@beisen-phoenix/input](https://npm.io/package/@beisen-phoenix/input.md) ^3.3.55
- [@beisen-phoenix/common-utils](https://npm.io/package/@beisen-phoenix/common-utils.md) ^3.3.55

## Recent versions

- 3.3.55 (latest) — 2019-11-25
- 3.2.44-rc.1 (rc) — 2019-10-24
- 3.3.54 — 2019-11-25
- 3.3.53 — 2019-11-25
- 3.3.52 — 2019-11-24
- 3.3.51 — 2019-11-23
- 3.3.50 — 2019-11-22
- 3.3.49 — 2019-11-22
- 3.3.48 — 2019-11-22
- 3.3.47 — 2019-11-22
- 3.3.46 — 2019-11-22
- 3.3.45 — 2019-11-21
- 3.3.43 — 2019-11-21
- 3.3.42 — 2019-11-21
- 3.3.41-beta.1 — 2019-11-21
- … 384 more at https://npm.io/package/@beisen-phoenix/search/versions

## README

# 搜索输入框组件

> @beisen-phoenix/search

## 概述

> 在@beisen-phoenix/input组件上做了一层封装。

## API

| 参数 | 说明 | 类型 | 默认值 | 是否必传 |
| --- | --- | --- | --- | --- |
| size | 搜索框尺寸，支持 `default` `large` `small` | string | default | No |
| value | 搜索框内容 | string | - | No |
| defaultValue | 搜索框默认内容，若使用了value，则defaultValue无效 | boolean | - | No |
| placeholder | 同原生input | string | `搜索` | No |
| status | 搜索框状态，正常、提示，支持 `normal` `isHint`  | string | 'normal' | No |
| translation | 国际化，详情见下方 | object | - | No |
| autoFocus | 首次挂载时是否自动获取焦点 | boolean | false | No |
| onChange | 搜索框内容变化时的回调 | function(value: string) | - | No |
| onFocus | 获取焦点时的回调 | function(value: string) | - | No |
| onBlur | 失去焦点时的回调 | function(value: string) | - | No |
| onSearch | 按下回车的回调 | function(value: string) | - | No |
| onClick | 点击搜索框时的回调 | function(event) | - | No |
| extraCls | 自定义组件容器class,一般用于覆盖组件默认样式使用| string | - | 否 | 
| extend | 自定义搜索框下方扩展文字或组件| string/ JSX.Element | - | 否 | 

## translation

```
translation: {
  placeholder: '搜索'
}
```

### 2019-08-19
去掉极限值打点出tips状态；

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