classcard-ui 0.2.504 → 0.2.505

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.504",
3
+ "version": "0.2.505",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -38,13 +38,13 @@
38
38
  :rounded="true"
39
39
  ></c-avatar>
40
40
  <c-avatar
41
- v-else
41
+ v-else-if="showImage && !selectSearch && value.initials !== null"
42
42
  size="extraextrasmall"
43
43
  :nameInitials="value.initials"
44
44
  :rounded="true"
45
45
  ></c-avatar>
46
46
  <c-icon
47
- v-if="icon && !selectSearch"
47
+ v-else
48
48
  :class="icon.class"
49
49
  :name="icon.name"
50
50
  :type="icon.type"
@@ -116,20 +116,25 @@
116
116
  :rounded="true"
117
117
  ></c-avatar>
118
118
  <c-avatar
119
- v-else
119
+ v-else-if="showImage && option.initials !== null"
120
120
  size="extraextrasmall"
121
121
  :nameInitials="option.initials"
122
122
  :rounded="true"
123
123
  ></c-avatar>
124
124
  <c-icon
125
- v-if="!showImage && icon"
125
+ v-else
126
126
  :class="icon.class"
127
127
  :name="icon.name"
128
128
  :type="icon.type"
129
- :rounded="true"
130
- ></c-icon>
129
+ >
130
+ </c-icon>
131
131
  <span
132
- :class="showImage && option.photo ? 'ml-3' : ''"
132
+ :class="
133
+ (showImage && option.photo !== null) ||
134
+ option.initials !== null
135
+ ? 'ml-3'
136
+ : ''
137
+ "
133
138
  class="list-options block break-words font-normal"
134
139
  >{{ option[renderOptionName] }}
135
140
  </span>