FileNavbarComponent.vue
1.68 KB
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
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
<template>
<v-system-bar
:height="55">
<create-folder-form-component/>
<create-file-form-component/>
<v-text-field
flat
solo-inverted
hide-details
prepend-inner-icon="mdi-magnify"
label="내 드라이브에서 검색"
class="hidden-sm-and-down"
dark
color="grey darken-4"
></v-text-field>
<v-menu offset-y>
<template
v-slot:activator="{on}">
<v-btn
text
v-on="on"
>
<v-icon>sort</v-icon>
<span class="caption">정렬</span>
</v-btn>
</template>
<v-list>
<v-list-item v-for="view in views" :key="view.title" @click="changeCurrentView(view.title)">
<v-list-action>
<v-icon small>{{view.icon}}</v-icon>
</v-list-action>
<v-list-title class="ml-1 body-2">{{view.title}}</v-list-title>
</v-list-item>
</v-list>
</v-menu>
</v-system-bar>
</template>
<script>
import 'material-design-icons-iconfont/dist/material-design-icons.css'
import CreateFolderFormComponent from "./CreateFolderFormComponent";
import CreateFileFormComponent from "./CreateFileFormComponent";
export default {
name: "FileNavbarComponent",
components: {CreateFolderFormComponent, CreateFileFormComponent},
data() {
return {
currentView: 0,
views: [
{value: 0, icon: 'format_align_left', title: '목록'},
{value: 1, icon: 'border_all', title: '타일'}
],
}
},
methods: {
changeCurrentView(value) {
this.currentView = value;
console.log(this.currentView);
},
}
}
</script>
<style scoped>
</style>