Skip to content

Jeremy-Hibiki/tree-transfer

Repository files navigation

An TreeTransfer component based on ant.design 1

Implementation of the TreeTransfer component with ant.design 1 Tree and Transfer components.

The TreeTransfer component is a combination of the Tree and Transfer components, which allows you to transfer nodes between two trees.

The code is based on ant-design/ant-design#46706, and modified to TypeScript and fixed some bugs.

Installation

pnpm add @jeremy-hibiki/tree-transfer

or

npm install @jeremy-hibiki/tree-transfer

or

yarn add @jeremy-hibiki/tree-transfer

Usage

  • Check the example directory for more details.

Limitations

  • Only supports "two-level" trees, meaning the tree can only have two levels of nodes: a parent level and a children level.
  • Missing unit tests and e2e tests.

Footnotes

  1. https://ant.design/ 2