classcard-ui 0.2.505 → 0.2.506

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.505",
3
+ "version": "0.2.506",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -32,19 +32,19 @@
32
32
  <div class="pointer-events-none absolute top-2 left-3 flex">
33
33
  <span class="flex items-center" :style="selectedOptionStyles">
34
34
  <c-avatar
35
- v-if="showImage && !selectSearch && value.photo !== null"
35
+ v-if="showImage && !selectSearch && value && value.photo"
36
36
  size="extraextrasmall"
37
37
  :image="value.photo"
38
38
  :rounded="true"
39
39
  ></c-avatar>
40
40
  <c-avatar
41
- v-else-if="showImage && !selectSearch && value.initials !== null"
41
+ v-else-if="showImage && !selectSearch && value && value.initials"
42
42
  size="extraextrasmall"
43
43
  :nameInitials="value.initials"
44
44
  :rounded="true"
45
45
  ></c-avatar>
46
46
  <c-icon
47
- v-else
47
+ v-if="icon"
48
48
  :class="icon.class"
49
49
  :name="icon.name"
50
50
  :type="icon.type"
@@ -110,19 +110,19 @@
110
110
  >
111
111
  <span class="flex items-center">
112
112
  <c-avatar
113
- v-if="showImage && option.photo !== null"
113
+ v-if="showImage && option.photo"
114
114
  size="extraextrasmall"
115
115
  :image="option.photo"
116
116
  :rounded="true"
117
117
  ></c-avatar>
118
118
  <c-avatar
119
- v-else-if="showImage && option.initials !== null"
119
+ v-else-if="showImage && option.initials"
120
120
  size="extraextrasmall"
121
121
  :nameInitials="option.initials"
122
122
  :rounded="true"
123
123
  ></c-avatar>
124
124
  <c-icon
125
- v-else
125
+ v-if="icon"
126
126
  :class="icon.class"
127
127
  :name="icon.name"
128
128
  :type="icon.type"
@@ -130,10 +130,7 @@
130
130
  </c-icon>
131
131
  <span
132
132
  :class="
133
- (showImage && option.photo !== null) ||
134
- option.initials !== null
135
- ? 'ml-3'
136
- : ''
133
+ (showImage && option.photo) || option.initials ? 'ml-3' : ''
137
134
  "
138
135
  class="list-options block break-words font-normal"
139
136
  >{{ option[renderOptionName] }}