style样式不生效
加/deep/
.button-item{
display: none;
}
生效了:
/deep/.button-item{
display: none;
}
自定义组件明明已经注册好,结果还是报错组件未注册
报错代码:[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
问题原因:将组件Tab放到了components文件以外的地方了,将组件文件重新放到components文件内,再使用就没问题了