forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardSection.vue
More file actions
69 lines (60 loc) · 1.78 KB
/
CardSection.vue
File metadata and controls
69 lines (60 loc) · 1.78 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
<template>
<div class="q-pa-md">
<div class="row items-start q-gutter-md">
<q-card flat bordered class="col">
<q-item>
<q-item-section avatar>
<q-avatar>
<img src="https://cdn.quasar.dev/img/boy-avatar.png">
</q-avatar>
</q-item-section>
<q-item-section>
<q-item-label>Title</q-item-label>
<q-item-label caption>
Subhead
</q-item-label>
</q-item-section>
</q-item>
<q-separator />
<q-responsive :ratio="16/9">
<!-- notice "border-radius-inherit" below; it's important when in a QCard -->
<q-card-section class="border-radius-inherit flex flex-center bg-grey-1">
<div>QCardSection with ratio 16:9</div>
</q-card-section>
</q-responsive>
</q-card>
<q-card flat bordered class="col">
<q-item>
<q-item-section avatar>
<q-avatar>
<img src="https://cdn.quasar.dev/img/boy-avatar.png">
</q-avatar>
</q-item-section>
<q-item-section>
<q-item-label>Title</q-item-label>
<q-item-label caption>
Subhead
</q-item-label>
</q-item-section>
</q-item>
<q-separator />
<q-responsive :ratio="1">
<!-- notice "border-radius-inherit" below; it's important when in a QCard -->
<q-card-section class="border-radius-inherit flex flex-center bg-grey-1">
<div>QCardSection with ratio 1:1</div>
</q-card-section>
</q-responsive>
</q-card>
</div>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
slide: ref(1)
}
}
}
</script>