classcard-ui 0.2.504 → 0.2.507
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/dist/classcard-ui.common.js +72 -54
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +72 -54
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CSelect/CSelect.vue +19 -9
package/package.json
CHANGED
|
@@ -32,19 +32,25 @@
|
|
|
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
|
|
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
|
|
41
|
+
v-else-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,26 +116,30 @@
|
|
|
110
116
|
>
|
|
111
117
|
<span class="flex items-center">
|
|
112
118
|
<c-avatar
|
|
113
|
-
v-if="showImage && option.photo
|
|
119
|
+
v-if="showImage && 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
|
|
125
|
+
v-else-if="
|
|
126
|
+
showImage && option.initials && option.type !== location
|
|
127
|
+
"
|
|
120
128
|
size="extraextrasmall"
|
|
121
129
|
:nameInitials="option.initials"
|
|
122
130
|
:rounded="true"
|
|
123
131
|
></c-avatar>
|
|
124
132
|
<c-icon
|
|
125
|
-
v-if="
|
|
133
|
+
v-if="icon && !showImage"
|
|
126
134
|
:class="icon.class"
|
|
127
135
|
:name="icon.name"
|
|
128
136
|
:type="icon.type"
|
|
129
|
-
|
|
130
|
-
|
|
137
|
+
>
|
|
138
|
+
</c-icon>
|
|
131
139
|
<span
|
|
132
|
-
:class="
|
|
140
|
+
:class="
|
|
141
|
+
(showImage && option.photo) || option.initials ? 'ml-3' : ''
|
|
142
|
+
"
|
|
133
143
|
class="list-options block break-words font-normal"
|
|
134
144
|
>{{ option[renderOptionName] }}
|
|
135
145
|
</span>
|