11<template >
22 <section :class =" twMerge('vs-screener vsc-font-sans vsc-text-sm vsc-flex vsc-flex-col vsc-gap-2',props.class)" ref =" screenerRef" > <!-- eslint-disable-line -->
33 <slot name =" header" :screener =" internalScreener" >
4- <div class =" vsc-flex vsc-justify-between vsc-items-center" v-if =" includeHeader !== false " >
4+ <div class =" vsc-flex vsc-justify-between vsc-items-center" v-if =" includeHeader" >
55 <h3 v-if =" title" class =" vsc-font-normal vsc-text-base vsc-mb-0 vsc-text-zinc-300" >
66 {{ title }}
77 </h3 >
3131 </VueScreenerViewport >
3232 </slot >
3333 <slot name =" footer" :screener =" internalScreener" >
34- <VueScreenerPagination :screener =" internalScreener" v-if =" includeFooter !== false " />
34+ <VueScreenerPagination :screener =" internalScreener" v-if =" includeFooter" />
3535 </slot >
3636 </section >
3737</template >
@@ -46,23 +46,29 @@ import VueScreenerSearch from '../components/search/VueScreenerSearch.vue'
4646import { useVueScreener } from ' ../hooks/use-vue-screener'
4747import { twMerge } from ' tailwind-merge'
4848
49- const props = defineProps <{
50- screener? : IVueScreener
51- data? : any []
52- class? : string
53- // options
54- contentHeight? : string
55- defaultCurrentPage? : number
56- defaultRowsPerPage? : number
57- defaultSortField? : string
58- defaultSortDirection? : ' asc' | ' desc'
59- columns? : Record <PropertyKey , Partial <Column >>
60- disableSearchHighlight? : boolean
61- loading? : boolean
62- title? : string
63- includeHeader? : boolean
64- includeFooter? : boolean
65- }>()
49+ const props = withDefaults (
50+ defineProps <{
51+ screener? : IVueScreener
52+ data? : any []
53+ class? : string
54+ // options
55+ contentHeight? : string
56+ defaultCurrentPage? : number
57+ defaultRowsPerPage? : number
58+ defaultSortField? : string
59+ defaultSortDirection? : ' asc' | ' desc'
60+ columns? : Record <PropertyKey , Partial <Column >>
61+ disableSearchHighlight? : boolean
62+ loading? : boolean
63+ title? : string
64+ includeHeader? : boolean
65+ includeFooter? : boolean
66+ }>(),
67+ {
68+ includeHeader: true ,
69+ includeFooter: true ,
70+ },
71+ )
6672
6773const internalScreener = computed (
6874 () =>
0 commit comments