feat/things-munaja: adjust content header

This commit is contained in:
2025-11-26 08:54:06 +07:00
parent 4bf69eb46c
commit 7347e127a4
2 changed files with 3 additions and 5 deletions
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { ContentHeader } from './index'
import type { Config } from './index'
import { refDebounced } from '@vueuse/core'
const props = defineProps<ContentHeader>()
const props = defineProps<Config>()
const emit = defineEmits<{
'update:searchModelValue': [value: string]
@@ -11,8 +11,6 @@ const emit = defineEmits<{
// Quick search
const search = ref(props.quickSearchNav?.modelValue || props.refSearchNav?.modelValue || '')
// const qsModelValue = ref(props.quickSearchNav?.modelValue || '')
// const rsModelValue = ref(props.refSearchNav?.modelValue || '')
const debouncedSearch = refDebounced(search, props.quickSearchNav?.debounceDuration || 500)
// Computed search model for v-model
@@ -45,7 +45,7 @@ export interface RefExportNav {
onExportExcel?: () => void
}
export interface ContentHeader {
export interface Config {
title?: string
icon?: string
components?: ComponentWithProps[]