Merge pull request #9670 from CheshireJCat/fix-editor-transferTable-valueTpl-is-undefined-after-change-tableColumn

fix: editor-修复穿梭器表格形式设置表格列不填写字段名时valueTpl为undefined的问题
This commit is contained in:
hsm-lv 2024-02-29 15:07:33 +08:00 committed by GitHub
commit eda180963a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,7 +324,7 @@ export default class TransferTableOption extends React.Component<
return {
type: 'action',
actionType: 'dialog',
label: '添加表格列',
label: '设置表格列',
level: 'enhance',
dialog: {
title: '设置表格列选项',
@ -348,12 +348,14 @@ export default class TransferTableOption extends React.Component<
{
type: 'input-text',
name: 'label',
placeholder: '标题'
placeholder: '标题',
required: true
},
{
type: 'input-text',
name: 'name',
placeholder: '绑定字段名'
placeholder: '绑定字段名',
required: true
},
{
type: 'select',
@ -417,7 +419,7 @@ export default class TransferTableOption extends React.Component<
{
type: 'action',
actionType: 'dialog',
label: '添加表格行',
label: '设置表格行',
level: 'enhance',
disabled: columns && columns.length === 0,
block: true,