forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScrollable.vue
More file actions
57 lines (47 loc) · 1.89 KB
/
Scrollable.vue
File metadata and controls
57 lines (47 loc) · 1.89 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
<template>
<div class="q-pa-md q-gutter-sm">
<q-btn label="Basic scroll" color="primary" @click="basic = true" />
<q-btn label="Fixed size" color="primary" @click="fixed = true" />
<q-dialog v-model="basic" transition-show="rotate" transition-hide="rotate">
<q-card>
<q-card-section>
<div class="text-h6">Terms of Agreement</div>
</q-card-section>
<q-card-section class="q-pt-none">
<p v-for="n in 15" :key="n">Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis perferendis totam, ea at omnis vel numquam exercitationem aut, natus minima, porro labore.</p>
</q-card-section>
<q-card-actions align="right">
<q-btn flat label="Decline" color="primary" v-close-popup />
<q-btn flat label="Accept" color="primary" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
<q-dialog v-model="fixed">
<q-card>
<q-card-section>
<div class="text-h6">Terms of Agreement</div>
</q-card-section>
<q-separator />
<q-card-section style="max-height: 50vh" class="scroll">
<p v-for="n in 15" :key="n">Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis perferendis totam, ea at omnis vel numquam exercitationem aut, natus minima, porro labore.</p>
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn flat label="Decline" color="primary" v-close-popup />
<q-btn flat label="Accept" color="primary" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
basic: ref(false),
fixed: ref(false)
}
}
}
</script>