fix: don't pass on class name to slot

This commit is contained in:
Daniel Roe 2022-11-30 09:49:07 +00:00
parent b997feb6b3
commit fc38c339a6
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View file

@ -8,10 +8,13 @@ const props = defineProps<{
}>() }>()
const account = props.account || (props.handle ? useAccountByHandle(props.handle!) : undefined) const account = props.account || (props.handle ? useAccountByHandle(props.handle!) : undefined)
defineOptions({
inheritAttrs: false,
})
</script> </script>
<template> <template>
<VMenu v-if="!disabled && account" placement="bottom-start" :delay="{ show: 500, hide: 100 }"> <VMenu v-if="!disabled && account" placement="bottom-start" :delay="{ show: 500, hide: 100 }" v-bind="$attrs">
<slot /> <slot />
<template #popper> <template #popper>
<AccountHoverCard v-if="account" :account="account" /> <AccountHoverCard v-if="account" :account="account" />