save
This commit is contained in:
parent
93b0c13ac3
commit
e816ff2420
11 changed files with 25 additions and 9 deletions
11
src/components/Btn.vue
Normal file
11
src/components/Btn.vue
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<button :data-size="size">Label</button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { size } = defineProps({
|
||||
size: String,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue