Projekte
Auf GitHub ansehen
PanJiaChen/vue-split-pane
Über uns
Mit vue2.0 erstellte Split-Pane-Komponente, die sich vertikal oder horizontal teilen lässt. http://panjiachen.github.io/split-pane/demo/index.html
Web- und App-EntwicklungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalVue 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
| 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 |
Ähnliche Projekte entdecken
Wird geladen…