New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@vtian/vue3-split-panel

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtian/vue3-split-panel

vue3-split-panel @vtian

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Vue Split Pane

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

Try the demo

How to use?

npm install vue-splitpane

#import
import splitPane from 'vue-splitpane'

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

Example

<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>
//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

PropertyDescriptiontypedefault
splitthe split typeString [horizontal,vertical]must choose one type
min-percentpaneL max-min-percentNumber10
max-percentpaneL max-percentNumber10

Keywords

vue3-split-panel

FAQs

Package last updated on 25 Jul 2021

Related posts