base on https://github.com/PanJiaChen/vue-split-pane/tree/master
- use flex layout to replace float layout
- add
default-px
andmin-px
npm install vue-splitpane-fix
#import
import splitPane from 'vue-splitpane-fix'
# use as global component
Vue.component('split-pane', splitPane);
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