File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ const props = defineProps<{
3939 paginationMode? : PaginationMode
4040 /** Current page (1-indexed) for paginated mode */
4141 currentPage? : number
42+ /** When true, shows search-specific UI (relevance sort, no filters) */
43+ searchContext? : boolean
4244}>()
4345
4446const emit = defineEmits <{
@@ -60,7 +62,11 @@ const sortOption = defineModel<SortOption>('sortOption')
6062
6163// View mode and columns
6264const viewMode = computed (() => props .viewMode ?? ' cards' )
63- const columns = computed (() => props .columns ?? DEFAULT_COLUMNS )
65+ const columns = computed (() => {
66+ const targetColumns = props .columns ?? DEFAULT_COLUMNS
67+ if (props .searchContext ) return targetColumns .map (column => ({ ... column , sortable: false }))
68+ return targetColumns
69+ })
6470// Table view forces pagination mode (no virtualization for tables)
6571const paginationMode = computed (() =>
6672 viewMode .value === ' table' ? ' paginated' : (props .paginationMode ?? ' infinite' ),
Original file line number Diff line number Diff line change @@ -737,6 +737,7 @@ defineOgImageComponent('Default', {
737737 v-if =" displayResults.length > 0"
738738 :results =" displayResults"
739739 :search-query =" query"
740+ search-context
740741 heading-level =" h2"
741742 show-publisher
742743 :has-more =" hasMore"
You can’t perform that action at this time.
0 commit comments