@bedrock/vue-vc 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
title="Issued by"
|
|
7
7
|
:value="issuerName" />
|
|
8
8
|
<dynamic-image
|
|
9
|
+
class="q-mx-md"
|
|
9
10
|
:src="credentialImage"
|
|
10
11
|
size="lg" />
|
|
11
12
|
<credential-field
|
|
12
|
-
|
|
13
|
+
:value="description"
|
|
13
14
|
:title="credentialName"
|
|
15
|
+
class="col text-center"
|
|
14
16
|
title-class="text-subtitle1"
|
|
15
|
-
:value="credentialDescription"
|
|
16
17
|
value-class="text-body2 text-grey-7" />
|
|
17
18
|
</div>
|
|
18
19
|
</div>
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
|
|
21
22
|
<script setup>
|
|
22
23
|
/*!
|
|
23
|
-
* Copyright (c) 2018-
|
|
24
|
+
* Copyright (c) 2018-2023 Digital Bazaar, Inc. All rights reserved.
|
|
24
25
|
*/
|
|
25
|
-
import {defineProps, toRef} from 'vue';
|
|
26
|
+
import {computed, defineProps, toRef, unref} from 'vue';
|
|
26
27
|
import CredentialField from './CredentialField.vue';
|
|
27
28
|
import DynamicImage from './DynamicImage.vue';
|
|
28
29
|
import {useCredentialCommon} from './credentialCommon.js';
|
|
@@ -44,6 +45,11 @@ const {
|
|
|
44
45
|
} = useCredentialCommon({
|
|
45
46
|
credential: toRef(props, 'credential')
|
|
46
47
|
});
|
|
48
|
+
|
|
49
|
+
const description = computed(() => {
|
|
50
|
+
const description = unref(credentialDescription);
|
|
51
|
+
return description || 'No description available.';
|
|
52
|
+
});
|
|
47
53
|
</script>
|
|
48
54
|
|
|
49
55
|
<style lang="scss" scoped>
|
|
@@ -74,6 +74,10 @@ $md: 75px;
|
|
|
74
74
|
$lg: 125px;
|
|
75
75
|
$xl: 150px;
|
|
76
76
|
|
|
77
|
+
img {
|
|
78
|
+
object-fit: contain
|
|
79
|
+
}
|
|
80
|
+
|
|
77
81
|
.credential-card-image-xs {
|
|
78
82
|
svg {
|
|
79
83
|
width: $xs;
|
|
@@ -153,5 +157,6 @@ $xl: 150px;
|
|
|
153
157
|
height: $xl;
|
|
154
158
|
border-radius: 4px;
|
|
155
159
|
}
|
|
160
|
+
|
|
156
161
|
}
|
|
157
162
|
</style>
|