|
|
@ -14,6 +14,7 @@ interface Props { |
|
|
|
fixedSize?: number |
|
|
|
fixedSize?: number |
|
|
|
extraStyle?: string |
|
|
|
extraStyle?: string |
|
|
|
showApiTiming?: boolean |
|
|
|
showApiTiming?: boolean |
|
|
|
|
|
|
|
alignLeft?: boolean |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<Props>() |
|
|
|
const props = defineProps<Props>() |
|
|
@ -34,6 +35,8 @@ const extraStyle = toRef(props, 'extraStyle') |
|
|
|
|
|
|
|
|
|
|
|
const isGroupBy = inject(IsGroupByInj, ref(false)) |
|
|
|
const isGroupBy = inject(IsGroupByInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const alignLeft = computed(() => props.alignLeft ?? false) |
|
|
|
|
|
|
|
|
|
|
|
const { isViewDataLoading, isPaginationLoading } = storeToRefs(useViewsStore()) |
|
|
|
const { isViewDataLoading, isPaginationLoading } = storeToRefs(useViewsStore()) |
|
|
|
|
|
|
|
|
|
|
|
const { isLeftSidebarOpen } = storeToRefs(useSidebarStore()) |
|
|
|
const { isLeftSidebarOpen } = storeToRefs(useSidebarStore()) |
|
|
@ -69,7 +72,12 @@ const isRTLLanguage = computed(() => isRtlLang(locale.value as keyof typeof Lang |
|
|
|
isGroupBy ? 'margin-top:1px; border-radius: 0 0 12px 12px !important;' : '' |
|
|
|
isGroupBy ? 'margin-top:1px; border-radius: 0 0 12px 12px !important;' : '' |
|
|
|
}${extraStyle}`" |
|
|
|
}${extraStyle}`" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex-1 flex items-center"> |
|
|
|
<div |
|
|
|
|
|
|
|
class="flex items-center" |
|
|
|
|
|
|
|
:class="{ |
|
|
|
|
|
|
|
'flex-1': !alignLeft, |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
> |
|
|
|
<slot name="add-record" /> |
|
|
|
<slot name="add-record" /> |
|
|
|
<span |
|
|
|
<span |
|
|
|
v-if="!alignCountOnRight && count !== null && count !== Infinity" |
|
|
|
v-if="!alignCountOnRight && count !== null && count !== Infinity" |
|
|
@ -84,7 +92,8 @@ const isRTLLanguage = computed(() => isRtlLang(locale.value as keyof typeof Lang |
|
|
|
v-if="!hidePagination" |
|
|
|
v-if="!hidePagination" |
|
|
|
class="transition-all duration-350" |
|
|
|
class="transition-all duration-350" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'-ml-17': isLeftSidebarOpen, |
|
|
|
'-ml-17': isLeftSidebarOpen && !alignLeft, |
|
|
|
|
|
|
|
'ml-8': alignLeft, |
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
<div v-if="isPaginationLoading" class="flex flex-row justify-center item-center min-h-10 min-w-42"> |
|
|
|
<div v-if="isPaginationLoading" class="flex flex-row justify-center item-center min-h-10 min-w-42"> |
|
|
|