mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 19:22:14 +01:00
update dependencies, update eslint config, update optional ts props types
This commit is contained in:
@@ -14,8 +14,8 @@ import { isLastLayer, layers } from '@/packages/ui/src/utils/dismissableLayer';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
align: Placement;
|
||||
closeOnContentClick: boolean;
|
||||
align?: Placement;
|
||||
closeOnContentClick?: boolean;
|
||||
}>(),
|
||||
{
|
||||
align: 'bottom-start',
|
||||
@@ -94,7 +94,7 @@ const { floatingStyles } = useFloating(reference, floating, {
|
||||
|
||||
<template>
|
||||
<div class="min-w-0 isolate">
|
||||
<div @click.prevent="toggleOpen" ref="reference" class="min-w-0">
|
||||
<div ref="reference" class="min-w-0" @click.prevent="toggleOpen">
|
||||
<slot name="trigger" />
|
||||
</div>
|
||||
|
||||
@@ -113,8 +113,8 @@ const { floatingStyles } = useFloating(reference, floating, {
|
||||
leave-to-class="transform opacity-0 scale-95">
|
||||
<div
|
||||
v-if="open"
|
||||
class="z-50"
|
||||
ref="floating"
|
||||
class="z-50"
|
||||
:style="floatingStyles"
|
||||
@click="onContentClick">
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user