From 2f6c1224666aba1e78585af1033435d85085b802 Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Mon, 28 Nov 2022 19:46:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-saas-8251):=20static=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E5=85=AC=E5=BC=8F=E6=94=B9=E7=94=A8=E5=A4=9A=E8=A1=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I319f2f3a03e09170806248b1b44cc6fea0330c65 --- packages/amis-editor/src/plugin/Form/Static.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/Static.tsx b/packages/amis-editor/src/plugin/Form/Static.tsx index af78799a0..f9379de6e 100644 --- a/packages/amis-editor/src/plugin/Form/Static.tsx +++ b/packages/amis-editor/src/plugin/Form/Static.tsx @@ -57,10 +57,9 @@ export class StaticControlPlugin extends BasePlugin { }), getSchemaTpl('label'), // getSchemaTpl('value'), + /* getSchemaTpl('valueFormula', { name: 'tpl', - // TODO: 因为 formulaControl 未适配 static 这类特殊组件,暂不传递 rendererSchema属性,让其内部先使用 InputBox - // 待后续 formulaControl 优化之后再重新调整适配 // rendererSchema: { // ...context?.schema, // type: 'textarea', // 改用多行文本编辑 @@ -68,6 +67,13 @@ export class StaticControlPlugin extends BasePlugin { // }, mode: 'vertical' // 改成上下展示模式 }), + */ + { + type: 'ae-textareaFormulaControl', + label: '默认值', + name: 'tpl', + mode: 'normal' + }, getSchemaTpl('switch', { name: 'quickEdit', label: '可快速编辑',