Skip to content

Commit 8f06277

Browse files
author
yaroslav8765
committed
feat: add isRounded prop to the ShowTable.vue
1 parent 279f6d6 commit 8f06277

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

adminforth/spa/src/components/ShowTable.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="overflow-x-auto rounded-default shadow-resourseFormShadow dark:shadow-darkResourseFormShadow">
2+
<div :class="`overflow-x-auto ${isRounded ? 'rounded-default' : ''} shadow-resourseFormShadow dark:shadow-darkResourseFormShadow`">
33
<div v-if="groupName && !noTitle" class="text-md font-semibold px-6 py-3 flex flex-1 items-center dark:border-gray-600 text-gray-700 bg-lightFormHeading dark:bg-gray-700 dark:text-gray-400 rounded-t-lg">
44
{{ groupName }}
55
</div>
@@ -60,7 +60,7 @@
6060
import { getCustomComponent } from '@/utils';
6161
import { useCoreStore } from '@/stores/core';
6262
import { computed } from 'vue';
63-
const props = defineProps<{
63+
const props = withDefaults(defineProps<{
6464
columns: Array<{
6565
name: string;
6666
label: string;
@@ -80,8 +80,11 @@
8080
noTitle?: boolean;
8181
resource: Record<string, any>;
8282
record: Record<string, any>;
83-
}>();
84-
83+
isRounded?: boolean;
84+
}>(), {
85+
isRounded: true
86+
});
87+
8588
const coreStore = useCoreStore();
8689
const allColumnsHaveCustomComponent = computed(() => {
8790
return props.columns.every(column => {

0 commit comments

Comments
 (0)