Commit 39742beb by Hantao

refactor(config): 优化自定义组件路径配置

- 在 custom 配置中添加 navBar 组件映射
parent f2171a36
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
"custom": { "custom": {
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue", "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue", "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue" "^u-([^-].*)" : "uview-plus/components/u-$1/u-$1.vue",
"^navBar$": "@/components/navBar.vue"
} }
}, },
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment