docs(formdata): add notes about show_home btn effective scope

补充说明show_home参数仅在custom导航栏端生效,H5端忽略该参数
This commit is contained in:
2026-08-07 16:25:19 +08:00
parent ab8625ebaf
commit 2c0b8ed076

View File

@@ -135,6 +135,8 @@ export default {
this.hideNavbar = this.$util.coerceBool(options?.hide_navbar);
// show_home=1 时在系统标题栏左侧显示 Home 按钮,点击回到首页 INDEX_PAGE_URL
// 解析规则统一走 this.$util.coerceBool:支持 '1' / 'true' / 1 / true 四种写法
// 仅在 navigationStyle:custom 端生效(APP / 微信小程序 / 华为快应用 / 鸿蒙元服务);
// H5 保留系统原生 navbar,不支持 show_home,参数被忽略(这是预期行为)
this.showHomeBtn = this.$util.coerceBool(options?.show_home);
// 自绘 navbar 需要用到状态栏高度 / navbar 内容区高度(跨端兜底)