added tt-icon select multiple

This commit is contained in:
Luca Haid
2025-04-25 09:59:39 +02:00
parent e18513ffce
commit a45a99bcc2

View File

@@ -50,7 +50,7 @@ Vue.component('tt-icon-select', {
return opt ? { icon: opt.icon, title: opt.text } : { text: '1 selected', showCaret: true };
} else {
// Show count for multiple items
return { text: `${count} selected`, showCaret: true };
return { text: `${count}/${this.options.length}`, showCaret: true };
}
} else {
// Single selection mode: Find the corresponding option