GrandFather.vue 520 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div class="grandFather">
  3. <h1>祖父</h1>
  4. <h3>{{ a }}</h3>
  5. <h3>{{ b }}</h3>
  6. <h3>{{ c }}</h3>
  7. <h3>{{ d }}</h3>
  8. <Father :aa='a' :bb="b" :cc="c" :dd="d"></Father>
  9. </div>
  10. </template>
  11. <script setup name="GrandFather4" lang="ts">
  12. import Father from './Father.vue';
  13. import {ref} from 'vue';
  14. let a = ref(1);
  15. let b = ref(2);
  16. let c = ref(3);
  17. let d = ref(4);
  18. </script>
  19. <style scoped>
  20. .grandFather {
  21. width: 900px;
  22. height: 900px;
  23. background: yellowgreen;
  24. margin: 0 auto;
  25. }
  26. </style>