2022年Hbulider升级后 compontens就不支持easycom,需要自定义easycom
pages.json中自定义easycom
"easycom": {
"autoscan": true,
"custom": {
"^com-(.*)": "@/components/com-$1/com-$1.vue" // 匹配components目录内的com-的vue文件
}
}
目录结构如下:
esaycom配置整个components
"custom": {
"^vue-file-(.*)": "@/components/path/to/vue-file-$1.vue" // 匹配components内的vue文件
}