Part1.vue 569 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div>
  3. <h1 class="h-26 text-6xl">具名插槽</h1>
  4. <h3 class="h-16 text-4xl"></h3>
  5. <h3 class="h-16 text-4xl"></h3>
  6. <hr class="h-15" />
  7. <hr class="h-15" />
  8. <Part2>
  9. <template v-slot:footer>
  10. <p>111</p>
  11. </template>
  12. <template #header>
  13. <p>222</p>
  14. </template>
  15. <template #default>
  16. <p>333</p>
  17. </template>
  18. </Part2>
  19. </div>
  20. </template>
  21. <script lang="ts" setup>
  22. import { ref, reactive } from "vue";
  23. import Part2 from "./Part2.vue";
  24. </script>
  25. <style lang="scss" scoped>
  26. </style>