diff --git a/formily/antd/src/locales/ArrayTable.ts b/formily/antd/src/locales/ArrayTable.ts index d94adf181..e8458aa12 100644 --- a/formily/antd/src/locales/ArrayTable.ts +++ b/formily/antd/src/locales/ArrayTable.ts @@ -17,6 +17,10 @@ export const ArrayTable = { fixed: { title: '固定列', dataSource: ['左', '右', '无'] }, width: '宽度', defaultValue: '默认值', + tableLayout: { + title: '表格布局', + dataSource: ['自动', '固定'], + }, }, }, }, @@ -38,6 +42,10 @@ export const ArrayTable = { fixed: { title: 'Fixed', dataSource: ['Left', 'Right', 'None'] }, width: 'Width', defaultValue: 'Default Value', + tableLayout: { + title: 'Table Layout', + dataSource: ['Auto', 'Fixed'], + }, }, }, }, diff --git a/formily/antd/src/schemas/ArrayTable.ts b/formily/antd/src/schemas/ArrayTable.ts index 5e5fce2f8..331b6b9f5 100644 --- a/formily/antd/src/schemas/ArrayTable.ts +++ b/formily/antd/src/schemas/ArrayTable.ts @@ -33,6 +33,16 @@ export const ArrayTable: ISchema & { Addition?: ISchema; Column?: ISchema } = { defaultValue: 'small', }, }, + tableLayout: { + type: 'string', + enum: ['auto', 'fixed'], + 'x-decorator': 'FormItem', + 'x-component': 'Radio.Group', + 'x-component-props': { + defaultValue: 'auto', + optionType: 'button', + }, + }, }, }