feat: add Android gateway preview and refactoring plan

This commit is contained in:
illusia committed 2026-10-01 08:13:46 +08:00
1 parent 9e2b9bf564
commit aeaeb15965
73 files changed
+4347 -24

No files matched your search

+6 -1
View File
@@ -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)}`;