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> @@ -15,12 +17,3 @@ props: ['fullName', 'infoText', 'role'], }; </script> <style scoped> section header { display: flex; justify-content: space-between; align-items: center; } </style>