Skip to content

Commit

Permalink
fix: editor-修复穿梭器表格形式设置表格列不填写字段名时valueTpl为undefined的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jinye committed Feb 27, 2024
1 parent e2db651 commit a5f3298
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/amis-editor/src/renderer/TransferTableControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export default class TransferTableOption extends React.Component<
return {
type: 'action',
actionType: 'dialog',
label: '添加表格列',
label: '设置表格列',
level: 'enhance',
dialog: {
title: '设置表格列选项',
Expand All @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a5f3298

Please sign in to comment.