From c416f4aeb5b58534e5eb39dc112aebcaf6bc0e07 Mon Sep 17 00:00:00 2001 From: wutong25 Date: Wed, 14 Jun 2023 14:22:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E3=80=8C=E8=A1=A8=E8=BE=BE=E5=BC=8F?= =?UTF-8?q?=E3=80=8DCRUD=E5=88=97=E6=94=AF=E6=8C=81fx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/plugin/Plain.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/amis-editor/src/plugin/Plain.tsx b/packages/amis-editor/src/plugin/Plain.tsx index 5260b676d..b14a5fa05 100644 --- a/packages/amis-editor/src/plugin/Plain.tsx +++ b/packages/amis-editor/src/plugin/Plain.tsx @@ -101,16 +101,15 @@ export class PlainPlugin extends BasePlugin { { title: '基本', body: [ - { + getSchemaTpl('textareaFormulaControl', { + name: 'tpl', label: '内容', - type: 'textarea', - mode: 'col', + mode: 'normal', pipeIn: (value: any, data: any) => value || (data && data.text), - name: 'tpl', description: '如果当前字段有值,请不要设置,否则覆盖。支持使用 \\${xxx} 来获取变量,或者用 lodash.template 语法来写模板逻辑。详情' - }, + }), getSchemaTpl('placeholder', { pipeIn: defaultValue('-'), label: '占位符'