From 9e0453d3bb54d994afeb49a3df92814537466660 Mon Sep 17 00:00:00 2001 From: Joel Jacob Stephen <70131076+JoelJacobStephen@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:59:46 +0530 Subject: [PATCH] refactor: new slots for table and body --- .../src/pages/users/index.vue | 1 - .../src/components/smart/Table.vue | 71 +++++++++---------- 2 files changed, 34 insertions(+), 38 deletions(-) diff --git a/packages/hoppscotch-sh-admin/src/pages/users/index.vue b/packages/hoppscotch-sh-admin/src/pages/users/index.vue index 9bc24dcf2..fc8ce22b9 100644 --- a/packages/hoppscotch-sh-admin/src/pages/users/index.vue +++ b/packages/hoppscotch-sh-admin/src/pages/users/index.vue @@ -33,7 +33,6 @@
- - - - - + + + + + + - - - - - - -
- - {{ rowData[cellHeading.key] ?? "-" }} - -
-
- - + + +
- {{ th.label ?? th.key }} -
+ {{ th.label ?? th.key }} +
+
+ + + +
+ + {{ rowData[cellHeading.key] ?? "-" }} + +
+
+
@@ -59,8 +58,6 @@ defineProps<{ list: Item[] /** The headings of the table */ headings: CellHeading[] - /** The styles to be applied to the table cells */ - cellStyles?: string }>() const emit = defineEmits<{