fix: 画质选择器弹出方向改为向上,与其他控件保持一致

This commit is contained in:
王佑琳 2026-06-09 18:14:15 +08:00
parent 5c24de354b
commit 18e7dbc6ed

View File

@ -4,6 +4,7 @@
:options="options"
width="auto"
class="quality-select"
position="top"
>
<template #prefix>
<span class="quality-label">画质</span>
@ -16,13 +17,13 @@ import Select from '@/components/Select/index.vue'
const props = defineProps({
modelValue: { type: String, default: 'medium' },
options: { type: Array, default: () => [] },
options: { type: Array, default: () => [] }
})
const emit = defineEmits(['update:modelValue'])
const model = computed({
get: () => props.modelValue,
set: (v) => emit('update:modelValue', v),
set: (v) => emit('update:modelValue', v)
})
</script>