diff --git a/src/runtime/components/Table.vue b/src/runtime/components/Table.vue index 077d077f..a2b0decd 100644 --- a/src/runtime/components/Table.vue +++ b/src/runtime/components/Table.vue @@ -41,6 +41,7 @@ export interface TableData { export interface TableProps { data?: T[] columns?: TableColumn[] + caption?: string /** * Whether the table should have a sticky header. * @defaultValue false @@ -95,6 +96,7 @@ type DynamicCellSlots = Record = { expanded: (props: { row: Row }) => any empty: (props?: {}) => any + caption: (props?: {}) => any } & DynamicHeaderSlots & DynamicCellSlots @@ -191,6 +193,12 @@ defineExpose({