@weni/unnnic-system 1.16.28 → 1.16.30-develop.0
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
|
@@ -230,7 +230,13 @@ export default {
|
|
|
230
230
|
return selected.label;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
if (this.multiple) {
|
|
234
|
+
const labels = this.selectedOptions.map((item) => item.label);
|
|
235
|
+
return labels.join(', ');
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const label = this.selectedOptions.at(-1)?.label || '';
|
|
239
|
+
return label;
|
|
234
240
|
},
|
|
235
241
|
|
|
236
242
|
hasDescriptionOptions() {
|
|
@@ -293,7 +299,7 @@ export default {
|
|
|
293
299
|
if (this.active) {
|
|
294
300
|
return;
|
|
295
301
|
}
|
|
296
|
-
if (this.autocompleteClearOnFocus) {
|
|
302
|
+
if (this.autocompleteClearOnFocus || this.multiple) {
|
|
297
303
|
this.searchValue = '';
|
|
298
304
|
}
|
|
299
305
|
}
|