diff --git a/components/table/Table.tsx b/components/table/Table.tsx index b6dae0d00..80966a1ed 100644 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -126,7 +126,10 @@ export const tableProps = () => { default: undefined, }, direction: { type: String as PropType, default: undefined }, - expandFixed: { type: Boolean as PropType, default: undefined }, + expandFixed: { + type: [Boolean, String] as PropType, + default: undefined, + }, expandColumnWidth: { type: Number as PropType, default: undefined, diff --git a/components/vc-table/Table.tsx b/components/vc-table/Table.tsx index 4a1964f13..91a7f9a01 100644 --- a/components/vc-table/Table.tsx +++ b/components/vc-table/Table.tsx @@ -98,7 +98,7 @@ export interface TableProps { direction?: 'ltr' | 'rtl'; // Expandable - expandFixed?: boolean; + expandFixed?: 'left' | 'right' | boolean; expandColumnWidth?: number; expandedRowKeys?: Key[]; defaultExpandedRowKeys?: Key[];