-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathLicenseCard.vue
63 lines (60 loc) · 1.49 KB
/
LicenseCard.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
58
59
60
61
62
63
<template>
<div class='column'>
<div class="card">
<header class="card-header">
<h2
:class="'vocab-h2'">Your License</h2>
</header>
<div class="card-content">
<SelectedLicenseDropdown
v-model="currentLicense"
/>
<SelectedLicenseInfo
v-model="value"
/>
<SelectedLicenseCode
v-model="value"
/>
</div>
</div>
</div>
</template>
<script>
import SelectedLicenseInfo from './SelectedLicenseInfo'
import SelectedLicenseDropdown from './SelectedLicenseDropdown'
import SelectedLicenseCode from './SelectedLicenseCode'
export default {
name: 'SelectedLicenseCard',
props: ['value'],
components: {
SelectedLicenseCode,
SelectedLicenseDropdown,
SelectedLicenseInfo
},
computed: {
currentLicense: {
get() {
return this.value
},
set(currentLicense) {
this.$emit('input', currentLicense)
this.$emit('dropdown-clicked')
}
}
}
}
</script>
<style lang="scss" scoped>
.column {
padding:0!important;
}
div.card {
height: 580px;
border-top: 10px solid #04A635;
}
@media only screen and (max-width: 670px) {
div.card {
height: auto;
}
}
</style>