/
githubmirror
/
vuetify
Обзор
Документация
Войти
/
githubmirror
/
vuetify
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/docs/src/examples/v-touch/usage.vue
31 строка
610 B
Andrei Elkin
feat(VCol/VRow): grid system overhaul (#21500)
30 янв 2026, 12:21
Не верифицирован
30 янв 2026, 12:21
f6d24a9
Код
Авторство
О чём код?
<template> <v-row class="bg-grey-lighten-2 align-center justify-center" style="height: 500px" v-touch="{ left: () => swipe('Left'), right: () => swipe('Right'), up: () => swipe('Up'), down: () => swipe('Down') }" > <v-col class="text-center"> <div class="text-title-small">Swipe Direction</div> {{ swipeDirection }} </v-col> </v-row> </template> <script> export default { data: () => ({ swipeDirection: 'None', }), methods: { swipe (direction) { this.swipeDirection = direction }, }, } </script>