# vue-splitpane

> vue split-pane component

Latest version **1.0.6** (published 2019-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-splitpane
pnpm add vue-splitpane
yarn add vue-splitpane
bun add vue-splitpane
```

## Health

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

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-12-01 |
| First published | 2017-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/vue-splitpane) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 555 |
| Author | Pan |
| Maintainers | panjiachen |

## Links

- npm: https://www.npmjs.com/package/vue-splitpane
- Repository: https://github.com/PanJiaChen/vue-split-pane
- Homepage: file:///Users/jiachenpan/www/Github/PanJiaChen.github.io/split-pane/demo/index.html
- Issues: https://github.com/PanJiaChen/vue-split-pane/issues
- npm.io page: https://npm.io/package/vue-splitpane

## Recent versions

- 1.0.6 (latest) — 2019-12-01
- 1.0.5 — 2019-12-01
- 1.0.4 — 2019-03-14
- 1.0.2 — 2017-12-14
- 1.0.1 — 2017-12-06
- 1.0.0 — 2017-07-07

## README

# Vue Split Pane

Split-Pane component built with vue2.0, can be split vertically or horizontally.

## [Try the demo](http://panjiachen.github.io/split-pane/demo/index.html)

### How to use?
```bash
npm install vue-splitpane

#import
import splitPane from 'vue-splitpane'

# use as global component
Vue.component('split-pane', splitPane);
```

### Example

```html
   <split-pane v-on:resize="resize" :min-percent='20' :default-percent='30' split="vertical">
      <template slot="paneL">
        A
      </template>
      <template slot="paneR">
        B
      </template>
    </split-pane>
```

```html
  //nested
   <split-pane v-on:resize="resize" :min-percent='20' :default-percent='30' split="vertical">
      <template slot="paneL">
        A
      </template>
      <template slot="paneR">
        <split-pane split="horizontal">
          <template slot="paneL">
           B
          </template>
          <template slot="paneR">
            C
          </template>
        </split-pane>
      </template>
    </split-pane>
```

### Options
|    Property    |    Description   |   type   |	default	|
| -----------------  | ---------------- | :--------: | :----------: |
| split       | the split type |String [horizontal,vertical] |must choose one type |
| min-percent         | paneL max-min-percent  |Number | 10 |
| max-percent         | paneL max-percent  |Number | 10 |

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