feat: update selectors

This commit is contained in:
Qiuxia Fan
2022-01-17 15:22:54 +08:00
parent ffe35b89f9
commit dd703426f7
6 changed files with 60 additions and 72 deletions

View File

@@ -59,9 +59,6 @@ const props = defineProps({
});
const selected = ref<string[] | string>(props.value);
function changeSelected() {
if (!props.multiple) {
return;
}
const options = props.options.filter((d: Option) =>
props.multiple
? selected.value.includes(d.value)