# @beisen-platform/ux-standard-department-selector

> > //TODO: 平台部门多选组件，对应 `BC_Department` 类型，部门多选。

Latest version **1.0.6** (published 2019-11-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-platform/ux-standard-department-selector
pnpm add @beisen-platform/ux-standard-department-selector
yarn add @beisen-platform/ux-standard-department-selector
bun add @beisen-platform/ux-standard-department-selector
```

## 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.6 |
| Published | 2019-11-26 |
| First published | 2019-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 321.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/ux-standard-department-selector
- npm.io page: https://npm.io/package/@beisen-platform/ux-standard-department-selector

## Dependencies (5)

- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@beisen-phoenix/field-department](https://npm.io/package/@beisen-phoenix/field-department.md) 3.3.0
- [@beisen-platform/static-form-label](https://npm.io/package/@beisen-platform/static-form-label.md) ^0.2.17-rc.1
- [@beisen-platform/platform-runtime-helpers](https://npm.io/package/@beisen-platform/platform-runtime-helpers.md) ~1.1.0
- [@beisen-platform/ux-standard-fields-common](https://npm.io/package/@beisen-platform/ux-standard-fields-common.md) 1.0.6

## Recent versions

- 1.0.6 (latest) — 2019-11-26

## README

# 平台部门多选组件（用于表格筛选、表单 Field）

> //TODO: 平台部门多选组件，对应 `BC_Department` 类型，部门多选。

基于 [`@beisen-phoenix/department`](http://cmp.italent-inc.cn/details?id=1557)

## 开发

```shell
npm i

npm start

# eslint(带修复)
npm run lint

# 启动示例
npm run examples
```

## 使用

具体参考 examples 下的示例代码。

```js
import Department from '@beisen-platform/ux-platform-department';

// dataFormatter 数据格式化方法，主要用于将 cmp_data 格式化为 @beisen-phoenix/department 数据格式
// uiType: search 表格筛选 | create 表单 field
<Department dataFormatter={dataFormatter} uiType="search" />;
```

| 属性            | 必填        | 取值                                                             | 说明                                                                             |
| --------------- | ----------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `uiType`        | O, `string` | `'search'` 表格筛选、`'create'` 表单 field                       |                                                                                  |
| `dataFormatter` | O, `func`   | 默认 [dataFormat#formatToDepartmentFromRawData](./dataFormat.js) | 数据格式化方法，主要用于将 cmp_data 格式化为 @beisen-phoenix/department 数据格式 |

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