From a026adaec77ef26b173b7790d0265c8e63c0d525 Mon Sep 17 00:00:00 2001 From: jing <1683105490@qq.com> Date: Tue, 1 Sep 2026 09:24:09 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E8=A1=A8=E5=8D=95=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components-diy/diy-form.vue | 75 ++++++++++++++++++++++++++---------- pages_tool/form/formdata.vue | 4 +- 2 files changed, 56 insertions(+), 23 deletions(-) diff --git a/components-diy/diy-form.vue b/components-diy/diy-form.vue index 822aca6..043a366 100644 --- a/components-diy/diy-form.vue +++ b/components-diy/diy-form.vue @@ -6,7 +6,7 @@ 否则会触发 MP 编译器注入的 propsToData 观察者(对应编译产物里 r=function(){var o=this.value.show_banner...this.$mp.data...}) 报 "Cannot read properties of undefined (reading 'show_banner')"。 --> - + @@ -65,7 +65,7 @@ :onSubmit 接管提交逻辑(带 uniacid + showModal);跨 H5 / MP 一致,不依赖 $listeners。 注意:create 重度依赖本组件 this(id/uniacid/memberInfo/$api 等),必须在 created 阶段 bind this, 否则 diy-form 通过 this.onSubmit(formData) 调用时 this 会漂移到子组件实例 --> - +