создаю телегу товаров
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

20
app.config.ts Normal file
View File

@ -0,0 +1,20 @@
export default defineAppConfig({
ui: {
drawer: {
slots: {
overlay: 'fixed inset-0 bg-elevated/75',
content: 'fixed bg-default ring ring-default flex focus:outline-none',
handle: [
'shrink-0 !bg-accented',
'transition-opacity',
],
container: 'w-full flex flex-col gap-4 p-4 overflow-hidden',
header: '',
title: 'text-highlighted font-semibold',
description: 'mt-1 text-muted text-sm',
body: 'flex-1 overflow-hidden',
footer: 'flex flex-col gap-1.5',
},
},
},
})

View File

@ -1,5 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
compatibilityDate: '2025-05-15',
devtools: { enabled: true },
modules: ['@nuxt/ui', '@nuxt/image', '@nuxt/icon', '@nuxt/fonts', '@nuxtjs/i18n'],

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,