mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix:「表达式」CRUD列支持fx
This commit is contained in:
parent
9a52635e87
commit
c416f4aeb5
@ -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: '占位符'
|
||||
|
Loading…
Reference in New Issue
Block a user