# vue2-split-panel

> this is a schedule selector for vue

Latest version **1.0.1** (published 2020-10-26) · 0 weekly downloads

## Install

```sh
npm install vue2-split-panel
pnpm add vue2-split-panel
yarn add vue2-split-panel
bun add vue2-split-panel
```

## 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.1 |
| Published | 2020-10-26 |
| First published | 2020-10-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 507.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | u10k |
| Maintainers | dearzoe |
| Keywords | vue, split, panel |

## Links

- npm: https://www.npmjs.com/package/vue2-split-panel
- Repository: https://github.com/u10k/vue2-split-panel
- Homepage: https://github.com/u10k/vue2-split-panel#readme
- Issues: https://github.com/u10k/vue2-split-panel/issues
- npm.io page: https://npm.io/package/vue2-split-panel

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [core-js](https://npm.io/package/core-js.md) ^2.6.5
- [date-fns](https://npm.io/package/date-fns.md) ^1.30.1

## Recent versions

- 1.0.1 (latest) — 2020-10-26
- 1.0.0 — 2020-10-26

## README

# Vue Split Panel

Split-Pane component built with vue2.0, can be split vertically or horizontally.

### How to use?
```bash
npm install vue2-split-panel

#import
import splitPane from 'vue2-split-panel'

# use as global component
Vue.component('split-pane', splitPane);
```

### Example

```html
   <split-pane v-on:resize="resize" :min-width='20' :default-width='30' split="vertical">
      <template slot="paneL">
        A
      </template>
      <template slot="paneR">
        B
      </template>
    </split-pane>
```

```html
   <split-pane v-on:resize="resize" :min-width='20' :default-width='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(px)	|
| -----------------  | ---------------- | :--------: | :----------: |
| split       | the split type |String [horizontal,vertical] |must choose one type |
| max-width         | max-width  |Number | 300 |
| min-width         | min-width  |Number | 100 |
| defaultWidth         | width  |Number | 200 |

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