classcard-ui 0.2.1480 → 0.2.1482
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 +104 -95
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -1
- package/dist/classcard-ui.umd.js +104 -95
- 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/CMultiselect/CMultiselect.vue +12 -0
- package/src/components/CSelect/CSelect.vue +2 -5
package/package.json
CHANGED
|
@@ -521,6 +521,10 @@ export default {
|
|
|
521
521
|
id: {
|
|
522
522
|
type: String,
|
|
523
523
|
},
|
|
524
|
+
clearInput: {
|
|
525
|
+
type: Boolean,
|
|
526
|
+
default: false,
|
|
527
|
+
},
|
|
524
528
|
options: {
|
|
525
529
|
type: Array,
|
|
526
530
|
required: true,
|
|
@@ -921,6 +925,14 @@ export default {
|
|
|
921
925
|
this.value = params;
|
|
922
926
|
}
|
|
923
927
|
this.$emit("onSelectOptions", params);
|
|
928
|
+
if (this.clearInput) {
|
|
929
|
+
this.value = [];
|
|
930
|
+
this.$nextTick(() => {
|
|
931
|
+
if (this.$refs.vselect) {
|
|
932
|
+
this.$refs.vselect.search = "";
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
}
|
|
924
936
|
},
|
|
925
937
|
async onOpen() {
|
|
926
938
|
if (this.hasNextPage) {
|
|
@@ -152,13 +152,10 @@
|
|
|
152
152
|
+{{ selectedValuesArray.length - 1 }}
|
|
153
153
|
</p>
|
|
154
154
|
</div>
|
|
155
|
-
<div
|
|
156
|
-
v-else
|
|
157
|
-
class="flex min-w-0 flex-1 items-center gap-3"
|
|
158
|
-
>
|
|
155
|
+
<div v-else class="flex min-w-0 flex-1 items-center gap-3">
|
|
159
156
|
<p
|
|
160
157
|
:class="[
|
|
161
|
-
'min-w-0 flex-1 truncate text-sm',
|
|
158
|
+
'min-w-0 flex-1 truncate text-sm text-left',
|
|
162
159
|
showImage ? 'ml-3' : '',
|
|
163
160
|
selectedValueClass,
|
|
164
161
|
]"
|