Child.vue 308 B

12345678910111213141516171819202122232425
  1. <template>
  2. <h2>子级组件</h2>
  3. <hr>
  4. <Son></Son>
  5. </template>
  6. <script lang="ts">
  7. import { defineComponent } from 'vue'
  8. import Son from './Son.vue'
  9. export default defineComponent({
  10. name: "Child",
  11. setup () {
  12. return {}
  13. },
  14. components: {
  15. Son
  16. }
  17. })
  18. </script>
  19. <style scoped>
  20. </style>