Skip to content

Commit

Permalink
Merge pull request baidu#9670 from CheshireJCat/fix-editor-transferTa…
Browse files Browse the repository at this point in the history
…ble-valueTpl-is-undefined-after-change-tableColumn

fix: editor-修复穿梭器表格形式设置表格列不填写字段名时valueTpl为undefined的问题
  • Loading branch information
hsm-lv committed Feb 29, 2024
2 parents 88e371e + a5f3298 commit eda1809
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 eda1809

Please sign in to comment.