<template>
</template>
<script setup>
import {inject,onMounted, onUnmounted,onBeforeMount,onBeforeUpdate,onUpdated,onDeactivated, watch} from 'vue'
const emit = defineEmits(['close'])
const props = inject('attributes') //父级provide('attributes', "")
const state = reactive({
name: null
})
watch(
() => [state.name],
(newValue) => {
}
);
onBeforeMount(()=>{
})
onMounted(()=>{
})
onBeforeUpdate(()=>{
})
onUpdated(()=>{
})
onDeactivated(()=>{
})
onUnmounted(()=>{
})
</script>
vue3.0生命周期
最新推荐文章于 2024-07-26 20:46:33 发布