摘要:
众所周知,vue2有生命周期,而vue3也有 而vue2的created和beforecreated在vue3中都由setup替代了 <script setup lang="ts"> import { onBeforeMount, onMounted, onBeforeUpdate, onUpdat 阅读全文
摘要:
父组件 <script setup lang="ts"> import person from '@/components/person.vue' import { ref, reactive, defineProps } from 'vue' import { type Person } from 阅读全文