classcard-ui 0.2.1478 → 0.2.1480
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 +152 -172
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -1
- package/dist/classcard-ui.umd.js +152 -172
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +2 -2
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CSelect/CSelect.vue +29 -20
package/package.json
CHANGED
|
@@ -68,7 +68,10 @@
|
|
|
68
68
|
class="pointer-events-none absolute inset-0 left-3 flex h-9 items-center overflow-hidden pr-10"
|
|
69
69
|
>
|
|
70
70
|
<div
|
|
71
|
-
:class="[
|
|
71
|
+
:class="[
|
|
72
|
+
'flex min-w-0 flex-1 items-center gap-2',
|
|
73
|
+
selectedOptionStyles,
|
|
74
|
+
]"
|
|
72
75
|
>
|
|
73
76
|
<div
|
|
74
77
|
class="flex shrink-0"
|
|
@@ -149,31 +152,37 @@
|
|
|
149
152
|
+{{ selectedValuesArray.length - 1 }}
|
|
150
153
|
</p>
|
|
151
154
|
</div>
|
|
152
|
-
<
|
|
155
|
+
<div
|
|
153
156
|
v-else
|
|
154
|
-
|
|
155
|
-
'flex items-center gap-2 truncate text-sm',
|
|
156
|
-
showImage ? 'ml-3' : '',
|
|
157
|
-
selectedValueClass,
|
|
158
|
-
]"
|
|
159
|
-
v-bind:style="{
|
|
160
|
-
...(shouldShowCustomFonts ? { fontFamily: selectedValue } : {}),
|
|
161
|
-
}"
|
|
157
|
+
class="flex min-w-0 flex-1 items-center gap-3"
|
|
162
158
|
>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
159
|
+
<p
|
|
160
|
+
:class="[
|
|
161
|
+
'min-w-0 flex-1 truncate text-sm',
|
|
162
|
+
showImage ? 'ml-3' : '',
|
|
163
|
+
selectedValueClass,
|
|
164
|
+
]"
|
|
165
|
+
v-bind:style="{
|
|
166
|
+
...(shouldShowCustomFonts
|
|
167
|
+
? { fontFamily: selectedValue }
|
|
168
|
+
: {}),
|
|
169
|
+
}"
|
|
170
|
+
>
|
|
171
|
+
{{
|
|
172
|
+
hasSelectedValue
|
|
173
|
+
? selectedValue
|
|
174
|
+
: !selectSearch || selectSearch == ""
|
|
175
|
+
? placeholder
|
|
176
|
+
: null
|
|
177
|
+
}}
|
|
178
|
+
</p>
|
|
170
179
|
<c-tag
|
|
171
180
|
v-if="value && value.badge"
|
|
172
181
|
:label="value.badge.label"
|
|
173
182
|
:color="value.badge.color"
|
|
174
183
|
class="shrink-0"
|
|
175
184
|
></c-tag>
|
|
176
|
-
</
|
|
185
|
+
</div>
|
|
177
186
|
</div>
|
|
178
187
|
</div>
|
|
179
188
|
<div
|
|
@@ -616,8 +625,8 @@
|
|
|
616
625
|
import { isNumber, isEmpty } from "lodash-es";
|
|
617
626
|
import CIcon from "../CIcon/CIcon.vue";
|
|
618
627
|
import { getActionID } from "../../helper";
|
|
619
|
-
import CTag from
|
|
620
|
-
import CAvatar from
|
|
628
|
+
import CTag from "../CTag/CTag.vue";
|
|
629
|
+
import CAvatar from "../CAvatar/CAvatar.vue";
|
|
621
630
|
export default {
|
|
622
631
|
name: "CSelect",
|
|
623
632
|
components: {
|