|
|
|
@ -14,6 +14,7 @@ interface Props {
|
|
|
|
|
fixedSize?: number |
|
|
|
|
extraStyle?: string |
|
|
|
|
showApiTiming?: boolean |
|
|
|
|
alignLeft?: boolean |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const props = defineProps<Props>() |
|
|
|
@ -34,6 +35,8 @@ const extraStyle = toRef(props, 'extraStyle')
|
|
|
|
|
|
|
|
|
|
const isGroupBy = inject(IsGroupByInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const alignLeft = computed(() => props.alignLeft ?? false) |
|
|
|
|
|
|
|
|
|
const { isViewDataLoading, isPaginationLoading } = storeToRefs(useViewsStore()) |
|
|
|
|
|
|
|
|
|
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;' : '' |
|
|
|
|
}${extraStyle}`" |
|
|
|
|
> |
|
|
|
|
<div class="flex-1 flex items-center"> |
|
|
|
|
<div |
|
|
|
|
class="flex items-center" |
|
|
|
|
:class="{ |
|
|
|
|
'flex-1': !alignLeft, |
|
|
|
|
}" |
|
|
|
|
> |
|
|
|
|
<slot name="add-record" /> |
|
|
|
|
<span |
|
|
|
|
v-if="!alignCountOnRight && count !== null && count !== Infinity" |
|
|
|
@ -84,7 +92,8 @@ const isRTLLanguage = computed(() => isRtlLang(locale.value as keyof typeof Lang
|
|
|
|
|
v-if="!hidePagination" |
|
|
|
|
class="transition-all duration-350" |
|
|
|
|
: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"> |
|
|
|
|