Are you an LLM? You can read better optimized documentation at /guide/directory-structure/custom-tab-bar.md for this page in Markdown format
custom-tab-bar/
这是微信自定义 tabBar 的固定目录。
触发条件
当 app.json 中存在:
json
{
"tabBar": {
"custom": true
}
}weapp-vite 会把 custom-tab-bar/index 当成固定入口分析。
位置要求
- 目录名必须是
custom-tab-bar - 必须和
app.json位于同一个srcRoot下
如果 app.json 在 <srcRoot>/,那它就应该是:
text
<srcRoot>/
app.json
custom-tab-bar/
index.vue它不是普通页面目录,也不通过自动路由发现。