自定义指令

This commit is contained in:
X1627315083@163.com
2026-05-14 14:55:42 +08:00
parent 281d9e9481
commit c48d2091cf
8 changed files with 132 additions and 8 deletions

30
src/pages/home/index.vue Normal file
View File

@@ -0,0 +1,30 @@
<script setup lang="ts">
import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
import Video from './video.vue'
import Product from './product.vue'
//const props = defineProps({
//})
//const emit = defineEmits([
//])
let data = reactive({
})
onMounted(()=>{
})
onUnmounted(()=>{
})
defineExpose({})
const {} = toRefs(data);
</script>
<template>
<div class="home">
<Video />
<Product />
</div>
</template>
<style lang="less" scoped>
.home{
width: 100%;
height: 100%;
position: relative;
}
</style>