# @beisen-platform/platform-dropdownlist

> 平台dropdownlist组件,绑定平台元数据

Latest version **1.0.27-rc.2** (published 2019-07-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-platform/platform-dropdownlist
pnpm add @beisen-platform/platform-dropdownlist
yarn add @beisen-platform/platform-dropdownlist
bun add @beisen-platform/platform-dropdownlist
```

## 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 | 1.0.27-rc.2 |
| Published | 2019-07-26 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 52.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | beisen |
| Maintainers | beisencorp |
| Keywords | beisen, react-component, es6 |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/platform-dropdownlist
- npm.io page: https://npm.io/package/@beisen-platform/platform-dropdownlist

## Dependencies (3)

- [@beisen-platform/common-func](https://npm.io/package/@beisen-platform/common-func.md) 1.x.x
- [@beisen-platform/react-icons](https://npm.io/package/@beisen-platform/react-icons.md)
- [@beisen-platform/platform-base](https://npm.io/package/@beisen-platform/platform-base.md) 0.x.x

## Recent versions

- 1.0.27-rc.2 (latest) — 2019-07-26
- 1.0.27-rc.1 — 2019-07-25
- 1.0.27 — 2019-07-05
- 1.0.26 — 2019-06-28
- 1.0.25 — 2019-06-20
- 1.0.24 — 2019-06-12
- 1.0.23 — 2019-06-12
- 1.0.22 — 2019-06-05
- 1.0.20 — 2019-06-05
- 1.0.19 — 2019-06-05
- 1.0.18 — 2019-06-03
- 1.0.17 — 2019-05-05
- 1.0.16 — 2019-04-29
- 1.0.15 — 2019-04-10
- 1.0.14 — 2019-03-22
- … 9 more at https://npm.io/package/@beisen-platform/platform-dropdownlist/versions

## README

## 组件使用、扩展文档

## 提交

1. npm install
2. 修改代码后执行 npm run lib进行编译
3. 更新package.json中的 version版本号
4. push代码
5. 在cmp.beisen.io站点，头部导航的《服务》中查看编译是否通过

## 使用参数

```
{
  text: this.props.text || '',
  value: this.props.value || '',
  "cmp_id": "9960148c-1565-40cb-ba13-af74d9e0d276",
  "cmp_name": "BeisenCloudDemosearchshengji_danxuanliebiao32",
  "cmp_type": "BC_DropDownList",
  "cmp_label": "职务dev",
  "cmp_data": {
      "title": "职务dev",
      "field_name": "danxuanliebiao32",
      "required": false,   //必填
      "cmp_state": "create",
      "cmp_status": "editable",
      "editdisplaystate": "editable",
      "createdisplaystate": "editable",
      "showdisplaystate": "readonly",
      "datasourcename": "NativePlace",
      "metaObjectName":"BeisenCloudDemo.searchshengji",
      "dataType": "Text",
      "multiple": true //true 或者false,单选或者多选
  },
  "search_data": {
    metaFieldRelationIDPath: null,
    metaobjectname: "BeisenCloudDemo.searchshengji",
    opeartor: "eq",
    seperator: "-"
  },
  "ifError": false, //true 或者false,是否显示错误状态
  "biz_data": { "text": "" },
  "validators": {},
  "placeholder":"输入框内提示信息", //默认是"请选择"
  "autoShowPanel": true,  // true或者false, 异步获取数据时是否重新渲染组件
  onChange: (value,target) => {},  //onchange回调事件
  onFocus: (val)=> {}   // focus时回调
}
```

## 组件使用

1. npm install @beisen-cmps/platform-dropdownlist
3. 该组件有两种使用方式, 第一种会走组件内部的获取数据方式,数据会存在state里，第二种会走外部传入的action
  1. import XXX from '@beisen-cmps/platform-dropdownlist'
  2. import {DropDownList} from '@beisen-cmps/platform-dropdownlist'

```
render() {
  return <DropDownList {...this.props}/>;
}
```

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