From 60df099e6db8a1b3478021205facc9db6642ee7c Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Sun, 05 Jan 2025 17:39:16 +0100 Subject: [PATCH] slot shortcut --- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue | 6 +++--- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue index 48f5d07..efaba70 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/BadgeList.vue @@ -1,10 +1,10 @@ <template> <section> <base-card> - <!-- <template v-slot:header> + <template #header> <h2>Available Badges</h2> - </template> --> - <template v-slot:default> + </template> + <template #default> <ul> <li> <base-badge type="admin" caption="ADMIN"></base-badge> 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 4ae29b0..789826c 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,11 @@ <template> <section> <base-card> - <template v-slot:header> + <template #header> <h3>{{ fullName }}</h3> <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> </template> - <template v-slot:default> + <template #default> <p>{{ infoText }}</p> </template> </base-card> -- Gitblit v1.8.0