add a CustomerDetails component

This commit is contained in:
Andreas Zweili 2021-02-15 22:24:12 +01:00
parent 57957e2d4b
commit d0b67fd28a
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<template>
<dialog open>
<header>
<h1>{{ customerName }}</h1>
</header>
<p>{{ customerDescription }}</p>
<button @click="$emit('hide-details', true)">Return to list</button>
</dialog>
</template>
<script>
export default {
props: {
customerName: {
type: String,
required: true,
},
customerDescription: {
type: String,
required: false,
},
},
emits: ["hide-details"],
};
</script>
<style></style>