|
|
@ -317,9 +317,9 @@ useEventListener(document, 'click', handleClose, true) |
|
|
|
|
|
|
|
|
|
|
|
const selectedOpts = computed(() => { |
|
|
|
const selectedOpts = computed(() => { |
|
|
|
return vModel.value.reduce<SelectOptionType[]>((selectedOptions, option) => { |
|
|
|
return vModel.value.reduce<SelectOptionType[]>((selectedOptions, option) => { |
|
|
|
const fnd = options.value.find((o) => o.value === option) |
|
|
|
const selectedOption = options.value.find((o) => o.value === option) |
|
|
|
if (fnd) { |
|
|
|
if (selectedOption) { |
|
|
|
selectedOptions.push(fnd) |
|
|
|
selectedOptions.push(selectedOption) |
|
|
|
} |
|
|
|
} |
|
|
|
return selectedOptions |
|
|
|
return selectedOptions |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|