This commit is contained in:
isUnknown 2024-09-02 14:33:21 +02:00
parent 93b0c13ac3
commit e816ff2420
11 changed files with 25 additions and 9 deletions

11
src/components/Btn.vue Normal file
View file

@ -0,0 +1,11 @@
<template>
<button :data-size="size">Label</button>
</template>
<script setup>
const { size } = defineProps({
size: String,
});
</script>
<style scoped></style>

View file

@ -2,7 +2,11 @@
<h1>{{ data.content.title }}</h1>
</template>
<script setup>
import Btn from "../components/Btn.vue";
const { data } = defineProps({
data: Object,
});
console.log(data);
</script>