From 3552983f74ed6a43f304251e86442fb9ddebe84c Mon Sep 17 00:00:00 2001 From: wutong25 Date: Mon, 12 Jun 2023 11:32:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=95=E9=80=89=E6=A1=86/=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E6=A1=86/checkbox=E7=BB=91=E5=AE=9A=E5=8F=82=E7=85=A7?= =?UTF-8?q?=E5=BD=95=E5=85=A5=E5=90=8E=EF=BC=8C=E9=A2=84=E8=A7=88=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/plugin/Form/Checkbox.tsx | 4 +++- packages/amis-editor/src/plugin/Form/Checkboxes.tsx | 4 +++- packages/amis-editor/src/plugin/Form/Radios.tsx | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/Checkbox.tsx b/packages/amis-editor/src/plugin/Form/Checkbox.tsx index 3aae41f9e..2e8a44b7f 100644 --- a/packages/amis-editor/src/plugin/Form/Checkbox.tsx +++ b/packages/amis-editor/src/plugin/Form/Checkbox.tsx @@ -153,7 +153,9 @@ export class CheckboxControlPlugin extends BasePlugin { getSchemaTpl('labelRemark'), getSchemaTpl('remark'), getSchemaTpl('description'), - getSchemaTpl('autoFillApi') + getSchemaTpl('autoFillApi', { + trigger: 'change' + }) ] }, getSchemaTpl('status', {isFormItem: true}), diff --git a/packages/amis-editor/src/plugin/Form/Checkboxes.tsx b/packages/amis-editor/src/plugin/Form/Checkboxes.tsx index 30c75b264..5c1277132 100644 --- a/packages/amis-editor/src/plugin/Form/Checkboxes.tsx +++ b/packages/amis-editor/src/plugin/Form/Checkboxes.tsx @@ -165,7 +165,9 @@ export class CheckboxesControlPlugin extends BasePlugin { getSchemaTpl('labelRemark'), getSchemaTpl('remark'), getSchemaTpl('description'), - getSchemaTpl('autoFillApi') + getSchemaTpl('autoFillApi', { + trigger: 'change' + }) ] }, { diff --git a/packages/amis-editor/src/plugin/Form/Radios.tsx b/packages/amis-editor/src/plugin/Form/Radios.tsx index 3d5be8f1e..8d51cc607 100644 --- a/packages/amis-editor/src/plugin/Form/Radios.tsx +++ b/packages/amis-editor/src/plugin/Form/Radios.tsx @@ -127,7 +127,9 @@ export class RadiosControlPlugin extends BasePlugin { // getSchemaTpl('autoFill') getSchemaTpl('labelRemark'), getSchemaTpl('remark'), - getSchemaTpl('autoFillApi') + getSchemaTpl('autoFillApi', { + trigger: 'change' + }) ] }, {