fix:「表达式」CRUD列支持fx

This commit is contained in:
wutong25 2023-06-14 14:22:16 +08:00
parent 9a52635e87
commit c416f4aeb5

View File

@ -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:
'如果当前字段有值,请不要设置,否则覆盖。支持使用 <code>\\${xxx}</code> 来获取变量,或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="/amis/zh-CN/docs/concepts/template">详情</a>'
},
}),
getSchemaTpl('placeholder', {
pipeIn: defaultValue('-'),
label: '占位符'