fix: prevent default event when hide dropdown (#1277)

This commit is contained in:
webfansplz 2023-01-18 14:07:07 +08:00 committed by GitHub
parent bc08ef07d3
commit 9c82df0a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 1 deletions

View file

@ -0,0 +1,13 @@
<script setup lang="ts">
const {
zIndex = 100,
background = 'transparent',
} = $defineProps<{
zIndex?: number
background?: string
}>()
</script>
<template>
<div fixed top-0 bottom-0 left-0 right-0 :style="{ background, zIndex }" />
</template>