forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.vue
More file actions
83 lines (74 loc) · 2.36 KB
/
layout.vue
File metadata and controls
83 lines (74 loc) · 2.36 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
71
72
73
74
75
76
77
78
79
80
81
82
83
<template>
<q-layout>
<div slot="header" class="toolbar">
<button class="hide-on-drawer-visible" @click="$refs.leftDrawer.open()">
<i>menu</i>
</button>
<q-toolbar-title :padding="1">
Quasar Layout
</q-toolbar-title>
<button @click="$refs.rightDrawer.open()">
<i>assignment</i>
</button>
</div>
<div slot="header" class="toolbar primary">
<q-search v-model="search" class="primary"></q-search>
</div>
<q-tabs slot="navigation">
<q-tab icon="view_quilt" :route="{path: '/test-layout/about'}" replace hide="icon">About</q-tab>
<q-tab icon="view_day" route="/test-layout/toolbar" replace hide="icon">Toolbar</q-tab>
<q-tab icon="view_day" route="/test-layout/tabs" replace>Tabs</q-tab>
<q-tab icon="input" route="/test-layout/drawer" replace>Drawer</q-tab>
</q-tabs>
<q-drawer ref="leftDrawer">
<div class="toolbar light">
<q-toolbar-title :padding="1">
Drawer
</q-toolbar-title>
</div>
<div class="list no-border platform-delimiter" v-for="n in 10">
<q-drawer-link icon="view_quilt" :to="{path: '/test-layout', exact: true}">
About Layout
</q-drawer-link>
<hr>
<div class="list-label">Layout Components</div>
<q-drawer-link icon="build" to="/test-layout/toolbar">
Toolbar
</q-drawer-link>
<q-drawer-link icon="tab" to="/test-layout/tabs">
Tabs
</q-drawer-link>
<q-drawer-link icon="compare_arrows" to="/test-layout/drawer">
Layout Drawer
</q-drawer-link>
</div>
</q-drawer>
<router-view class="layout-view"></router-view>
<q-drawer right-side swipe-only ref="rightDrawer">
<div class="toolbar light">
<q-toolbar-title :padding="1">
Right-side Drawer
</q-toolbar-title>
</div>
<p style="padding: 25px;" class="text-grey-7">
This is yet another Drawer that does not gets displayed alongside content on
bigger screens.
</p>
</q-drawer>
<div slot="footer" class="toolbar">
<router-link tag="button" to="/" exact>
<i class="on-left">keyboard_arrow_left</i>
Back to Index
</router-link>
</div>
</q-layout>
</template>
<script>
export default {
data () {
return {
search: ''
}
}
}
</script>