From a875ab1ca9ef699fe0cf1d2a795a84f02ec8579b Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Fri, 21 Jul 2023 19:51:42 +0600 Subject: [PATCH] feat: generic table implementation --- .../src/components/smart/Table.vue | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/packages/hoppscotch-ui/src/components/smart/Table.vue b/packages/hoppscotch-ui/src/components/smart/Table.vue index f825274b0..b27edc7cc 100644 --- a/packages/hoppscotch-ui/src/components/smart/Table.vue +++ b/packages/hoppscotch-ui/src/components/smart/Table.vue @@ -5,42 +5,36 @@ - - {{ title }} + + {{ th.label ?? th.key }} - - -
- -
- - -
- - {{ data }} - - - -
+ + + +
+ + {{ rowData[cellHeading.key] ?? "-" }} + +
+
- - @@ -48,20 +42,24 @@