|
1 | 1 | <script lang="ts" setup> |
2 | | -import { ref, computed, onMounted, toRefs, watch, nextTick } from 'vue' |
| 2 | +import { computed, nextTick, onMounted, ref, toRefs, watch } from 'vue' |
3 | 3 | import { useElementBounding, useWindowSize } from '@vueuse/core' |
4 | 4 | import { type Handler, rubberbandIfOutOfBounds, useGesture } from '@vueuse/gesture' |
5 | | -import { useMotionProperties, useMotionTransitions, useMotionControls } from '@vueuse/motion' |
| 5 | +import { useMotionControls, useMotionProperties, useMotionTransitions } from '@vueuse/motion' |
6 | 6 | import { useFocusTrap } from '@vueuse/integrations/useFocusTrap' |
7 | 7 | import { useSnapPoints } from '../composables/useSnapPoints' |
8 | 8 |
|
@@ -313,9 +313,9 @@ defineExpose({ open, close, snapToPoint }) |
313 | 313 | <Teleport to="body"> |
314 | 314 | <div class="sheet-container"> |
315 | 315 | <Transition name="fade"> |
316 | | - <div ref="overlay" class="sheet-overlay" v-show="showSheet && blocking" @click="overlayClick()" /> |
| 316 | + <div v-show="showSheet && blocking" ref="overlay" class="sheet-overlay" @click="overlayClick()" /> |
317 | 317 | </Transition> |
318 | | - <div ref="sheet" :class="{ 'sheet-show': showSheet, 'sheet-shadow': !blocking }" class="sheet" tabindex="-1" aria-modal="true"> |
| 318 | + <div ref="sheet" :class="{ 'sheet-show': showSheet, 'sheet-shadow': !blocking }" aria-modal="true" class="sheet" tabindex="-1"> |
319 | 319 | <div ref="sheetHeader" class="sheet-header"> |
320 | 320 | <slot name="header"></slot> |
321 | 321 | </div> |
@@ -376,10 +376,10 @@ defineExpose({ open, close, snapToPoint }) |
376 | 376 | max-height: inherit; |
377 | 377 | pointer-events: all; |
378 | 378 | position: absolute; |
| 379 | + transition: visibility 250ms ease-in-out; |
379 | 380 | visibility: hidden; |
380 | 381 | width: 640px; |
381 | 382 | will-change: height; |
382 | | - transition: visibility 250ms ease-in-out; |
383 | 383 | } |
384 | 384 |
|
385 | 385 | .sheet-show { |
|
0 commit comments