PageBrowser.vue 769 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<template lang="pug">
.row
  .col-auto.bg-grey-1(style='width: 250px;')
    q-tree(
      :nodes='tree'
      default-expand-all
      node-key='label'
      @lazy-load='onLazyLoad'
    )
  .col Doude
</template>

<script>
export default {
  data () {
    return {
      tree: [
        {
          label: 'Item 1',
          icon: 'las la-folder',
          children: [
            { label: 'Item 1.1' },
            {
              label: 'Item 1.2',
              icon: 'las la-folder',
              children: [
                { label: 'Item 1.2.1' },
                { label: 'Item 1.2.2' }
              ]
            }
          ]
        }
      ]
    }
  },
  methods: {
    async onLazyLoad ({ node, key, done, fail }) {
      done([])
    }
  }
}
</script>