From 43cacd93b1d929ebbae875d2d4165397136b05ca Mon Sep 17 00:00:00 2001 From: jiatianqi Date: Sat, 24 Sep 2022 19:48:22 +0800 Subject: [PATCH] =?UTF-8?q?amis-saas-7253=20[Bug]=20=E9=9D=99=E6=80=81?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=A1=86=E9=BB=98=E8=AE=A4=E5=80=BC=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=B8=8D=E5=9B=9E=E6=98=BE=EF=BC=8C=E4=B8=94=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BE=93=E5=85=A5=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic430b19cc708bf29f6862f200552d1cb0643596e --- packages/amis-editor/src/plugin/Form/Static.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/Static.tsx b/packages/amis-editor/src/plugin/Form/Static.tsx index 7674c2fc7..5c85e6745 100644 --- a/packages/amis-editor/src/plugin/Form/Static.tsx +++ b/packages/amis-editor/src/plugin/Form/Static.tsx @@ -58,13 +58,14 @@ export class StaticControlPlugin extends BasePlugin { getSchemaTpl('label'), // getSchemaTpl('value'), getSchemaTpl('valueFormula', { - rendererSchema: { - ...context?.schema, - type: 'textarea', // 改用多行文本编辑 - value: context?.schema.tpl // 避免默认值丢失 - }, - mode: 'vertical', // 改成上下展示模式 - name: 'tpl' + // TODO: 因为 formulaControl 未适配 static 这类特殊组件,暂不传递 rendererSchema属性,让其内部先使用 InputBox + // 待后续 formulaControl 优化之后再重新调整适配 + // rendererSchema: { + // ...context?.schema, + // type: 'textarea', // 改用多行文本编辑 + // value: context?.schema.tpl // 避免默认值丢失 + // }, + mode: 'vertical' // 改成上下展示模式 }), getSchemaTpl('switch', { name: 'quickEdit',