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: '占位符'