mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat: add Android gateway preview and refactoring plan
This commit is contained in:
1 parent
9e2b9bf564
commit
aeaeb15965
73 files changed
+4347
-24
No files matched your search
@@ -4,6 +4,7 @@
|
||||
type="button"
|
||||
class="skin-trigger"
|
||||
data-ws-part="skin.trigger"
|
||||
:disabled="options.length === 0"
|
||||
:aria-label="menuLabel"
|
||||
:title="`${menuLabel}: ${selectedOption.label}`"
|
||||
aria-haspopup="listbox"
|
||||
@@ -60,7 +61,11 @@ const emit = defineEmits<{
|
||||
}>();
|
||||
|
||||
const options = computed(() => props.options);
|
||||
const selectedOption = computed(() => options.value.find((option) => option.value === props.modelValue) ?? options.value[0]);
|
||||
const selectedOption = computed(() => options.value.find((option) => option.value === props.modelValue) ?? options.value[0] ?? {
|
||||
value: props.modelValue,
|
||||
label: props.menuLabel,
|
||||
icon: "compass",
|
||||
});
|
||||
const root = ref<HTMLElement | null>(null);
|
||||
const open = ref(false);
|
||||
const menuId = `skin-menu-${Math.random().toString(36).slice(2, 9)}`;
|
||||
|
||||
Reference in new issue
Block a user