From 30949bb4a4b22fef5119f04c3e3276c42aaab085 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Sun, 05 Jan 2025 17:22:15 +0100 Subject: [PATCH] named slot --- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue index 061b6ca..93be93e 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue @@ -1,11 +1,13 @@ <template> <section> <base-card> - <header> + <template v-slot:header> <h3>{{ fullName }}</h3> <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> - </header> - <p>{{ infoText }}</p> + </template> + <template v-slot:default> + <p>{{ infoText }}</p> + </template> </base-card> </section> </template> @@ -17,7 +19,6 @@ </script> <style scoped> - section header { display: flex; justify-content: space-between; -- Gitblit v1.8.0