mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-05 19:41:51 +08:00
* perf[navbar]: set langSelect to component && refine errorLog component
* feat[login]:add 18n to login form
* fix[pagination]: fixed when selected page-sizes
* perf[i18n]:dashboard document svg permission
* perf[charts]: perf effect
* perf[i18n]:excel && zip
* perf[i18n]: table && errorLog && theme
* perf[i18n]: components
* perf[i18n]: direct use $t
* perf[i18n]: complex-table
* update README.md
* update README.md 📘
* perf[i18n]: refine code comments
68 lines
1.4 KiB
Vue
68 lines
1.4 KiB
Vue
<template>
|
|
<div class="components-container">
|
|
<code><strong>SplitPane</strong> If you've used
|
|
<a href="http://codepen.io/" target="_blank"> codepen</a>,
|
|
<a href="https://jsfiddle.net/" target="_blank"> jsfiddle </a>will not be unfamiliar.
|
|
<a href="https://github.com/PanJiaChen/vue-split-pane" target='_blank'> Github repository</a>
|
|
</code>
|
|
<split-pane v-on:resize="resize" split="vertical">
|
|
<template slot="paneL">
|
|
<div class="left-container"></div>
|
|
</template>
|
|
<template slot="paneR">
|
|
<split-pane split="horizontal">
|
|
<template slot="paneL">
|
|
<div class="top-container"></div>
|
|
</template>
|
|
<template slot="paneR">
|
|
<div class="bottom-container"></div>
|
|
</template>
|
|
</split-pane>
|
|
</template>
|
|
</split-pane>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import splitPane from 'vue-splitpane'
|
|
|
|
export default {
|
|
name: 'splitpane-demo',
|
|
components: { splitPane },
|
|
methods: {
|
|
resize() {
|
|
console.log('resize')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.components-container {
|
|
position: relative;
|
|
height: 100vh;
|
|
}
|
|
|
|
.left-container {
|
|
background-color: #F38181;
|
|
height: 100%;
|
|
}
|
|
|
|
.right-container {
|
|
background-color: #FCE38A;
|
|
height: 200px;
|
|
}
|
|
|
|
.top-container {
|
|
background-color: #FCE38A;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.bottom-container {
|
|
width: 100%;
|
|
background-color: #95E1D3;
|
|
height: 100%;
|
|
}
|
|
</style>
|