/
githubmirror
/
vuetify
Обзор
Документация
Войти
/
githubmirror
/
vuetify
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/docs/src/components/app/Figure.vue
38 строк
593 B
J-Sek
feat: migrate to MD3 typography (#22557)
28 янв 2026, 21:50
Не верифицирован
28 янв 2026, 21:50
311daf4
Код
Авторство
О чём код?
<template> <figure> <v-img class="rounded bg-surface" v-bind="$attrs" /> <figcaption v-if="caption" class="text-body-small font-weight-bold text-center text-capitalize text-medium-emphasis" v-text="caption" /> <slot v-else /> </figure> </template> <script setup> const attrs = useAttrs() defineProps({ name: String, }) const caption = computed(() => attrs.title === 'null' ? null : attrs.title) </script> <script> export default { inheritAttrs: false, } </script> <style scoped> figure { margin: 0; } </style>