# @sinoyd/transfer-three

> 基于 element-ui 组件 el-transfer 的三段式穿梭框

Latest version **1.0.2** (published 2023-04-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @sinoyd/transfer-three
pnpm add @sinoyd/transfer-three
yarn add @sinoyd/transfer-three
bun add @sinoyd/transfer-three
```

## 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.2 |
| Published | 2023-04-13 |
| First published | 2023-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 225.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | sinoyd |
| Maintainers | ysmo, yefz |

## Links

- npm: https://www.npmjs.com/package/@sinoyd/transfer-three
- Repository: http://git.dev.yd/wuhan/npm/transfer-three
- npm.io page: https://npm.io/package/@sinoyd/transfer-three

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) 4.17.21
- [element-ui](https://npm.io/package/element-ui.md) 2.15.6

## Recent versions

- 1.0.2 (latest) — 2023-04-13
- 1.0.1 — 2023-04-13
- 1.0.0 — 2023-04-13

## README

# 基于 element-ui 组件 el-transfer 的三段式穿梭框

![预览](/priview/demo.gif)

[gitlab](http://git.dev.yd/wuhan/npm/transfer-three)

[npmjs](https://www.npmjs.com/package/@sinoyd/transfer-three)

## 安装

``` cmd
npm install @sinoyd/transfer-three
```

## 使用

```vue
<script>
import TransferThree from '@sinoyd/transfer-three';

export default {
  components: {
    TransferThree,
  },
  data() {
    return {
      // 数据源
      data: [],
      // 左侧数据
      leftValue: [],
      // 右侧数据
      rightValue: [],
    };
  },
}
</script>

<template>
  <div style="height: 500px">
    <TransferThree
      mode="copy"
      filterable
      filter-placeholder="请输入"
      :data="data"
      :left-value.sync="leftValue"
      :right-value.sync="rightValue"
      :titles="['left', 'source', 'right']"
      :props="{ key: 'key', label: 'label' }"
      @change="onChange"
    ></TransferThree>
  </div>
</template>
```

## props

| 参数 | 说明 | 类型 | 默认值 |
|--|--|--|--|
| mode |默认，为copy时，则移动时保留数据源 | string | '' |
| filterable | 是否开启检索 | boolean | false |
| filter-placeholder | 检索占位文本 | string | 请输入搜索内容 |
| titles | 自定义列表标题 | string[] | ['列表 1', '列表 2', '列表 3'] |
| left-value | 左侧绑定值 | array | |
| right-value | 右侧绑定值 | array | |
| data | 数据源 | array[{ key, label, disabled }] | [ ] |
| props | 数据源的字段别名 | object{key, label, disabled} | |

## event

| 事件名称 | 说明 | 回调参数 |
|--|--|--|
| change | 列表元素变化时触发 | 当前值[left, right]、数据移动的方向（'left' / 'right'）

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