我在vue中写了个公共底部组件bottom.vue
我想去调用他,然后在底部显示,
于是
不行之后又看了官网都是其他形式并没有找到引用文件模式,这种情况下如何调用?
我在vue中写了个公共底部组件bottom.vue
我想去调用他,然后在底部显示,
于是
不行之后又看了官网都是其他形式并没有找到引用文件模式,这种情况下如何调用?
这样写就可以额
<template>
....
// 传入的数据和监听的数据
<buttom :a='' @xx='' ></buttom>
// 没有slot 这样写更好
<buttom :a='' @xx='' />
</template>
顺便 comments => components,
你需要局部组件