From 14a3dad013e16aa12d255138797c79d716404183 Mon Sep 17 00:00:00 2001
From: Joel Jacob Stephen <70131076+JoelJacobStephen@users.noreply.github.com>
Date: Sun, 13 Aug 2023 22:32:30 +0530
Subject: [PATCH] refactor: updated the table story book component
---
.../src/components/smart/Table.vue | 4 +-
.../hoppscotch-ui/src/stories/Table.story.vue | 71 ++++++++++---------
2 files changed, 38 insertions(+), 37 deletions(-)
diff --git a/packages/hoppscotch-ui/src/components/smart/Table.vue b/packages/hoppscotch-ui/src/components/smart/Table.vue
index 040020f13..2c93a7a11 100644
--- a/packages/hoppscotch-ui/src/components/smart/Table.vue
+++ b/packages/hoppscotch-ui/src/components/smart/Table.vue
@@ -55,9 +55,9 @@ defineProps<{
/** Whether to show the vertical border between columns */
yBorder?: boolean
/** The list of items to be displayed in the table */
- list: Item[]
+ list?: Item[]
/** The headings of the table */
- headings: CellHeading[]
+ headings?: CellHeading[]
}>()
const emit = defineEmits<{
diff --git a/packages/hoppscotch-ui/src/stories/Table.story.vue b/packages/hoppscotch-ui/src/stories/Table.story.vue
index ddcad4db1..73135f531 100644
--- a/packages/hoppscotch-ui/src/stories/Table.story.vue
+++ b/packages/hoppscotch-ui/src/stories/Table.story.vue
@@ -1,29 +1,31 @@
-
-
+
+
-
-
-
-
-
+
+
+
+ | ID |
+ Name |
+ Members |
+ Role |
+
+
+
+ | 123454 |
+ Joel |
+ 10 |
+ Frontend Engineer |
+
+
+ | 123456 |
+ Anwar |
+ 12 |
+ Frontend Engineer |
+
+
+
@@ -31,27 +33,26 @@