создаю телегу товаров
All checks were successful
Deploy / build (push) Successful in 49s

This commit is contained in:
alsaze
2025-10-08 22:21:35 +03:00
parent f495f97352
commit 8934277a2b
3 changed files with 25 additions and 6 deletions

View File

@@ -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,