24 lines
483 B
Vue
24 lines
483 B
Vue
<template>
|
|
<div>
|
|
<NameSlot>
|
|
<template #header>
|
|
<h1>我是header</h1>
|
|
</template>
|
|
<template #main>
|
|
<main>我是main</main>
|
|
</template>
|
|
<template #footer>
|
|
<footer>我是footer</footer>
|
|
</template>
|
|
</NameSlot>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import NameSlot from "./NameSlot.vue";
|
|
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
|
|
</style> |