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