0.0.16 • Published 2 years ago

vue-split-layout v0.0.16

Weekly downloads
42
License
MIT
Repository
github
Last release
2 years ago

vue-split-layout

vue split drag layout

https://vue-hxs.github.io/vue-split-layout/

Install

npm install --save vue-split-layout

Usage

...
<template>
  <div id="app">
  <Layout :resize="true" :edit="true" :splits="tree">
    <div class="view1"></div> <!-- 0 - view -->
    <Pane title="pane">content</Pane> <!-- 1 - view -->
    <div class="view2"></div> <!-- 2 - view -->
  </Layout>

  </div>
</template>
<script>
import {Layout,Pane} from 'vue-split-layout'
export default {
    components: {Layout}
    data () {
      return {
        tree: {
          dir: 'horizontal', // Left | Right
          // Other split
          first: {
            dir: 'vertical',
            first: 0,    // these numbers represents the views slot ID
            second: 2
          },
          second: 1
        }
     }
  }
}
</script>
...

TODO

  • Better way for naming views instead of their indexes
  • Improve rendering, if a view state(props) is update outside layout, the view isn't updated
  • Persist creating an change $emit with possibily the tree json (also for split)
  • Makes views draggable from some menu so we can add new views
0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.13

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago