-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathQuestionListItem.vue
57 lines (54 loc) · 1.05 KB
/
QuestionListItem.vue
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>
<v-card
class="mx-auto"
:flat="isFlat"
:outlined="isOutlined"
:width="width"
:height="height"
>
<v-card-title>{{title}}</v-card-title>
<v-card-text>Category: {{category}}</v-card-text>
<span class="ml-4">
<v-icon left>mdi-label</v-icon>
<v-chip
v-for="(tag, index) in tags"
:key="index"
class="ma-2"
label
>
{{tag}}
</v-chip>
</span>
<br/>
<v-chip class="ml-4 mb-2" v-if="subCategory">{{subCategory}}</v-chip>
</v-card>
</template>
<script>
export default {
name: 'QuestionListItem',
props: {
title: String,
category: String,
tags: Array,
subCategory: String,
isFlat: {
type: Boolean,
default: true,
},
isOutlined: {
type: Boolean,
default: true,
},
width: {
value: [Number, String],
default: '100%',
},
height: {
value: [Number, String],
default: 'auto',
},
},
};
</script>
<style scoped>
</style>