Vue组件如何引用自身/引用自身报错

在test.vue的组件中,使用test.vue

export default{
     name:"Test"  
}

不需要import 引入自己,也不需要在components中引入

直接使用就可以

<Test/>
原文地址:https://www.cnblogs.com/fyjz/p/15261514.html