From 0ff501d4aa28b64a11a3d9a6101e3f997a9e9795 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Tue, 07 Jan 2025 18:29:08 +0100 Subject: [PATCH] teleport per spostare il dialog in una posizione consona nel DOM --- 10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/StoredResource.vue | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/StoredResource.vue b/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/StoredResource.vue new file mode 100644 index 0000000..0a6af78 --- /dev/null +++ b/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/StoredResource.vue @@ -0,0 +1,34 @@ +<template> + <ul> + <learning-resource + v-for="res in resources" + :key="res.id" + :id="res.id" + :title="res.title" + :description="res.description" + :link="res.link" + > + </learning-resource> + </ul> +</template> + +<script> +import LearningResource from './LearningResource.vue'; + +export default { + components: { + LearningResource: LearningResource, + }, + inject: ['resources'], +}; +</script> + +<style> +ul { + list-style: none; + margin: 0; + padding: 0; + margin: auto; + max-width: 40rem; +} +</style> -- Gitblit v1.8.0