# nw-vue-horizontal-tree

> yet another vue tree component

Latest version **0.0.2** (published 2019-03-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install nw-vue-horizontal-tree
pnpm add nw-vue-horizontal-tree
yarn add nw-vue-horizontal-tree
bun add nw-vue-horizontal-tree
```

## 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.0.2 |
| Published | 2019-03-16 |
| First published | 2019-03-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 102.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Nick Wang |
| Maintainers | hcfw007 |

## Links

- npm: https://www.npmjs.com/package/nw-vue-horizontal-tree
- Repository: https://github.com/hcfw007/nw-vue-horizontal-tree
- Homepage: https://github.com/hcfw007/nw-vue-horizontal-tree#readme
- Issues: https://github.com/hcfw007/nw-vue-horizontal-tree/issues
- npm.io page: https://npm.io/package/nw-vue-horizontal-tree

## Recent versions

- 0.0.2 (latest) — 2019-03-16

## README

# nw-vue-horizontal-tree
>yet another vue tree component

Last few days I was trying to find a light-weight Vue components to display tree charts(or relations? Not sure how this should be called) horizontally. But I failed, so I made one. Hope it might be helpful. At least it solved my problem.

## demo
![image](https://raw.githubusercontent.com/hcfw007/nw-vue-horizontal-tree/master/demo/imgs/basic-demo.png)

# how to use

## with \<script\> tag
### Step 1:
download dist/tree.global.js
### Step 2:
import with \<script\> tag AFTER Vue
(no Vue.use required)
### Step 3:
use as a global component directly in template
```\
<tree-node :tree-data="treeData" />
```

## with module system
### Step 1:
npm install nw-vue-horizontal-tree -D
### Step 2:
```
import treeNode from 'nw-vue-horizontal-tree'
Vue.use(treeNode)
```
### Step 3:
use as a global component directly in template
```\
<tree-node :tree-data="treeData" />
```
P.S. if you use String Templates or Single File Components(.Vue), you can use it as Camel-Case
```
<treeNode :treeData="treeData" />
```

# Note
Please make sure the width of the parent element is enough to contain the whole tree. Otherwise the flex layout will result in a mess.

---
_Source: https://npm.io/package/nw-vue-horizontal-tree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
