vue-splitpane-fix
v3.0.0
Published
vue split-pane component
Downloads
279
Readme
vue-splitpane-fix
base on https://github.com/PanJiaChen/vue-split-pane/tree/master
features
- use flex layout to replace float layout
- add
default-px
andmin-px
try on http://thinkerchan.github.io/vue-split-pane-fix/demo/index.html
How to use?
npm install vue-splitpane-fix
#import
import splitPane from 'vue-splitpane-fix'
# use as global component
Vue.component('split-pane', splitPane);
Options
| Property | Description | type | default | | ----------------- | ---------------- | :--------: | :----------: | | split | the split type |String [horizontal,vertical] |must choose one type | | default-percent | paneL default-percent |Number | 50 | | min-percent | paneL max-min-percent |Number | 10 | | default-px | paneL default-px |Number | 0 | | min-px | paneL min-px |Number | 300 |
if you set
default-px
with a non-zero value,default-percent
will not work