Cristiano Magro
2025-01-07 0ff501d4aa28b64a11a3d9a6101e3f997a9e9795
teleport per spostare il dialog in una posizione consona nel DOM
1 files modified
2 ■■■■■ changed files
10 - course project/xno-prj-cmp-01-starting-setup/src/components/UI/BaseDialog.vue 2 ●●●●● patch | view | raw | blame | history
10 - course project/xno-prj-cmp-01-starting-setup/src/components/UI/BaseDialog.vue
@@ -1,4 +1,5 @@
<template>
  <teleport to="body">
  <div @click="$emit('close')"></div>
  <dialog open>
    <header>
@@ -15,6 +16,7 @@
      </slot>
    </menu>
  </dialog>
  </teleport>
</template>
<script>