vue写组件时的命名规范

1组件命名驼峰
如myBread.vue(组件)

2引入时,接受同样是驼峰
import MyBread from "@/components/cuscom/myBread.vue";
Vue.component(MyBread.name, MyBread); //注册组件

3在使用时,横线

 <my-bread value1="权限管理" value2="权限列表"></my-bread>

原文地址:https://www.cnblogs.com/IwishIcould/p/12445234.html