Vue3 + Pinia + Vite5 仿抖音,完全度90% . Vue3 + Pinia + Vite5 imitate TikTok with 90% completeness
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
404 B

<template>
<div class="big">{{ props.item.desc }}</div>
</template>
<script setup>
import {onMounted, onUnmounted} from "vue";
const props = defineProps({
item: {
type: Object,
default: () => {
return {}
}
},
})
onMounted(()=>{
console.log('onMounted',props.item.desc)
})
onUnmounted(()=>{
console.log('onUnmounted',props.item.desc)
})
</script>
<style scoped>
</style>