Merge branch 'Vue/tt-icon-select-add-multiple2' into 'master'

added tt-icon select multiple

See merge request fronk/thetool!1262
This commit is contained in:
Luca Haid
2025-04-25 07:59:55 +00:00

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