feat: demo flags (#1084)

This commit is contained in:
Jonas Plum
2024-07-21 04:07:23 +02:00
committed by GitHub
parent 91429effe2
commit a9e885598c
16 changed files with 217 additions and 108 deletions

View File

@@ -30,7 +30,10 @@ const open = ref(false)
const searchTerm = ref('')
const selectedItems = ref<string[]>(props.modelValue)
watch(selectedItems.value, (value) => emit('update:modelValue', value))
watch(
() => selectedItems.value,
(value) => emit('update:modelValue', value)
)
const filteredItems = computed(() => {
if (!selectedItems.value) return props.items