feat: sorting, searching
This commit is contained in:
@@ -17,7 +17,6 @@ const pushOrRemove = (option: T) => {
|
||||
} else {
|
||||
selected.value.push(option)
|
||||
}
|
||||
//setNullIds()
|
||||
}
|
||||
|
||||
const setNullIds = () => {
|
||||
@@ -27,12 +26,11 @@ const setNullIds = () => {
|
||||
})
|
||||
}
|
||||
|
||||
//onMounted(setNullIds)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="">
|
||||
<ul class="max-h-48 h-auto overflow-y-auto background rounded-md p-3 w-full border-gray-500 border">
|
||||
<ul class="max-h-48 h-auto overflow-y-auto background rounded-md p-3 w-full native-border">
|
||||
<li v-for="option in options" :key="option.Id" class="flex items-center gap-2">
|
||||
<Checkbox :checked="selected.some(item => item.Id == option.Id)" @click="pushOrRemove(option)" />
|
||||
<label :for="option.Id.toString()">{{ structView(option, path) }}</label>
|
||||
|
||||
Reference in New Issue
Block a user