fix: 画质选择器弹出方向改为向上,与其他控件保持一致
This commit is contained in:
parent
5c24de354b
commit
18e7dbc6ed
@ -4,6 +4,7 @@
|
|||||||
:options="options"
|
:options="options"
|
||||||
width="auto"
|
width="auto"
|
||||||
class="quality-select"
|
class="quality-select"
|
||||||
|
position="top"
|
||||||
>
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<span class="quality-label">画质</span>
|
<span class="quality-label">画质</span>
|
||||||
@ -16,13 +17,13 @@ import Select from '@/components/Select/index.vue'
|
|||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: { type: String, default: 'medium' },
|
modelValue: { type: String, default: 'medium' },
|
||||||
options: { type: Array, default: () => [] },
|
options: { type: Array, default: () => [] }
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue'])
|
||||||
const model = computed({
|
const model = computed({
|
||||||
get: () => props.modelValue,
|
get: () => props.modelValue,
|
||||||
set: (v) => emit('update:modelValue', v),
|
set: (v) => emit('update:modelValue', v)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user