forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPositioning.vue
More file actions
48 lines (40 loc) · 1.27 KB
/
Positioning.vue
File metadata and controls
48 lines (40 loc) · 1.27 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
<template>
<div class="q-pa-md q-gutter-sm">
<q-btn label="Top" icon="keyboard_arrow_up" color="primary" @click="open('top')" />
<q-btn label="Right" icon="keyboard_arrow_right" color="primary" @click="open('right')" />
<q-btn label="Bottom" icon="keyboard_arrow_down" color="primary" @click="open('bottom')" />
<q-btn label="Left" icon="keyboard_arrow_left" color="primary" @click="open('left')" />
<q-dialog v-model="dialog" :position="position">
<q-card style="width: 350px">
<q-linear-progress :value="0.6" color="pink" />
<q-card-section class="row items-center no-wrap">
<div>
<div class="text-weight-bold">The Walker</div>
<div class="text-grey">Fitz & The Tantrums</div>
</div>
<q-space />
<q-btn flat round icon="fast_rewind" />
<q-btn flat round icon="pause" />
<q-btn flat round icon="fast_forward" />
</q-card-section>
</q-card>
</q-dialog>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
const dialog = ref(false)
const position = ref('top')
return {
dialog,
position,
open (pos) {
position.value = pos
dialog.value = true
}
}
}
}
</script>