问答详情
源自:3-2 实现todolist需要的4个组件

父级组件引入子组件不显示

<template>

<div>

<nav-header></nav-header>

<nav-main></nav-main>

<nav-footer></nav-footer>

</div>

</template>


<script>

import NavHeader from '@/components/navHeader/NavHeader.vue';

import NavMain from '@/components/navMain/NavMain.vue';

import NavFooter from '@/components/navFooter/NavFooter.vue';

import {defineComponent} from 'vue';


export default defineComponent({

name:'Home',

components:{

NavHeader,

NavMain,

NavFooter

},

setup(){


},

})

</script>


<style scoped lang="scss">


</style>


提问者:慕数据4169253 2023-02-22 16:42

个回答

  • 慕数据4169253
    2023-02-22 16:48:10

    莫名其妙的又好了 😣