金布
金布
  • 发布:2019-09-07 19:47
  • 更新:2019-09-07 19:47
  • 阅读:705

自定义组件通过变量名引入其它自定义组件没有被编译

分类:uni-app
import ListBottom from '@/components/ListBottom.vue'  

const ListContainer = {  
  components: {  
    ListBottom,  
  },  
}  

export default ListContainer

没有被编译到 ListContainer.json 中
下面这种写法才被编译了

import ListBottom from '@/components/ListBottom.vue'  

export default {  
  components: {  
    ListBottom,  
  },  
}
2019-09-07 19:47 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复