限制讲解详情播放器为收起态
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-10 09:42:01 +08:00
parent aefab4c188
commit 11a3acb137
4 changed files with 18 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
:current-time="currentTime"
:duration-value="duration"
:closable="closable"
:expandable="expandable"
:avoid-bottom-nav="avoidBottomNav"
:mode="currentDisplayMode"
@toggle="handleToggle"
@@ -34,10 +35,12 @@ const props = withDefaults(defineProps<{
avoidBottomNav?: boolean
displayMode?: AudioDisplayMode
closable?: boolean
expandable?: boolean
}>(), {
avoidBottomNav: true,
displayMode: 'mini',
closable: true
closable: true,
expandable: true
})
const player = useGlobalAudioPlayer()
@@ -99,6 +102,8 @@ const handleVisibleChange = (visible: boolean) => {
}
const handleExpand = () => {
if (!props.expandable) return
if (currentDisplayMode.value === 'floating') {
player.setDisplayMode('mini')
return