diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js index 168c89b5..0fa2797b 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js @@ -556,7 +556,7 @@ export async function getTableColumns(object, fields, options){ var file_id = data.versions && data.versions[0] && data.versions[0]._id; window.previewFile && window.previewFile({file_name, file_id}); `; - columnItem = { + columnItem = Object.assign({}, { "type": "button", "label": `<%=data.versions ? data.name : "${field.label}"%>`, className, @@ -588,7 +588,7 @@ export async function getTableColumns(object, fields, options){ ] } } - }; + }, fieldAmis); }else if(field.type === 'toggle'){ columnItem = Object.assign({}, { type: "switch",