This commit is contained in:
@@ -3,15 +3,14 @@
|
||||
<UDrawer
|
||||
v-if="isMobile"
|
||||
v-model:open="open"
|
||||
:class="{ animated: !isSwiping }"
|
||||
:style="{ top }"
|
||||
:snap-points="[0.5, 1]"
|
||||
style="overflow-y: hidden"
|
||||
class="product__drawer"
|
||||
>
|
||||
<ProductImages />
|
||||
|
||||
<div class="product-info">
|
||||
<div class="product-info__title">
|
||||
<ProductPrice :price="currentVariant?.options[0]?.price" />
|
||||
<ProductPrice :price="currentVariant?.options[0]?.price || 0" />
|
||||
|
||||
<div>
|
||||
фотомодель
|
||||
@@ -55,9 +54,8 @@ const isMobile = useMediaQuery('(max-width: 1280px)')
|
||||
const open = ref(false)
|
||||
const target = shallowRef<HTMLElement | null>(null)
|
||||
const targetHeight = computed(() => target.value?.offsetHeight)
|
||||
const top = shallowRef('0')
|
||||
|
||||
const { isSwiping, lengthY } = useSwipe(
|
||||
const { lengthY } = useSwipe(
|
||||
target,
|
||||
{
|
||||
passive: false,
|
||||
|
||||
Reference in New Issue
Block a user