From eb387dbd90a2a891ee5ee4458e32cccb460fd9b1 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Mon, 06 Jan 2025 18:15:48 +0100 Subject: [PATCH] first components e props --- 09 - deeper into components/cmp-adv-05-more-on-slots/src/components/UserInfo.vue | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/09 - deeper into components/cmp-adv-05-more-on-slots/src/components/UserInfo.vue b/09 - deeper into components/cmp-adv-05-more-on-slots/src/components/UserInfo.vue new file mode 100644 index 0000000..4caedcd --- /dev/null +++ b/09 - deeper into components/cmp-adv-05-more-on-slots/src/components/UserInfo.vue @@ -0,0 +1,19 @@ +<template> + <section> + <base-card> + <template #header> + <h3>{{ fullName }}</h3> + <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> + </template> + <template #default> + <p>{{ infoText }}</p> + </template> + </base-card> + </section> +</template> + +<script> +export default { + props: ['fullName', 'infoText', 'role'], +}; +</script> \ No newline at end of file -- Gitblit v1.8.0