feat: sorting, searching

This commit is contained in:
opbnq-q
2025-03-14 18:44:43 +07:00
parent 0e0b0bf8a2
commit dba38f71b1
12 changed files with 203 additions and 108 deletions

View File

@@ -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>