Adjustable split pane using Vue.js
# yarn (recommend)
$ yarn add vue-split-pane
# npm
$ npm install vue-split-pane --save
<script src="https://unpkg.com/vue-split-pane"></script>
<template>
<div class="app">
<VueSplitPane>
<section slot="left">Left Pane</section>
<section slot="right">Right Pane</section>
</VueSplitPane>
</div>
</template>
<script>
import VueSplitPane from 'vue-split-pane';
export default {
components: { VueSplitPane },
};
</script>
<!-- optionally use our default style -->
<style>
@import 'vue-split-pane/dist/vue-split-pane.esm.css';
</style>
Name | Description |
---|---|
left |
The content of left pane |
right |
The content of right pane |
You can use vue-cli with vue-rollup-boilerplate templates or other vue templates
MIT © Dang Van Thanh dangvanthanh@dangthanh.org