1.例子:在components目录下创建自己的组件目录
(components/xxzComponents)
2.在xxzComponents下创建自定义组件
src/components/xxzComponents/xxz-button/xxz-button.vue
3.在pages.json下引入
"easycom": {
"autoscan": true,
"custom": {
"^xxz-(.*)": "@/components/xxzComponents/xxz-$1/xxz-$1.vue"
}
},