classcard-ui 0.2.506 → 0.2.509

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.506",
3
+ "version": "0.2.509",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -38,13 +38,19 @@
38
38
  :rounded="true"
39
39
  ></c-avatar>
40
40
  <c-avatar
41
- v-else-if="showImage && !selectSearch && value && value.initials"
41
+ v-if="
42
+ showImage &&
43
+ !selectSearch &&
44
+ value &&
45
+ value.initials &&
46
+ value.type !== 'location'
47
+ "
42
48
  size="extraextrasmall"
43
49
  :nameInitials="value.initials"
44
50
  :rounded="true"
45
51
  ></c-avatar>
46
52
  <c-icon
47
- v-if="icon"
53
+ v-if="icon && !showImage"
48
54
  :class="icon.class"
49
55
  :name="icon.name"
50
56
  :type="icon.type"
@@ -110,19 +116,19 @@
110
116
  >
111
117
  <span class="flex items-center">
112
118
  <c-avatar
113
- v-if="showImage && option.photo"
119
+ v-if="option.photo"
114
120
  size="extraextrasmall"
115
121
  :image="option.photo"
116
122
  :rounded="true"
117
123
  ></c-avatar>
118
124
  <c-avatar
119
- v-else-if="showImage && option.initials"
125
+ v-if="option.initials && option.type !== 'location'"
120
126
  size="extraextrasmall"
121
127
  :nameInitials="option.initials"
122
128
  :rounded="true"
123
129
  ></c-avatar>
124
130
  <c-icon
125
- v-if="icon"
131
+ v-if="icon && option.type === 'location'"
126
132
  :class="icon.class"
127
133
  :name="icon.name"
128
134
  :type="icon.type"