# @beisen-phoenix/field-lookup

> > @beisen-phoenix/field-lookup

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

## Install

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

## 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-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

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

## Dependencies (4)

- [@beisen-phoenix/lookup](https://npm.io/package/@beisen-phoenix/lookup.md) ^3.3.55
- [@beisen-phoenix/select](https://npm.io/package/@beisen-phoenix/select.md) ^3.3.55
- [@beisen-phoenix/unmodeled-layer](https://npm.io/package/@beisen-phoenix/unmodeled-layer.md) ^3.3.55
- [@beisen-phoenix/form-control-preview](https://npm.io/package/@beisen-phoenix/form-control-preview.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
- … 206 more at https://npm.io/package/@beisen-phoenix/field-lookup/versions

## README

## lookup-表单专用
> @beisen-phoenix/field-lookup

## API

### lookup props

| name     | description    | type     | default      |
|----------|----------------|----------|--------------|
| mode | 显示模式 | string | false | 'simple'/'advanced'
| multiple | 是否多选 | bool | false |
| isAvator| 简单模式下是否显示头象 | bool | false |
| options | 列表数据 | OptionsType[] | [] |
| selectValue | 选中值列表 | OptionsType[] | [] |
| onSearchChange | 简单模式下搜索触发方法 | Function | - |
| searchUrl | 简单模式请求url | string | - |
| formatData | 数据格式化接口 | Function | - |
| onChange | 组件选择值后触发方法(简单模式、高级模式确定选择项触发） | Function | - |
| advanceParam | 高级组件需要的属性 | advanceProps[] | [] |



### OptionsType

| name     | description    | type     | default      |
|----------|----------------|----------|--------------|
| label | 标题 | string |
| sublabel | 二级标题 | string |
| value | 值 | string |
| avator | 头象属性，请查看avatar组件http://gitlab.beisencorp.com/ux-phoenix/phoenix-monorepo/tree/master/src/components/avatar | AvatarProps |


### advanceProps(高级模式属性)

| name     | description    | type     | default      |
|----------|----------------|----------|--------------|
| searchFormMeta | searchForm的数据描述,参见searchform的文档 | [] |
| tableMeta | searchForm的数据描述,参见table的文档 | [] |
| tablePrimaryKey | table的主键,不传默认依次找value，id属性, | string |
| advMetaUrl | form和table的元数据请求接口 | string |
| advFormatMetaData | 格式化Meta数据,searchform和table描述数据 | Function |
| advanceSearchUrl | searchform改变后，发送获取table数据的请求url | string |
| advFormatListData | 格式化table数据 | Function |
| dlgTitle | 高级弹窗标题 | string |

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