From ab8625ebafb99d73f4dad0c9db4f373cd9da0ab6 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 7 Aug 2026 16:22:50 +0800 Subject: [PATCH] feat(form): add custom navigation bar for form page across multiple platforms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 适配APP、微信小程序、华为快应用和鸿蒙元服务,新增自定义导航栏,支持返回和首页按钮,修正多端导航栏适配逻辑 --- pages.json | 4 +- pages_tool/form/formdata.vue | 187 +++++++++++++++++++++++++++++++++-- 2 files changed, 184 insertions(+), 7 deletions(-) diff --git a/pages.json b/pages.json index 9465c92..3932c37 100644 --- a/pages.json +++ b/pages.json @@ -2152,7 +2152,9 @@ { "path": "form/formdata", "style": { - // #ifdef APP-PLUS + // APP 端原本就是 custom;微信小程序 / 华为快应用 / 鸿蒙元服务 + // 的原生 navbar 不支持自定义左侧 Home 按钮,需要切到 custom 自绘 + // #ifdef APP-PLUS || MP-WEIXIN || QUICKAPP-WEBVIEW || HARMONY "navigationStyle": "custom", // #endif "navigationBarTitleText": "", diff --git a/pages_tool/form/formdata.vue b/pages_tool/form/formdata.vue index abd2f62..ed52c4f 100644 --- a/pages_tool/form/formdata.vue +++ b/pages_tool/form/formdata.vue @@ -1,5 +1,24 @@