mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
feat(Popover): add anchor slot (#4119)
Co-authored-by: Jakub <jakub.michalek@freelo.io> Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
const open = ref(false)
|
||||
const openCustomAnchor = ref(false)
|
||||
const loading = ref(false)
|
||||
|
||||
function send() {
|
||||
@@ -51,6 +52,21 @@ function send() {
|
||||
</div>
|
||||
</template>
|
||||
</UPopover>
|
||||
|
||||
<div class="mt-8 relative">
|
||||
<UPopover
|
||||
v-model:open="openCustomAnchor"
|
||||
:dismissible="false"
|
||||
>
|
||||
<template #anchor>
|
||||
<UInput placeholder="Search" class="w-56" @focus="openCustomAnchor = true" />
|
||||
</template>
|
||||
|
||||
<template #content>
|
||||
<Placeholder class="size-48 m-4 inline-flex" />
|
||||
</template>
|
||||
</UPopover>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-24">
|
||||
|
||||
Reference in New Issue
Block a user