mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
feat(kit): render the selects with UiSelect
UiSelect renders the bare native select with v-model, options and disabled. Options that carry their own attributes come through the slot, a caller's own change handler still reaches the select, and hold never rewrites a focused select and takes the model back on blur. Without hold, a select takes its model back once its change has rendered, so a pick its owner refuses goes back, as the raw value binding did. The HUD layout, draw colour, RTL-SDR gain, radio station tag, voice provider, voice timeout, scene and CCTV camera selects now render through it.
This commit is contained in:
1 parent
28ca784d49
commit
ecaf723035
13 files changed
+234
-18
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { storeToRefs } from 'pinia';
|
||||
import UiSelect from '../kit/UiSelect.js';
|
||||
import { useCctvStore } from '../stores/cctv.js';
|
||||
|
||||
// The camera picker: the cameras in view and a closing note for those the
|
||||
@@ -19,7 +20,7 @@ const vPick = { mounted: pick, updated: pick };
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<select v-pick="picker?.selection" :disabled="picker?.disabled"
|
||||
<UiSelect v-pick="picker?.selection" :disabled="picker?.disabled"
|
||||
><option
|
||||
v-for="option in picker?.options"
|
||||
:key="option.value"
|
||||
@@ -27,6 +28,6 @@ const vPick = { mounted: pick, updated: pick };
|
||||
>{{ option.label }}</option
|
||||
><option v-if="picker?.note" value="" disabled data-cctv-outside>{{
|
||||
picker.note
|
||||
}}</option></select
|
||||
}}</option></UiSelect
|
||||
>
|
||||
</template>
|
||||
Reference in new issue
Block a user