You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
804 B
51 lines
804 B
3 years ago
|
<template>
|
||
|
<div :class="classes">
|
||
|
<slot></slot>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'Pane',
|
||
|
props: {
|
||
|
className: String
|
||
|
},
|
||
|
data() {
|
||
|
const classes = [this.$parent.split, this.className]
|
||
|
return {
|
||
|
classes: classes.join(' '),
|
||
|
percent: 50
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.splitter-pane.vertical.splitter-paneL {
|
||
|
position: absolute;
|
||
|
left: 0px;
|
||
|
height: 100%;
|
||
|
padding-right: 3px;
|
||
|
}
|
||
|
|
||
|
.splitter-pane.vertical.splitter-paneR {
|
||
|
position: absolute;
|
||
|
right: 0px;
|
||
|
height: 100%;
|
||
|
padding-left: 3px;
|
||
|
}
|
||
|
|
||
|
.splitter-pane.horizontal.splitter-paneL {
|
||
|
position: absolute;
|
||
|
top: 0px;
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.splitter-pane.horizontal.splitter-paneR {
|
||
|
position: absolute;
|
||
|
bottom: 0px;
|
||
|
width: 100%;
|
||
|
padding-top: 3px;
|
||
|
}
|
||
|
</style>
|