# @beisen-platform/ux-platform-department

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

Latest version **0.1.2-80** (published 2019-11-18) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2-80 |
| Published | 2019-11-18 |
| First published | 2019-09-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 306.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/ux-platform-department
- Repository: git@gitlab.beisencorp.com:ux-share-platform/ux-platform-department
- npm.io page: https://npm.io/package/@beisen-platform/ux-platform-department

## Dependencies (10)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@beisen-phoenix/search](https://npm.io/package/@beisen-phoenix/search.md) ^3.0.0-rc.47
- [@beisen-phoenix/tooltip](https://npm.io/package/@beisen-phoenix/tooltip.md) 3.2.47
- [@beisen-phoenix/department](https://npm.io/package/@beisen-phoenix/department.md) 3.3.23
- [@beisen-platform/common-func](https://npm.io/package/@beisen-platform/common-func.md) ^1.0.8
- [@beisen-platform/react-icons](https://npm.io/package/@beisen-platform/react-icons.md) ^1.0.0
- [@beisen-platform/common-label](https://npm.io/package/@beisen-platform/common-label.md) 1.0.3-rc.6
- [@beisen-platform/common-mount](https://npm.io/package/@beisen-platform/common-mount.md) 1.0.5
- [@beisen-platform/platform-runtime-helpers](https://npm.io/package/@beisen-platform/platform-runtime-helpers.md) ^1.1.1

## Recent versions

- 0.1.2-80 (latest) — 2019-11-18
- 0.1.2-76 — 2019-11-15
- 0.1.2-75 — 2019-11-14
- 0.1.2-74 — 2019-11-13
- 0.1.2-73 — 2019-11-13
- 0.1.2-71 — 2019-11-12
- 0.1.2-72 — 2019-11-11
- 0.1.2-69 — 2019-11-08
- 0.1.2-68 — 2019-11-08
- 0.1.2-67 — 2019-11-07
- 0.1.2-66 — 2019-11-07
- 0.1.2-65 — 2019-11-07
- 0.1.2-64 — 2019-11-06
- 0.1.2-63 — 2019-11-06
- 0.1.2-62 — 2019-11-05
- … 45 more at https://npm.io/package/@beisen-platform/ux-platform-department/versions

## 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-platform-department · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
