mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-04 16:09:59 +00:00
refactor: drop controlled popper
This commit is contained in:
parent
ccc9834360
commit
fe875dc50f
1 changed files with 1 additions and 20 deletions
|
@ -1,24 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import type { ComponentPublicInstance } from 'vue'
|
||||
|
||||
const avatar = ref<ComponentPublicInstance>()
|
||||
const switcher = ref()
|
||||
|
||||
let showSwitcher = $ref(false)
|
||||
|
||||
onClickOutside(avatar, () => {
|
||||
showSwitcher = false
|
||||
}, { ignore: [switcher] })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VDropdown
|
||||
v-if="currentUser"
|
||||
v-model:shown="showSwitcher"
|
||||
:triggers="[]"
|
||||
:auto-hide="false"
|
||||
@click="showSwitcher = true"
|
||||
>
|
||||
<VDropdown v-if="currentUser">
|
||||
<div style="-webkit-touch-callout: none;">
|
||||
<AccountAvatar
|
||||
ref="avatar"
|
||||
|
|
Loading…
Reference in a new issue