forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic.vue
More file actions
110 lines (98 loc) · 3.63 KB
/
Basic.vue
File metadata and controls
110 lines (98 loc) · 3.63 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
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
<template>
<div class="q-pa-md">
<q-layout view="lHh Lpr lFf" container style="height: 400px" class="shadow-2 rounded-borders">
<q-header reveal elevated>
<q-toolbar>
<q-btn flat round dense icon="menu" @click="drawerLeft = !drawerLeft" />
<q-toolbar-title>
<strong>Quasar</strong> Framework
</q-toolbar-title>
<q-btn flat round dense icon="menu" @click="drawerRight = !drawerRight" />
</q-toolbar>
</q-header>
<q-footer reveal elevated>
<q-toolbar>
<q-btn flat round dense icon="menu" @click="drawerLeft = !drawerLeft" />
<q-toolbar-title>
<strong>Quasar</strong> Framework
</q-toolbar-title>
<q-btn flat round dense icon="menu" @click="drawerRight = !drawerRight" />
</q-toolbar>
</q-footer>
<q-drawer
v-model="drawerLeft"
:width="150"
:breakpoint="700"
behavior="desktop"
bordered
class="bg-grey-3"
>
<q-scroll-area class="fit">
<div class="q-pa-sm">
<div v-for="n in 50" :key="n">Drawer {{ n }} / 50</div>
</div>
</q-scroll-area>
</q-drawer>
<q-drawer
side="right"
v-model="drawerRight"
bordered
:width="150"
:breakpoint="500"
behavior="desktop"
class="bg-grey-3"
>
<q-scroll-area class="fit">
<div class="q-pa-sm">
<div v-for="n in 50" :key="n">Drawer {{ n }} / 50</div>
</div>
</q-scroll-area>
</q-drawer>
<q-page-container>
<q-page padding>
<p v-for="n in 15" :key="n">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit nihil praesentium molestias a adipisci, dolore vitae odit, quidem consequatur optio voluptates asperiores pariatur eos numquam rerum delectus commodi perferendis voluptate?
</p>
<!-- place QPageSticky at end of page -->
<q-page-sticky position="top-left" :offset="[18, 18]">
<q-btn round color="accent" icon="arrow_back" class="rotate-45" />
</q-page-sticky>
<q-page-sticky position="top" :offset="[0, 18]">
<q-btn round color="accent" icon="arrow_back" class="rotate-90" />
</q-page-sticky>
<q-page-sticky position="top-right" :offset="[18, 18]">
<q-btn round color="accent" icon="arrow_upward" class="rotate-45" />
</q-page-sticky>
<q-page-sticky position="right" :offset="[18, 0]">
<q-btn round color="accent" icon="arrow_upward" class="rotate-90" />
</q-page-sticky>
<q-page-sticky position="left" :offset="[18, 0]">
<q-btn round color="accent" icon="arrow_back" />
</q-page-sticky>
<q-page-sticky position="bottom-left" :offset="[18, 18]">
<q-btn round color="accent" icon="arrow_forward" class="rotate-135" />
</q-page-sticky>
<q-page-sticky position="bottom" :offset="[0, 18]">
<q-btn round color="accent" icon="arrow_forward" class="rotate-90" />
</q-page-sticky>
<q-page-sticky position="bottom-right" :offset="[18, 18]">
<q-btn round color="accent" icon="arrow_forward" class="rotate-45" />
</q-page-sticky>
</q-page>
</q-page-container>
</q-layout>
</div>
</template>
<script>
import { useQuasar } from 'quasar'
import { ref } from 'vue'
export default {
setup () {
const $q = useQuasar()
return {
drawerLeft: ref($q.screen.width > 700),
drawerRight: ref($q.screen.width > 500)
}
}
}
</script>