diff --git a/packages/hoppscotch-ui/src/components/smart/Table.vue b/packages/hoppscotch-ui/src/components/smart/Table.vue index 88b705113..9624f1c7a 100644 --- a/packages/hoppscotch-ui/src/components/smart/Table.vue +++ b/packages/hoppscotch-ui/src/components/smart/Table.vue @@ -106,14 +106,12 @@ const props = defineProps<{ /** The index of the column that needs to have a badge */ badgeColName?: string /** The subtitles to be displayed for the columns */ - subtitles?: [ - { - /** The name of the column that needs to have a subtitle */ - colName: string - /** The subtitle to be displayed for the column */ - subtitle: string | string[] - } - ] + subtitles?: Array<{ + /** The name of the column that needs to have a subtitle */ + colName: string + /** The subtitle to be displayed for the column */ + subtitle: string | string[] + }> }>() defineEmits<{ diff --git a/packages/hoppscotch-ui/src/stories/Table.story.vue b/packages/hoppscotch-ui/src/stories/Table.story.vue index 449e60207..ddcad4db1 100644 --- a/packages/hoppscotch-ui/src/stories/Table.story.vue +++ b/packages/hoppscotch-ui/src/stories/Table.story.vue @@ -1,12 +1,30 @@ @@ -29,4 +47,11 @@ const list = [ role: "Frontend Engineer", }, ] + +const subtitles = [ + { + colName: "role", + subtitle: "FE", + }, +]