DisplayResults.vue 3.33 KB
Newer Older
Quentin David's avatar
Quentin David committed
1
2
<template>
    <v-container fluid>
Quentin David's avatar
Quentin David committed
3
4
5
6
7
8
9
10
11
12
        <v-row no-gutters>
            <v-col cols="3">
              <v-treeview
              class="fixed24"
              :items="items"
              activatable
              return-object
              :active.sync="selection"
              >
              </v-treeview>
Quentin David's avatar
Quentin David committed
13
14
            </v-col>
            <v-col cols="6">
Quentin David's avatar
Quentin David committed
15
16
17
18
19
20
21
22
23
              <div
              class="pa-5 fixed"
              >
              <h1> {{ selection }} </h1>
              Lorem ipsum dolor, sit amet consectetur adipisicing elit. 
              Quaerat, quam! Ipsam et eum beatae cupiditate exercitationem, 
              fugit porro nihil nostrum, nesciunt, 
              fuga natus reiciendis facilis mollitia! Ea iste ex quisquam?
              </div>
Quentin David's avatar
Quentin David committed
24
25
            </v-col>
            <v-col cols="3">
Quentin David's avatar
Quentin David committed
26
27
28
29
30
31
32
              <v-treeview
              class="fixed24"
              :items="items"
              color="white"
              activatable
              >
              </v-treeview>
Quentin David's avatar
Quentin David committed
33
34
35
36
37
38
39
            </v-col>
        </v-row>
    </v-container>
</template>
<script>
  export default {
    data: () => ({
Quentin David's avatar
Quentin David committed
40
      selection: null,
Quentin David's avatar
Quentin David committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
      items: [
        {
          id: 1,
          name: 'Applications :',
          children: [
            { id: 2, name: 'Calendar : app' },
            { id: 3, name: 'Chrome : app' },
            { id: 4, name: 'Webstorm : app' },
          ],
        },
        {
          id: 5,
          name: 'Documents :',
          children: [
            {
              id: 6,
              name: 'vuetify :',
              children: [
                {
                  id: 7,
                  name: 'src :',
                  children: [
                    { id: 8, name: 'index : ts' },
                    { id: 9, name: 'bootstrap : ts' },
                  ],
                },
              ],
            },
            {
              id: 10,
              name: 'material2 :',
              children: [
                {
                  id: 11,
                  name: 'src :',
                  children: [
                    { id: 12, name: 'v-btn : ts' },
                    { id: 13, name: 'v-card : ts' },
                    { id: 14, name: 'v-window : ts' },
                  ],
                },
              ],
            },
          ],
        },
        {
          id: 15,
          name: 'Downloads :',
          children: [
            { id: 16, name: 'October : pdf' },
            { id: 17, name: 'November : pdf' },
            { id: 18, name: 'Tutorial : html' },
          ],
        },
        {
          id: 19,
          name: 'Videos :',
          children: [
            {
              id: 20,
              name: 'Tutorials :',
              children: [
                { id: 21, name: 'Basic layouts : mp4' },
                { id: 22, name: 'Advanced techniques : mp4' },
                { id: 23, name: 'All about app : dir' },
              ],
            },
            { id: 24, name: 'Intro : mov' },
            { id: 25, name: 'Conference introduction : avi' },
          ],
        },
      ],
    }),
  }
Quentin David's avatar
Quentin David committed
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
</script>
<style>
.fixed24 {
  background-color: lightblue;
  position: absolute;
  overflow-y: scroll;
  height: 82%;
  width: 24%;
  border-radius: 5px;
}
.fixed {
  border: 2px solid #00598f;
  position: fixed;
  overflow-y: scroll;
  height: 82%;
  width: 48%;
  
  border-radius: 5px;
}
</style>